Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

please issue on make (High Sierra MacPro NVIDIA 1080Ti 11GB) #9

Closed
ludogemma opened this issue Jul 21, 2020 · 12 comments
Closed

please issue on make (High Sierra MacPro NVIDIA 1080Ti 11GB) #9

ludogemma opened this issue Jul 21, 2020 · 12 comments

Comments

@ludogemma
Copy link

Hi there i can't make the alicevision..

MacPro High Sierra 10.13.6
NVIDIA 1080Ti 11GB
Cuda Toolkit installed 10.1
Xcode commandlinetools for Xcode 10.1

tried the formula: brew install ryanfb/alicevision/alicevision

but i receive this error at start of the make:

==> cmake .. -DBoost_NO_BOOST_CMAKE=ON -DALICEVISION_USE_OPENMP:BOOL=OFF -DALICEVISION_USE_ALEMBIC:BOOL=ON -DALICEVISION_BUILD_DOC:BOOL=OFF -DFLANN_INCLUDE_DI
==> make install
Last 15 lines from /Users/sbarrile/Library/Logs/Homebrew/alicevision/02.make:
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/MeshDenoiser] Error 1
make[1]: *** [src/dependencies/MeshSDFilter/CMakeFiles/MeshDenoiser.dir/all] Error 2

@ryanfb
Copy link
Owner

ryanfb commented Jul 21, 2020

I need the full logs from /Users/sbarrile/Library/Logs/Homebrew/alicevision/02.make to be able to diagnose anything.

@ludogemma
Copy link
Author

02.make.zip

@ludogemma
Copy link
Author

sorry i didn't understand about the log .. but i attached zipped the file, thanks!

@ludogemma
Copy link
Author

I need the full logs from /Users/sbarrile/Library/Logs/Homebrew/alicevision/02.make to be able to diagnose anything.

execuse me was ok the file 02.make.zip or u need in other way?

@ryanfb
Copy link
Owner

ryanfb commented Jul 21, 2020

I've started looking into it, and after fixing the first issue (OpenMP is now detected but not linked in the MeshSDFilter dependency) there seem to be other issues afterwards, perhaps related to upgrading AliceVision to 2.2.0. If I can't solve them I'll just roll back to a previous working version.

@ludogemma
Copy link
Author

ok thanks, so i wait your fix :)
at least is not a problem related to my system.

@ludogemma ludogemma reopened this Jul 22, 2020
@ludogemma
Copy link
Author

sorry about close and reopen .. i'm a bit noob on github..

@ludogemma
Copy link
Author

ryan i was able to install alicevision reading this comments:
#5 (comment)

and i just changed the versions with the ones downloaded:

cmake \ -DAlembic_DIR:PATH=/path/to/alembic/build/lib/Alembic \ -DCeres_DIR:PATH=/usr/local/Cellar/ceres-solver/1.14.0_12/lib/cmake/Ceres/ \ -DFLANN_INCLUDE_DIR_HINTS:PATH=/usr/local/Cellar/flann/1.9.1_9/include/ \ -DCMAKE_MODULE_PATH:PATH=/usr/local/Cellar/eigen/3.3.7/share/cmake/Modules/ \ -DOPENEXR_HOME:PATH=/usr/local/Cellar/openexr/2.5.2/ \ -DOPENIMAGEIO_LIBRARY_DIR_HINTS:PATH=/usr/local/Cellar/openimageio/2.1.17/lib/ \ -DOPENIMAGEIO_INCLUDE_DIR:PATH=/usr/local/Cellar/openimageio/2.1.17/include/ \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER=gcc \-DCMAKE_CXX_COMPILER=g++ \ -DOpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp -lomp -L'$(brew --prefix libomp)/lib' -I'$(brew --prefix libomp)/include'" \ -DOpenMP_CXX_LIB_NAMES="omp" \ -DOpenMP_omp_LIBRARY=$(brew --prefix libomp)/lib/libomp.a \ ..

and worked... so maybe this message could help you about the formula :)

@ludogemma
Copy link
Author

@ryanfb excuse me in your blog you also wrote:

"Third, CUDA 10.2 is only compatible with the version of clang distributed with Xcode 10.2"
but i downloaded the XCODE 10.2 on my HIgh Sierra and it told me isn't compatible with my system and requires i guess 10.14 (i guess mojave), so how you could install xcode on high sierra?
thanks in advance

@ryanfb
Copy link
Owner

ryanfb commented Jul 23, 2020

I updated the guide for CUDA 10.2 based on the CUDA 10.2 docs which say it's only compatible with Xcode 10.2 on High Sierra. Looks like I'm still running CUDA 10.1 with Xcode 10.1, so I haven't tried it myself.

@urbanstarship
Copy link

@ryanfb @ludogemma if either of you can assist, that would be great. I'm stuck on the same error. I don't know enough about Unix to follow the advice about CMake and Alembic.

@ryanfb
Copy link
Owner

ryanfb commented Jul 30, 2020

I just pushed a commit that fixed the build on my machine. Ultimately, I had to disable MeshSDFilter. The only impact should be that MeshDenoising and MeshDecimate aren't built.

If someone can fix AliceVision building on OS X with MeshSDFilter enabled, feel free to make a PR for it. I left my work-in-progress (add MeshSDFilter to the include path and use a forced-non-OpenMP build of MeshSDFilter)—but CMake needs to also know where to link MeshSDFilter when it's linking together MeshDenoising/MeshDecimate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants