On 04/04/2011 07:33 PM, Ilya Chernykh wrote:
Hi!
I have a package that uses cmake. It uses SDL, Ogre and other libraries. But when compiling it cannot find libraries which are located not in the main include dir (/usr/include), but one or two levels deeper, i.e. in /usr/include/SDL, /usr/include/OGRE, /usr/include/OGRE/Terrain .
I was able to add explicit links to some headers, but when a header located in /usr/include/OGRE/Terrain calls another header in the same directory I do not know what to do. Is there a more simple way to make the compiler to know where to search for headers?
You can try "export CPPFLAGS="-I/usr/include/wheretheheadersare" in your spec file, use a -I for each place that your build can't find. Otherwise you need to patch CMakeLists.txt possibly the top level one or maybe one in a subdirectory. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org