Build process in Docker breaks due to missing dependencies

Open
#227 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, docker, linux

Research direction

Start with the Rocky 9 container build instructions linked in the issue and the dependency checks in arras/arras4_core/CMakeLists.txt and arras/arras_render/CMakeLists.txt. Compare the documented packages with the missing JsonCpp and OpenEXR development dependencies reported during CMake configuration. Done means the instructions identify the needed dependencies and a fresh container build proceeds past configuration.

Written by the indexing model from the issue text.

Description

Hello out there, Im using a Debian testing system with Docker version 29.3.1 (not from Debian but from Docker.com). I followed the instruction https://docs.openmoonray.org/getting-started/installation/building-moonray/rocky9_container_build/ and everything worked as described. But with the command

cmake /source -DPYTHON_EXECUTABLE=python3 -DBOOST_PYTHON_COMPONENT_NAME=python39 -DABI_VERSION=0 -DMOONRAY_USE_OPTIX=NO

the build process broke:

-- The C compiler identification is GNU 11.5.0
-- The CXX compiler identification is GNU 11.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- No CUDA support
-- Looking for TBB components tbb; (tbbmalloc;tbbmalloc_proxy;tbbbind;tbbpreview)
-- Found TBB version 2020.3 at /usr
-- Found Boost: /usr/lib64/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0") found components: chrono date_time filesystem program_options system
-- Found Libuuid: /lib64/libuuid.so
-- Found Libcurl: /lib64/libcurl.so.4
-- Found Libatomic: /lib64/libatomic.so.1
-- Found Microhttpd: /lib64/libmicrohttpd.so
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find JsonCpp (missing: JsonCpp_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake_modules/cmake/FindJsonCpp.cmake:34 (find_package_handle_standard_args)
arras/arras4_core/CMakeLists.txt:55 (find_package)

I tried to solve this problem by installing jsoncpp-devel-1.9.5-1.el9.x86_64.rpm with the package manager but faced another obstacle:

-- No CUDA support
-- Looking for TBB components tbb; (tbbmalloc;tbbmalloc_proxy;tbbbind;tbbpreview)
-- Found TBB version 2020.3 at /usr
-- Found JsonCpp: /lib64/libjsoncpp.so
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.5.1")
-- Found CppUnit: /lib64/libcppunit.so
-- Found Boost: /usr/lib64/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0") found components: chrono date_time filesystem program_options
-- Found Boost: /usr/lib64/cmake/Boost-1.75.0/BoostConfig.cmake (found version "1.75.0") found components: chrono program_options filesystem
-- Found JPEG: /usr/lib64/libjpeg.so (found version "62")
CMake Error at arras/arras_render/CMakeLists.txt:42 (find_package):
By not providing "FindOpenEXR.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenEXR", but
CMake did not find one.
Could not find a package configuration file provided by "OpenEXR" with any
of the following names:
OpenEXRConfig.cmake
openexr-config.cmake
Add the installation prefix of "OpenEXR" to CMAKE_PREFIX_PATH or set
"OpenEXR_DIR" to a directory containing one of the above files. If
"OpenEXR" provides a separate development package or SDK, be sure it has
been installed.

So it seems there are several packages and/or build instructions missing?

Thanks a lot
BR /Chris

Dominant language
CMake
Stars
4.7k
Forks
321
Avg merge
13m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenMoonRay/openmoonray

All issues in OpenMoonRay/openmoonray

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.