Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build on OS X Yosemite #8

Closed
pranny opened this issue Sep 19, 2015 · 5 comments
Closed

Unable to build on OS X Yosemite #8

pranny opened this issue Sep 19, 2015 · 5 comments

Comments

@pranny
Copy link

pranny commented Sep 19, 2015

Upon doing the exact same steps as mentioned in INSTALL, I get the following error at make.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++    -Wl,-search_paths_first -Wl,-headerpad_max_install_names  CMakeFiles/Bundle2PMVS.dir/Bundle2PMVS.cpp.o CMakeFiles/Bundle2PMVS.dir/LoadJPEG.cpp.o  -o Bundle2PMVS  ../lib/imagelib/libimagelib.a ../lib/matrix/libmatrix.a /usr/local/lib/libjpeg.dylib ../lib/zlib/libzlib.a -llapack ../lib/cblas/libcblas.a ../lib/cminpack/libcminpack.a -lgfortran
Undefined symbols for architecture x86_64:
  "_dgemm_", referenced from:
      _cblas_dgemm in libcblas.a(cblas_dgemm.c.o)
     (maybe you meant: _cblas_dgemm_driver_transpose2, _cblas_dgemm_driver_x , _cblas_dgemm_driver , _cblas_dgemm_driver_transpose )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/Bundle2PMVS] Error 1
make[1]: *** [src/CMakeFiles/Bundle2PMVS.dir/all] Error 2
make: *** [all] Error 2

I thought this could be because I didn't had blas so I did a brew install openblas. This did not change anything.

My configs are:

OS X 10.10.5
gcc 5.2.0

What could be going wrong here?

@pranny
Copy link
Author

pranny commented Sep 21, 2015

This issue seems to exist for Ubuntu 14.04.2 as well. The exact same steps rise this error

/usr/bin/c++    -fopenmp    CMakeFiles/Bundle2PMVS.dir/Bundle2PMVS.cpp.o CMakeFiles/Bundle2PMVS.dir/LoadJPEG.cpp.o  -o Bundle2PMVS -rdynamic ../lib/imagelib/libimagelib.a ../lib/matrix/libmatrix.a -ljpeg ../lib/zlib/libzlib.a -llapack ../lib/cblas/libcblas.a ../lib/cminpack/libcminpack.a -lgfortran
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.so: undefined reference to symbol 'dgemm_'
//usr/lib/libblas.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [src/Bundle2PMVS] Error 1
make[1]: *** [src/CMakeFiles/Bundle2PMVS.dir/all] Error 2
make: *** [all] Error 2

I have the necessary BLAS and CBLAS libs installed.

@pmoulon
Copy link
Collaborator

pmoulon commented Sep 23, 2015

Please use the cmake build and not the makefile.
https://github.com/TheFrenchLeaf/Bundler/blob/master/Readme_Build.txt#L32

@pranny
Copy link
Author

pranny commented Sep 23, 2015

I am using the same method.

@pmoulon
Copy link
Collaborator

pmoulon commented Sep 24, 2015

An user solve this error #4 (comment)

@pranny
Copy link
Author

pranny commented Sep 24, 2015

Seems to work for me as well

@pranny pranny closed this as completed Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants