Home » Developing U++ » U++ Developers corner » Problems to build U++
Problems to build U++ [message #26505] |
Thu, 06 May 2010 22:18 |
ostruwe
Messages: 1 Registered: May 2010
|
Junior Member |
|
|
Hello!
I tried to build upp-x11-src-2361 on a SUSE 11.2 / 64 Bit machine, but make failed.The following message is shown:
c++ -c -x c++ -O3 -ffunction-sections -fdata-sections -I./ -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/include/glib-2.0 -I/usr/X11R6/lib/glib-2.0/include -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/cairo -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include/atk-1.0 -DflagGUI -DflagGCC -DflagSHARED -DflagLINUX -DflagPOSIX CtrlLib/TrayIconX11.cpp -o _out/CtrlLib/GCCMK-Gcc-Gui-Linux-Posix-Shared/TrayIconX11.o
In file included from /usr/include/glib-2.0/glib/galloca.h:34,
from /usr/include/glib-2.0/glib.h:32,
from CtrlLib/TrayIconX11.cpp:8:
/usr/include/glib-2.0/glib/gtypes.h:34:24: error: glibconfig.h: Datei oder Verzeichnis nicht gefunden
I had to add some 64Bit specific include paths. A good solution instead adding more and more paths, would be to add the following shell command to the make file:
CINC = -I./ `pkg-config gdk-2.0 --cflags-only-I` `pkg-config atk --cflags-only-I` -I/usr/X11R6/include
This construct detects the needed paths without manual investigation.
Kind regards
Otmar
|
|
|
|
Re: Problems to build U++ [message #26516 is a reply to message #26505] |
Fri, 07 May 2010 13:55 |
|
ostruwe wrote on Thu, 06 May 2010 22:18 | I had to add some 64Bit specific include paths. A good solution instead adding more and more paths, would be to add the following shell command to the make file:
CINC = -I./ `pkg-config gdk-2.0 --cflags-only-I` `pkg-config atk --cflags-only-I` -I/usr/X11R6/include
This construct detects the needed paths without manual investigation.
|
Hi Otmar,
The problem with this solution is that pkg-config is not necessarily installed on every system. But you are right, it would be cleaner solution.
I'll try to see if we could use pkg-config in some safe way. Probably check if it is installed and if not than fall back to the old way...
BTW, you can always overwrite the default include paths from command line when executing make: make "CINC = -I./ `pkg-config gdk-2.0 --cflags-only-I` `pkg-config atk --cflags-only-I` -I/usr/X11R6/include"
Best Regards,
Honza
|
|
|
Goto Forum:
Current Time: Mon May 13 12:27:15 CEST 2024
Total time taken to generate the page: 0.01956 seconds
|