[opensuse-packaging] Some headers not found
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? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Mon, 2011-04-04 at 21:33 +0400, 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? Hi Patch the code.... Makefiles, add configure options?
-- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.29-0.3-default up 15:03, 2 users, load average: 0.02, 0.21, 0.18 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.26 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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
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.
It does not help. And in addition, cmake does not show with which options the compiler is executed. I do not know what to do now.
* Ilya Chernykh (neptunia@mail.ru) [20110405 11:52]:
It does not help.
And in addition, cmake does not show with which options the compiler is executed. I do not know what to do now.
How about telling us which package it is that you have problems with? Then we would have the chance to look at the source ourselves. Philipp PS We should make it a strikt rule for opensuse-packaging that mails must include the name and project of the package in question. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 04/05/2011 11:52 AM, Ilya Chernykh wrote:
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. This can also be added to your make command as "make CPPFLAGS=-I/usr/include/wheretheheadersare" or try using "make --environment-overrides" you might need a combination of both ie. "make --environment-overrides CPPFLAGS=-I/usr/include/wheretheheadersare" Last thing to try is adding the "-I" statements to CXXFLAGS and CFLAGS although CPPFLAGS are supposed to be for the -I includes etc.
It does not help.
And in addition, cmake does not show with which options the compiler is executed. I do not know what to do now. cmake-gui is useful for finding options.
If you post your main (top source directory) CMakeLists.txt somewhere where I can read it I may be able to help, cmake very often doesn't show the variables and you have to read the top level CMakeLists.txt to find them and sometimes but not often they are hidden in subdirectory CMakeLists.txt. There's also a small possibility that "pkg-config" is needed for your build but isn't installed. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Dave Plater
-
Ilya Chernykh
-
Malcolm
-
Philipp Thomas