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

Cannot build on Centos-7 #128

Open
etheory opened this issue Oct 11, 2023 · 5 comments
Open

Cannot build on Centos-7 #128

etheory opened this issue Oct 11, 2023 · 5 comments

Comments

@etheory
Copy link

etheory commented Oct 11, 2023

Hi there! I've been following the instructions found here:

building/centos7_build.md

and when it gets to the boost section, I get the following error:

[  9%] Performing build step for 'Boost'
error: Configuration file 'python-config.jam' not found in '/scratch/dev/openmoonray/build/Boost-prefix/src/Boost'.

gmake[2]: *** [CMakeFiles/Boost.dir/build.make:89: Boost-prefix/src/Boost-stamp/Boost-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:143: CMakeFiles/Boost.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

I've tried what seem like all the obvious things, but I cannot figure out how to resolve this problem. Thanks!

@rgwilson68
Copy link
Contributor

rgwilson68 commented Oct 12, 2023

Hi!

In step 2 of centos7_build.md the last 2 lines are:
cd /
ln -s source/openmoonray/building .

This creates a symlink from /building to the 'building' subdirectory of the cloned source (assuming you cloned to "/source"). So "/building/python-config.jam" should exist as a file after this step.

CMakeLists.txt relies on this at line 30, in the Boost section, where it says "--user-config=/building/python-config.jam". I assume the error message you are getting means that the file isn't there...

If you can't (or don't want to) create a symlink at "/building", you can edit this line in CMakeLists.txt to specify the location directly (e.g. "/source/building/python-config.jam", or wherever you have the openmoonray repo cloned).

The same thing applies to line 154 of CMakeLists.txt, where the embree build uses "/building/embree_missing_type.patch"

In the next release, this issue will be addressed : these files are specified relative to CMakeLists.txt instead of using an absolute path.

@etheory
Copy link
Author

etheory commented Oct 19, 2023

That didn't help sorry, I still get the same error:

error: Configuration file 'python-config.jam' not found in '/building'.

Even though the file does now exist.

I also followed all of the linking stuff in the guide.

@etheory
Copy link
Author

etheory commented Oct 19, 2023

I got it working by changing:

BUILD_COMMAND ./b2 install -j64 --user-config=/building/python-config.jam --with_python variant=release toolset=gcc link=shared threading=multi

to an absolute path:
BUILD_COMMAND ./b2 install -j64 --user-config=FULL_PATH_TO/python-config.jam --with_python variant=release toolset=gcc link=shared threading=multi

But it still doesn't build, now I just get a huge number of boost errors. Still looking,

@rgwilson68
Copy link
Contributor

Check that the contents of python-config.jam match your python install : the default is python 3.6 with executable in /usr/bin/python3, includes in /usr/include/python3.6m and library in /usr/lib64

@etheory
Copy link
Author

etheory commented Oct 19, 2023

Thanks @rgwilson68, I managed to get past that and am still grappling with other dependency issues, but I have a path through now I think thank you! Looks like I'm slowly getting there.

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

2 participants