Re: Gtk and Netbeans



Hello

I'm using the next tip: in console I write:
pkg-config gtk+-2.0 --cflags
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include
and paste includes into project properties, Then I do the same thing
with --libs (to linker).

Also you have to write all the includes for code completion.

The other way is to choose GTK+ application from examples (only in
NetBeans 7.0) and use it as template.

NetBeans can also work with autotools (with configure script), and
then it makes a makefile, which NetBeans uses. Here you can use
macros, such as
PKG_CHECK_MODULES(YOUR_PROG, [gtk+-2.0 >= 2.8]
But NetBeans doesn't reconfigure it again, and if autotools
reconfigure it because of Makefile.am being changed, the output path
changes. Because, when you starts your project, you have to select
output binary, and then NetBeans runs it (when you want), but after
reconfiguration this path isn't the same.

And the last thing, I know, you can write your own makefile and use
there `pkg-config ...' as a compiler option. In previous releases of
NetBeans you couldn't use `..' (many errors being occurred).

Especially for me, I have two projects, one is made by autotools (I
use it for distributions making), and the second is made as I
described first.

I hope, somebody will help me with my errors too :)

Good luck

2009/3/27 Wolverine Logan <wolverine peento com>:


Hi everybody

How can I configure gtk+ for netbeans.

Thanks
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]