libGII, Xlib und autoconf mit KDevelop
-
Hallo Leute,
ich habe folgendes Problem. Ich moechte gerne in meinem Projekt libgii verwenden.
Also habe ich die Header-Dateien mit #include eingebunden und meine configure.in angepasst (verwende KDevelop).
Wenn ich nun versuche mein Projekt zu kompillieren, bekomme ich folgende Meldungen vom configure-Scriptchecking ggi/gii.h usability... yes checking ggi/gii.h presence... yes checking for ggi/gii.h... yes checking ggi/input/xwin.h usability... no checking ggi/input/xwin.h presence... yes configure: WARNING: ggi/input/xwin.h: present but cannot be compiled configure: WARNING: ggi/input/xwin.h: check for missing prerequisite headers? configure: WARNING: ggi/input/xwin.h: see the Autoconf documentation configure: WARNING: ggi/input/xwin.h: section "Present But Cannot Be Compiled" configure: WARNING: ggi/input/xwin.h: proceeding with the preprocessor's result configure: WARNING: ggi/input/xwin.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## checking for ggi/input/xwin.h... yes checking for giiInit in -lgii... yes
und diese hier vom Compiler:
if g++ -DHAVE_CONFIG_H -I. -I/home/apollon/Documents/simple/src -I.. -DGCC_3_1 -DEXT_HASH -I/usr/include/OGRE -O0 -g3 -MT Application.o -MD -MP -MF ".deps/Application.Tpo" -c -o Application.o /home/apollon/Documents/simple/src/Application.cpp; then mv -f ".deps/Application.Tpo" ".deps/Application.Po"; else rm -f ".deps/Application.Tpo"; exit 1; fi In file included from /usr/include/ggi/input/xwin.h:31, from /home/apollon/Documents/simple/src/Application.cpp:10: /usr/include/X11/Xlib.h:233: error: 'Font' is used as a type, but is not defined as a type. /usr/include/X11/Xlib.h:339: error: 'Cursor' is used as a type, but is not defined as a type. /usr/include/X11/Xlib.h:511: error: syntax error before `*' token /usr/include/X11/Xlib.h:1041: error: 'Font' is used as a type, but is not defined as a type. /usr/include/X11/Xlib.h:1065: error: 'Font' is used as a type, but is not defined as a type. /usr/include/X11/Xlib.h:1077: error: 'Font' is used as a type, but is not defined as a type. /usr/include/X11/Xlib.h:1562: error: syntax error before `(' token /usr/include/X11/Xlib.h:1571: error: syntax error before `(' token /usr/include/X11/Xlib.h:1580: error: syntax error before `(' token /usr/include/X11/Xlib.h:1584: error: syntax error before `(' token /usr/include/X11/Xlib.h:2037: error: type specifier omitted for parameter ` Cursor' /usr/include/X11/Xlib.h:2238: error: type specifier omitted for parameter ` Cursor' /usr/include/X11/Xlib.h:2539: error: type specifier omitted for parameter ` Cursor' /usr/include/X11/Xlib.h:2711: error: type specifier omitted for parameter ` Cursor' /usr/include/X11/Xlib.h:2740: error: type specifier omitted for parameter ` Cursor' /usr/include/X11/Xlib.h:2776: error: syntax error before `(' token /usr/include/X11/Xlib.h:3065: error: type specifier omitted for parameter ` Cursor' /usr/include/X11/Xlib.h:3222: error: type specifier omitted for parameter `Font ' /usr/include/X11/Xlib.h:3501: error: type specifier omitted for parameter `Font ' make[2]: *** [Application.o] Error 1
Ich vermute, dass ich die Xlib auch reinlinken muss, allerdings wess ich nicht wie man das macht. Waere fuer Hilfe sehr dankbar.