MISS3D / s2p

This repository is not maintained, please use https://github.com/centreborelli/s2p instead.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"make all" error when compiling (osx)

lionlai1989 opened this issue · comments

Hi:
I've downloaded the code as tutorials told me. But I run into the following error when running make all.

/Library/Developer/CommandLineTools/usr/bin/make -j -C c/homography
make[1]: `homography' is up to date.
cp c/homography/homography bin
/Library/Developer/CommandLineTools/usr/bin/make -j -C c/sift
make[1]: Nothing to be done for `all'.
cp c/sift/sift_roi bin
cp c/sift/matching bin
/Library/Developer/CommandLineTools/usr/bin/make -C 3rdparty/mgm
make[1]: Nothing to be done for `all'.
cp 3rdparty/mgm/mgm bin
mkdir -p bin/build_mgm_multi
cd bin/build_mgm_multi; cmake ../../3rdparty/mgm_multi; /Library/Developer/CommandLineTools/usr/bin/make
-- No build type selected, default to Release
FLAGS:  -O3 -std=c99 -funroll-loops -Wno-unused -DNDEBUG
/Users/lai/s2p/bin/build_mgm_multi/iio
/Users/lai/s2p/3rdparty/mgm_multi/iio
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lai/s2p/bin/build_mgm_multi
[  9%] Built target IIOLIB
[ 54%] Built target mgm
[100%] Built target mgm_multi
cp bin/build_mgm_multi/mgm_multi bin
/Library/Developer/CommandLineTools/usr/bin/make -C 3rdparty/tvl1flow
make[1]: Nothing to be done for `default'.
cp 3rdparty/tvl1flow/tvl1flow bin
cp 3rdparty/tvl1flow/callTVL1.sh bin
mkdir -p bin/build_msmw3
cd bin/build_msmw3; cmake -D CMAKE_BUILD_TYPE=Release ../../c/msmw; /Library/Developer/CommandLineTools/usr/bin/make
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lai/s2p/bin/build_msmw3
[ 10%] Building CXX object CMakeFiles/msmw.dir/LibMSMW/ConnectedComponents.cpp.o
clang: error: no such file or directory: 'NOTFOUND'
make[3]: *** [CMakeFiles/msmw.dir/LibMSMW/ConnectedComponents.cpp.o] Error 1
make[2]: *** [CMakeFiles/msmw.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [msmw3] Error 2
lais-mbp:~/s2p lai$ (master)git submodule update --init
lais-mbp:~/s2p lai$ (master)make all
/Library/Developer/CommandLineTools/usr/bin/make -j -C c/homography
make[1]: `homography' is up to date.
cp c/homography/homography bin
/Library/Developer/CommandLineTools/usr/bin/make -j -C c/sift
make[1]: Nothing to be done for `all'.
cp c/sift/sift_roi bin
cp c/sift/matching bin
/Library/Developer/CommandLineTools/usr/bin/make -C 3rdparty/mgm
make[1]: Nothing to be done for `all'.
cp 3rdparty/mgm/mgm bin
mkdir -p bin/build_mgm_multi
cd bin/build_mgm_multi; cmake ../../3rdparty/mgm_multi; /Library/Developer/CommandLineTools/usr/bin/make
-- No build type selected, default to Release
FLAGS:  -O3 -std=c99 -funroll-loops -Wno-unused -DNDEBUG
/Users/lai/s2p/bin/build_mgm_multi/iio
/Users/lai/s2p/3rdparty/mgm_multi/iio
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lai/s2p/bin/build_mgm_multi
[  9%] Built target IIOLIB
[ 54%] Built target mgm
[100%] Built target mgm_multi
cp bin/build_mgm_multi/mgm_multi bin
/Library/Developer/CommandLineTools/usr/bin/make -C 3rdparty/tvl1flow
make[1]: Nothing to be done for `default'.
cp 3rdparty/tvl1flow/tvl1flow bin
cp 3rdparty/tvl1flow/callTVL1.sh bin
mkdir -p bin/build_msmw3
cd bin/build_msmw3; cmake -D CMAKE_BUILD_TYPE=Release ../../c/msmw; /Library/Developer/CommandLineTools/usr/bin/make
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lai/s2p/bin/build_msmw3
[ 10%] Building CXX object CMakeFiles/msmw.dir/LibMSMW/ConnectedComponents.cpp.o
clang: error: no such file or directory: 'NOTFOUND'
make[3]: *** [CMakeFiles/msmw.dir/LibMSMW/ConnectedComponents.cpp.o] Error 1
make[2]: *** [CMakeFiles/msmw.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [msmw3] Error 2

My system info:
osx: 10.12.6
GDAL: 2.1.3
gcc:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

python version (local):

/usr/local/bin/pydoc             /usr/local/bin/python3
/usr/local/bin/pydoc2            /usr/local/bin/python3-config
/usr/local/bin/pydoc2.7          /usr/local/bin/python3.6
/usr/local/bin/pydoc3            /usr/local/bin/python3.6-config
/usr/local/bin/pydoc3.6          /usr/local/bin/python3.6m
/usr/local/bin/python            /usr/local/bin/python3.6m-config
/usr/local/bin/python-config     /usr/local/bin/pythonw
/usr/local/bin/python2           /usr/local/bin/pythonw2
/usr/local/bin/python2-config    /usr/local/bin/pythonw2.7
/usr/local/bin/python2.7         /usr/local/bin/pyvenv
/usr/local/bin/python2.7-config  /usr/local/bin/pyvenv-3.6

python version (sudo):

/usr/bin/pydoc            /usr/bin/python-config    /usr/bin/python2.7-config
/usr/bin/pydoc2.6         /usr/bin/python2.6        /usr/bin/pythonw
/usr/bin/pydoc2.7         /usr/bin/python2.6-config /usr/bin/pythonw2.6
/usr/bin/python           /usr/bin/python2.7        /usr/bin/pythonw2.7

Any help would be appreciated.
Thank you.

Hi,
It is a mishandled openmp dependence.
I just made a copule of hotfixes to correct it.

Thank you. I have another question. What is utm_bbx parameter in config.json? How do I define this parameter?
(I don't know where I should ask this question so I post here. I guess there should be somewhere which can let me ask general user questions, like google groups or somewhere)
Thank you for your passion.