AliceVision icon indicating copy to clipboard operation
AliceVision copied to clipboard

cmake boost

Open xin18060006 opened this issue 4 years ago • 4 comments

CMake Error at src/CMakeLists.txt:259 (message): Failed to find Boost. CMake Error at src/CMakeLists.txt:260 (message): Boost version: 1.65.1 Boost include path: /usr/include Could not find the following Boost libraries: boost_container boost_log boost_log_setup Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.

Expected behavior:

Actual behavior:

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Versions

  • AliceVision branch/version:
  • OS:
  • C++ compiler:

xin18060006 avatar Aug 20 '19 01:08 xin18060006

You need to install the dependencies, see https://github.com/alicevision/AliceVision/blob/develop/INSTALL.md

The pre-build package can be downloaded from here https://github.com/alicevision/AliceVision/releases so you don´t have to build Alicevision yourself.

natowi avatar Aug 20 '19 08:08 natowi

To be fair, the documentation isn't super clear here.

INSTALL.md contains this:

Setup the required external library. sudo apt-get install libpng-dev libjpeg-dev libtiff-dev libxxf86vm1 libxxf86vm-dev libxi-dev libxrandr-dev

But... a lot more libraries are actually needed. I got stuck here too. Can this part of the documentation be updated?

dprestegard avatar Apr 09 '20 01:04 dprestegard

yes you are right we should restructure the instructions to make it more clear.

As now you can see that there is a first part of the instructions on how to build all the needed dependencies (vcpkg, using the CMake script etc). So you need to first build all those dependencies, you can use vcpkg no matter which platform you are in or for Linux you can build all the required dependencies directly from CMake https://github.com/alicevision/AliceVision/blob/develop/INSTALL.md#building-the-project-with-embedded-dependencies adding the flag -DALICEVISION_BUILD_DEPENDENCIES=ON. Note that as explained this requires to install some additional building tools.

Setup the required external library. sudo apt-get install libpng-dev libjpeg-dev libtiff-dev libxxf86vm1 libxxf86vm-dev libxi-dev libxrandr-dev

As for this you only need

sudo apt-get install libxxf86vm1 libxxf86vm-dev libxi-dev libxrandr-dev

which are not direct dependencies of the project but they might be needed by the project's dependencies

simogasp avatar Apr 09 '20 08:04 simogasp

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.

github-actions[bot] avatar Jan 02 '22 00:01 github-actions[bot]

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.

github-actions[bot] avatar Dec 29 '22 00:12 github-actions[bot]