Skip to content
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

Could not find boost #217

Closed
happysmash27 opened this issue Jun 18, 2019 · 4 comments
Closed

Could not find boost #217

happysmash27 opened this issue Jun 18, 2019 · 4 comments

Comments

@happysmash27
Copy link

happysmash27 commented Jun 18, 2019

happysmash27@computer-pig build % CMAKE_PREFIX_PATH=/usr/lib:/usr/include:/usr/include/boost cmake .. -DPYTHON_LIBRARY=/usr/lib/libpython3.5m.so -DPYTHON_INCLUDE_DIR=/usr/include/python3.5m
-- CMake version 3.14.3 detected
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/lib/ccache/bin/cc
-- Check for working C compiler: /usr/lib/ccache/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++
-- Check for working CXX compiler: /usr/lib/ccache/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Single-config generator detected
-- Using build variant:
-- Available custom configurations in cmake/SpecializedConfig:
--   Config_Dade
--   Config_Linux-Static
--   Config_OSX
--   Config_Windows
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found OpenImageIO: /usr/lib/libOpenImageIO.so
-- Found OPENEXR: /usr/lib/libIex.so;/usr/lib/libIlmImf.so;/usr/lib/libHalf.so;/usr/lib/libImath.so;/usr/lib/libIlmThread.so
-- Found TIFF: /usr/lib/libtiff.so (found version "4.0.10")
-- Found JPEG: /usr/lib/libjpeg.so (found version "62")
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37+apng")
-- Found PythonLibs: /usr/lib/libpython3.5m.so (found suitable version "3.5.7", minimum required is "3.4")
-- Could NOT find Boost
-- Re-trying with link static = ON
-- Could NOT find Boost
-- Found OpenGL: /usr/lib/libGL.so
-- Could NOT find OPENCL (missing: OPENCL_INCLUDE_DIR)
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- OpenMP found - compiling with
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.24.8
-- Found BISON: /usr/bin/bison (found version "3.3.2")
-- Found FLEX: /usr/bin/flex (found version "2.6.4")
CMake Error at CMakeLists.txt:101 (MESSAGE):
  --> Could not locate required Boost files - Please check


-- Configuring incomplete, errors occurred!

I have also tried running cmake .. -DBOOST_INCLUDEDIR=/usr/include/boost/ -DBOOST_LIBRARYDIR=/usr/lib -DPYTHON_LIBRARIES=/usr/lib/python2.7 -DPYTHON_INCLUDE_DIRS=/usr/include/python2.7 -DBOOST_ROOT=/mnt/MEGA/src/boost_1_65_0, with the same result.

https://github.com/LuxCoreRender/LinuxCompile does not work either, due to the following issue: LuxCoreRender/LinuxCompile#8

It looks like my re-compilation of boost to use python3_7 through my package manager didn't actually use it, so I will try to do so again with a bit of a change to my USE flags first.

I cannot use precompiled binaries, as I am attempting to modify the source code to use nearest neighbor sampling instead of terrible, horrible bilinear filtering.

Edit: It looks like Boost doesn't support python 3.7?

computer-pig happysmash27 # emerge dev-libs/boost

 * IMPORTANT: 3 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: 16 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Calculating dependencies \

!!! Problem resolving dependencies for dev-libs/boost
... done!

!!! The ebuild selected to satisfy "dev-libs/boost" has unmet requirements.
- dev-libs/boost-1.65.0::gentoo USE="context doc nls python threads tools -debug -icu -mpi -static-libs" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="-python2_7 -python3_5 -python3_6"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python? ( any-of ( python_targets_python2_7 python_targets_python3_5 python_targets_python3_6 ) )

  The above constraints are a subset of the following complete expression:
    mpi? ( threads ) python? ( any-of ( python_targets_python2_7 python_targets_python3_5 python_targets_python3_6 ) )

@happysmash27
Copy link
Author

According to #205, the problem is https://github.com/LuxCoreRender/LuxCore/blob/master/cmake/Dependencies.cmake#L69. Deleting python${PYTHON_V} and numpy${PYTHON_V} does indeed fix it, and I can also replace python${PYTHON_V} with python-3.5 and have it work fine. I do not, however, know how to make it properly depend on numpy yet, though.

@waebbl
Copy link

waebbl commented Jul 14, 2019

@happysmash27 For boost-1.65 you can replace ${PYTHON_V} by -3.{5,6}, depending on which python you are using, for both, the python and the numpy component.
However, boost-1.65 doesn't have python-3.7 support in gentoo, so that's no possible.
You might want to take a look at https://github.com/waebbl/waebbl-gentoo/tree/master/media-gfx/luxcorerender for an ebuild which used to work with boost-1.65 (and still should). Note however, that it's broken for boost-1.70, if you happen to have boost upgraded already.

@Dade916
Copy link
Member

Dade916 commented Dec 19, 2019

I assume we can close this one.

@Dade916 Dade916 closed this as completed Dec 19, 2019
@Randrianasulu
Copy link

well, something like this hit my machine x86 Slackware too. I also hacked cmake/Dependencies.cmake for removing numpy${PYTHON_V} and replacing python${PYTHON_V} with just python37 . Note I have TWO versions of python installed, 2.7 and 3.7, and boost 1.69 just recompiled with numpy3, installed into python3 via pip3 install numpy .....

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

No branches or pull requests

4 participants