Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Problems to build U++
Problems to build U++ [message #26505] Thu, 06 May 2010 22:18 Go to next message
ostruwe is currently offline  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 #26508 is a reply to message #26505] Fri, 07 May 2010 09:12 Go to previous messageGo to next message
amrein is currently offline  amrein
Messages: 278
Registered: August 2008
Location: France
Experienced Member

Howto build upp-x11-src-2361 from source tarball on rpm based Linux distributions?
(Suse, Fedora/Redhat, Mandriva, ...)

rpmbuild -tb --define "version 2361" --define "date $(LC_TIME=En date '+%a %b %d %Y')" upp-x11-src-2361.tar.gz


That it.
Re: Problems to build U++ [message #26516 is a reply to message #26505] Fri, 07 May 2010 13:55 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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
Previous Topic: Creating .deb package for U++ app
Next Topic: Splitting debs into two parts
Goto Forum:
  


Current Time: Fri Mar 29 08:24:41 CET 2024

Total time taken to generate the page: 0.01424 seconds