Closed TomHeaven closed 4 years ago
Thanks for the info! However i guess im still having OpenMP problems.. i get the following half way through the build:
[ 40%] Linking CXX shared library ../../../Darwin-x86_64/libaliceVision_image.dylib Undefined symbols for architecture x86_64: "___kmpc_dispatch_init_4", referenced from: _.omp_outlined. in convolution.cpp.o _.omp_outlined..1 in convolution.cpp.o _.omp_outlined..2 in convolution.cpp.o "___kmpc_dispatch_next_4", referenced from: _.omp_outlined. in convolution.cpp.o _.omp_outlined..1 in convolution.cpp.o _.omp_outlined..2 in convolution.cpp.o "___kmpc_fork_call", referenced from: aliceVision::image::SeparableConvolution2d(Eigen::Matrix<float, -1, -1, 1, -1, -1> const&, Eigen::Matrix<float, 1, -1, 1, 1, -1> const&, Eigen::Matrix<float, 1, -1, 1, 1, -1> const&, Eigen::Matrix<float, -1, -1, 1, -1, -1>*) in convolution.cpp.o 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]: *** [Darwin-x86_64/libaliceVision_image.2.0.dylib] Error 1 make[1]: *** [src/aliceVision/image/CMakeFiles/aliceVision_image.dir/all] Error 2
configured with: cmake .. -DOPENIMAGEIO_INCLUDE_DIR=/usr/local/opt/openimageio/include -DOPENIMAGEIO_LIBRARY=/usr/local/opt/openimageio/lib/libOpenImageIO.dylib
Im on 10.13.6 using clang 9.1.0 (downgraded), XCode 10.1 and CUDA 10.
i know, i provided my compiled version there. I also got those installed and running on a fresh osx installation with a bit of tweaking. But its without OpenMP support so i tried to recompile it and this is what i got.
@FunWithFlaggs This was not intended as an reply to your post. Just wanted to reference both issues for other users.
This got me through cmake, but not make:
[ 42%] Building CXX object src/dependencies/osi_clp/CoinUtils/src/CMakeFiles/lib_CoinUtils.dir/CoinWarmStartBasis.cpp.o In file included from /Volumes/SD512A/AliceVision/src/aliceVision/image/io.cpp:9: In file included from /Volumes/SD512A/AliceVision/src/aliceVision/image/all.hpp:21: In file included from /Volumes/SD512A/AliceVision/src/aliceVision/image/diffusion.hpp:11: /Volumes/SD512A/AliceVision/src/aliceVision/alicevision_omp.hpp:11:5: error: invalid token at start of a preprocessor expression
^
/Volumes/SD512A/AliceVision/build/src/generated/aliceVision/config.hpp:4:39: note: expanded from macro 'ALICEVISION_IS_DEFINED'
^
[ 42%] Building CXX object src/dependencies/MeshSDFilter/CMakeFiles/OpenMesh.dir/external/OpenMesh/Tools/Smoother/LaplaceSmootherT.cc.o 1 error generated. make[2]: [src/aliceVision/image/CMakeFiles/aliceVision_image.dir/io.cpp.o] Error 1 make[1]: [src/aliceVision/image/CMakeFiles/aliceVision_image.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....
osx 10.12.6, xcode 9.2 Apple LLVM version 9.0.0 (clang-900.0.39.2) Cuda compilation tools, release 9.1, V9.1.128
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've managed to compile and test AliceVision and Meshroom on Mac OS. I write down those tricks and hope this will help improve the project.
I use Mac OS 10.12.6, XCode 8.0 and CUDA 9.0 and I've alreadly installed Homebrew, Nvidia webdriver as well as CUDA driver.
AliceVision
Install dependencies
Clone source
Project
line.src\CMakeList.txt
src\CMakeList.txt
src/dependencies/flann/CMakeList.txt
, just add those two lines at the top:and comment out this line
src/aliceVision/robustEstimation/randSampling.hpp
src/aliceVision/sfmDataIO/AlembicExporter.cpp
line 255 asStart normal compilation
Meshroom
Compilation of Meshroom is much simpler:
meshroom/__init__.py
to avoid unicode error:At last, start meshroom