https://bugzilla.redhat.com/show_bug.cgi?id=1178361
--- Comment #7 from MartinKG mgansser@alice.de --- (In reply to Antonio Trande from comment #6)
(In reply to MartinKG from comment #5)
- %{_prefix}/lib ???
the package includes two static libs:
ll /home/martin/rpmbuild/BUILDROOT/stuntrally-2.5-4.fc21.x86_64/usr/lib/ insgesamt 2100 drwxr-xr-x. 5 martin martin 4096 5. Jan 18:51 debug -rw-r--r--. 1 martin martin 2138372 5. Jan 18:51 libshiny.a drwxr-xr-x. 2 martin martin 4096 5. Jan 18:51 OGRE [martin@fc21 SPECS]$ ll /home/martin/rpmbuild/BUILDROOT/stuntrally-2.5-4.fc21.x86_64/usr/lib/OGRE/ insgesamt 416 -rw-r--r--. 1 martin martin 424970 5. Jan 18:51 libshiny.OgrePlatform.a
there exists already the Shader and material management library for OGRE as Fedora rpm package. http://rpms.famillecollet.com/rpmphp/zoom.php?rpm=shiny
how to unbundle it or is it not necessary ?
There are useful cmake options:
cd source/shiny cmake -LAH
Be careful to the bundled files.
i added -DSHINY_BUILD_OGRE_PLATFORM:BOOL=NO to the cmake build section. but the Linking CXX executable ../stuntrally part fails with the error message:
/usr/bin/ld: cannot find -lshiny.OgrePlatform collect2: error: ld returned 1 exit status source/CMakeFiles/stuntrally.dir/build.make:3651: recipe for target 'stuntrally' failed make[2]: *** [stuntrally] Error 1 make[2]: Leaving directory '/home/martin/rpmbuild/BUILD/stuntrally-2.5/build' CMakeFiles/Makefile2:147: recipe for target 'source/CMakeFiles/stuntrally.dir/all' failed make[1]: *** [source/CMakeFiles/stuntrally.dir/all] Error 2 make[1]: Leaving directory '/home/martin/rpmbuild/BUILD/stuntrally-2.5/build' Makefile:120: recipe for target 'all' failed
the library exists at this location: /usr/lib64/OGRE/libshiny.OgrePlatform.so
how do i add this lib path to the build flags ?