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 » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » compile & link gtk+ using theide
BugQuestion.gif  compile & link gtk+ using theide [message #4933] Sat, 26 August 2006 14:52 Go to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Could anyone tell me how to config "theide" to compile and link with a gtk+-2.0 library.

I know how to compile and link a program in command line like

>gcc -P -w -O0 -g3 -Wall -fmessage-length=0 -c eggtrayicon.c -o bin/eggtrayicon.o `pkg-config gtk+-2.0 --cflags`

But where shall "pkg-config gtk+-2.0 --cflags" be placed within theide.


>pkg-config gtkmm-2.4 gtk+-2.0 --cflags --libs
-I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lpangomm-1.4 -lcairomm-1.0 -lglibmm-2.4 -lsigc-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
Re: compile & link gtk+ using theide [message #4951 is a reply to message #4933] Sun, 27 August 2006 20:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
3togo wrote on Sat, 26 August 2006 08:52

Could anyone tell me how to config "theide" to compile and link with a gtk+-2.0 library.

I know how to compile and link a program in command line like

>gcc -P -w -O0 -g3 -Wall -fmessage-length=0 -c eggtrayicon.c -o bin/eggtrayicon.o `pkg-config gtk+-2.0 --cflags`

But where shall "pkg-config gtk+-2.0 --cflags" be placed within theide.


>pkg-config gtkmm-2.4 gtk+-2.0 --cflags --libs
-I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -lgtkmm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lpangomm-1.4 -lcairomm-1.0 -lglibmm-2.4 -lsigc-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0


` ` means "insert stdout of program into commandline", right?

Sorry, this is not supported by GCC builder - you would have to insert all of these includes and libraries manually....

Mirek
Re: compile & link gtk+ using theide [message #4956 is a reply to message #4951] Sun, 27 August 2006 21:28 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
luzr wrote on Sun, 27 August 2006 20:23

` ` means "insert stdout of program into commandline", right?

Sorry, this is not supported by GCC builder - you would have to insert all of these includes and libraries manually....

Mirek

I think this feature should be implemented, because many libraries on *nix systems deliver such a shell script that can be used on the commandline to ease compile flag insertion and it would alleviate using such libraries with U++.

Matthias
Re: compile & link gtk+ using theide [message #4963 is a reply to message #4956] Sun, 27 August 2006 22:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
...there is always something to learn...

(OTOH, TheIDE and U++ is designed specifically to avoid such complexities, but that is another issue Wink

Mirek
Re: compile & link gtk+ using theide [message #5005 is a reply to message #4963] Wed, 30 August 2006 17:31 Go to previous message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Forget it la.

This would imply that someone have to write a pre-compiled library so that it could be called within u++. Actually I am thinking of writing a linux version of tray-icon for u++. It would require calling gtk+ library.

If anyone could give me any pointers to create such a library, it would be much appreciated. If not, I will study how to do so all on my own this coming weekend.

Thanks.

3togo

[Updated on: Wed, 30 August 2006 17:33]

Report message to a moderator

Previous Topic: Linux Source Package: upp-src-608-dev1.tar.bz2
Next Topic: problem with makefile (Linux)
Goto Forum:
  


Current Time: Wed May 15 12:47:05 CEST 2024

Total time taken to generate the page: 0.02560 seconds