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 Gentoo #83

Closed
ColinGilbert opened this issue Jan 5, 2015 · 3 comments
Closed

Cannot build on Gentoo #83

ColinGilbert opened this issue Jan 5, 2015 · 3 comments

Comments

@ColinGilbert
Copy link

Hi,

I have built and installed Corrade using its standard buildscripts, but upon trying to build Magnum, I receive the following error:

num/build/src/Magnum/Shaders/resource_MagnumShaders_RCS.cpp
/usr/local/bin/corrade-rc: error while loading shared libraries: libCorradeUtility.so.0: cannot open shared object file: No such file or directory
src/Magnum/Shaders/CMakeFiles/MagnumShaders.dir/build.make:75: recipe for target 'src/Magnum/Shaders/resource_MagnumShaders_RCS.cpp' failed
make[2]: *** [src/Magnum/Shaders/resource_MagnumShaders_RCS.cpp] Error 127
CMakeFiles/Makefile2:849: recipe for target 'src/Magnum/Shaders/CMakeFiles/MagnumShaders.dir/all' failed
make[1]: *** [src/Magnum/Shaders/CMakeFiles/MagnumShaders.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

Any advice?

@mosra
Copy link
Owner

mosra commented Jan 6, 2015

Hi,

I don't really know how Gentoo ebuilds work, but from the output it seems that it is not able to find the library in /usr/local/lib (because that directory is not in the library path on most systems). I assume that /usr/local/lib/libCorradeUtility.so.0 exists.

Looking at the Corrade buildscript, it seems that the -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr" argument was somehow skipped and so the CMake default /usr/local prefix was used instead of /usr.

in the corrade-999.ebuild file there is something fishy with the \ line continuation characters, can you try to remove all of them like in the following snippet to see if it gets installed into proper location?

    ...
    local mycmakeargs=(
        -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
        -DCMAKE_BUILD_TYPE=Debug
        -DBUILD_TESTS=TRUE
        -DWITH_FIND_MODULE=TRUE
    )
    ...

If that won't help, does CMake print any error/warning when building Corrade?

@ColinGilbert
Copy link
Author

Just built from Github repo tonight.

@mosra
Copy link
Owner

mosra commented Jan 29, 2015

Glad to know it's fixed :)

@mosra mosra added this to the 2015.05 milestone Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Platforms
  
Done
Development

No branches or pull requests

2 participants