-
-
Notifications
You must be signed in to change notification settings - Fork 829
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
MacOS Xcode build / installation instructions / AliceVision latest version #1071
Comments
Meshroom requires a few minor fixes submitted by @JayFoxRox for MacOS: |
Testing Meshroom on MacOS:
Ending with the following aliceVision_depthMapEstimation Error:
This was easy to remedy. As expected, the MVS components (ALICEVISION_BUILD_MVS) which require CUDA (ALICEVISION_HAVE_CUDA) did not build when I ran cmake -DALICEVISION_USE_CUDA=OFF therefore the default pipeline presented by Meshroom contained two steps for which executables were missing. From src/software/pipeline/CMakeLists.txt:
Bypassing the DepthMap computation is accomplished using the visual pipeline Graph Editor. Click the Start button again after connecting StructureFromMotion component SfMData output port to Meshing SfmData input port.
A video tutorial -- Meshroom Without Cuda and a BONUS about how to fill mesh holes in MeshLab Documentation for Meshroom says, "Double-click the ‘Texturing’ node to load the final 3D output into the viewer." https://readthedocs.org/projects/meshroom-manual/downloads/pdf/latest/ An error message appeared for me on my first attempt to view the final 3D output:
Viewing the resulting Texture in Meshroom requires a QT importer plugin which may not exist on MacOS: |
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. |
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. |
@simogasp looks like the bot ignored the "do not close". Also potentially affects many other issues: https://github.com/alicevision/AliceVision/issues?q=label%3A%22do+not+close%22+is%3Aclosed Not sure about the current state on macOS though and wether the instructions need updating / are still necessary. |
A command-line build guide for MacOS was provided (2020) by @freshnewegg here:
#931
Solutions for problems building on MacOS (2018) were shared by @TomHeaven here:
#525
An open issue requests removing AliceVision's CUDA dependency entirely in the future:
#439
Knowledge shared here by @patniemeyer about CUDA depth map computation for dense mesh:
#444
For building with Xcode the steps are somewhat different from what we see today in INSTALL.md
https://github.com/alicevision/AliceVision/blob/develop/INSTALL.md
This Issue is meant to invite discussion before amendments are published to that file, to encourage more reporting of recent build failures with AliceVision on MacOS Big Sur (11.4) with Xcode 12.5+
INSTALL.md currently contains the following for MacOS (out-of-date, these instructions presume a CUDA build with old Mac hardware that included an NVIDIA GPU) --
followed by cmake:
or, alternatively, to include unit tests and examples:
My steps to build successfully were the following (build notes and discussions in various places clarify that a build on MacOS today cannot include CUDA because Mac hardware now provides us with an AMD GPU) --
The cmake result of the above steps --
Open the Xcode project file and click Automatically Create Schemes when prompted.
Select the ALL_BUILD target in Xcode and then compile and link by choosing from the menu Product->Build.
This is my first time building AliceVision. My intent is to use Meshroom without dense mesh Multi View Stereo (MVS) enabled.
https://alicevision.org/#photogrammetry/depth_maps_estimation
(CUDA is required for the MVS part of the AliceVision Photogrammetry Pipeline, but draft meshing with the CPU still works.)
https://meshroom-manual.readthedocs.io/en/bibtex1/install/requirements/requirements.html
Without CUDA on MacOS the AliceVision Photogrammetry Pipeline still gives us Structure-from-Motion (SfM)
https://alicevision.org/#photogrammetry/sfm
Presumably the executables and binary shared library files must be installed manually from the Xcode build directory for Meshroom to find them. There is an "install" target in the Xcode project -- it might automate installation correctly for you. Building the "install" target did copy the resulting binaries to /usr/local/bin and libraries to /usr/local/lib and created /usr/local/include/aliceVision for me as expected.
The text was updated successfully, but these errors were encountered: