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

MakeFile errors. #4

Open
guerrerocarlos opened this issue Nov 11, 2014 · 9 comments
Open

MakeFile errors. #4

guerrerocarlos opened this issue Nov 11, 2014 · 9 comments

Comments

@guerrerocarlos
Copy link

First failed with this error:

2 warnings generated.
ar r libsfmdrv.a sfm.o
ar: creating archive libsfmdrv.a
cp libsfmdrv.a ..
cd lib/minpack; /Library/Developer/CommandLineTools/usr/bin/make
gcc -O2 -ffast-math  -c -o dpmpar.o dpmpar.f
error: invalid value 'f95' in '-x f95'
make[1]: *** [dpmpar.o] Error 1
make: *** [default] Error 2

But I could fix it by modifying the Makefile, with gfortran instead of gcc, but now this error presents:

1 warning generated.
ar rs libcblas.a cblas_dgemm.o cblas_globals.o cblas_xerbla.o xerbla.o
cp libcblas.a ../
cd lib/f2c; /Library/Developer/CommandLineTools/usr/bin/make
make[1]: *** No rule to make target `signal1.h0', needed by `signal1.h'.  Stop.
make: *** [default] Error 2

Is there other recomended way to do it?

@pmoulon
Copy link
Collaborator

pmoulon commented Nov 12, 2014

Please use the cmake build as it is explained here: https://github.com/TheFrenchLeaf/Bundler/blob/master/Readme_Build.txt

@minusreality
Copy link

I'm getting a build error with the cmake build:

make
[ 33%] Built target cminpack
[ 47%] Built target imagelib
[ 49%] Built target matrix
[ 58%] Built target zlib
[ 60%] Built target cblas
Linking CXX executable Bundle2PMVS
/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

@minusreality
Copy link

Resolved by adding -lblas to the end of:

src/CMakeFiles/Bundle2PMVS.dir/link.txt
src/CMakeFiles/Bundler.dir/link.txt
src/CMakeFiles/RadialUndistort.dir/link.txt

@pmoulon
Copy link
Collaborator

pmoulon commented Dec 8, 2014

Thanks for having shared your fix. Seems that on some platform the embedded cbls is sufficient and on some other blas is required.

@pranny
Copy link

pranny commented May 8, 2015

Upon compiling with USE_CERES=true, and following what is mentioned at https://github.com/TheFrenchLeaf/Bundler/blob/master/Readme_Build.txt I get the error

Linking CXX executable Bundle2PMVS
/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
ld: library not found for -lgfortran

I tried after installing gfortran from

But still it gives the same error. What could be going wrong here?

@pmoulon
Copy link
Collaborator

pmoulon commented May 8, 2015

This Bundler version does not support CERES.
Please use Noah Snavely Github Bundler: https://github.com/snavely/bundler_sfm

Or consider other SfM pipeline alternative like OpenMVG
http://imagine.enpc.fr/~moulonp/openMVG/

@pranny
Copy link

pranny commented May 8, 2015

My mistake. I did not do USE_CERES in this version. However, even after that i am still getting that linking error. Any leads?

@pmoulon
Copy link
Collaborator

pmoulon commented May 8, 2015

I'm not a MACOS expert and I cannot help on this point.
Have you tried the Noah Snavely repository version to see it builds better?

@pranny
Copy link

pranny commented May 8, 2015

@guerrerocarlos How were you able to resolve the invalid value 'f95' in '-x f95' issue?

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

4 participants