On Wed, 03 Dec 2008, Barry Jackson wrote:

Hi Barry,

> Sounds excellent!
> In the meantime I have finally installed gtk+ - what a marathon!
> However, the xhgtk "make" still only gets this far before failing:-
> [EMAIL PROTECTED] xhgtk]$ make                                                
>                       
> gcc -c -W -Wall -O2 `pkg-config --cflags gtk+-2.0 libglade-2.0`
> -I/usr/include/harbour -Iinclude -oobj/callback.o source/callback.c           
>                                                           
> Package gdk-x11-2.0-uninstalled was not found in the pkg-config search path.  
>                       
> Perhaps you should add the directory containing `gdk-x11-2.0-uninstalled.pc'  
>                       
> to the PKG_CONFIG_PATH environment variable                                   
>                       
> Package 'gdk-x11-2.0-uninstalled', required by 'GTK+ Uninstalled', not found  
>                       
> In file included from source/callback.c:15:                                   
>                       
> include/xhgtk.h:21:18: error: glib.h: No such file or directory               
>                       
> include/xhgtk.h:22:21: error: gtk/gtk.h: No such file or directory    
> etc. etc. etc....
> gdk-x11-2.0-uninstalled.pc is not on my system - any idea where this should
> be?

Do not build GTK yourself. Use RPM packages compiled for your
distribution. Tomas gave you valid names.
Harbour also installs from RPMs. You can create them from non
root account by ./mpkg_rpm.sh. They will be storred in
$HOME/RPM/RPMS/<arch> directory.
Install them as root.
Then download currect xhgtk CVS (see on SF xhgtk page valid addresses
for CVS configuration) and create XHGTK RPMs from non root account by
./make_rpm.sh in XHGKT directory. Then install them as root.
Use hb* scripts to compile and link your applications with -lxhgtk
parameter. If you will want to use xhgtk static library with hardcoded
GTK dependencies inside your application then use -xhgtk hb* script
parameter.
That's all what you need.

Ubuntu users should install GTK2 and glib devel packages using aptget
or other tools. I do not know their exact names in Ubuntu - they can
be a little bit different.
Harbour should be installed from DEB package (./mpkg_deb.sh).
There is no DEB support in XHGTK yet so binaries will have to be created
and install by user.
To build binaries use ./make_gtk.sh and then copy lib/libxhgtk.a to
/usr/lib/harbour directory (you will need write permission to this
dir). If you want to create xhgtk shared library then use:
   hb_mkslib /usr/lib/libxhgtk /usr/lib/harbour/libxhgtk.a \
             `pkg-config --libs gtk+-2.0 libglade-2.0`
   ln -s harbour/libxhgtk.so /usr/lib/libxhgtk.so

Then you can use XHGTK like in RPM based distributions.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to