How to compile a GTK program for Lucid 5.28?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

How to compile a GTK program for Lucid 5.28?

#1 Post by jafadmin »

I want to compile a C++/GTK program for lucid 5.28. What all do I need to add to get the gtk stuff to compile?

When I #include the gtk.h header file it tosses a bunch of errors about missing files.

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#2 Post by DPUP5520 »

what program is it that you are trying to compile?
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#3 Post by jafadmin »

a newer version of gpptp.

I'm porting the source from the project I did on puppy 4.xx

I need to know how to shoehorn the GTK libs and headers into 5.28 full install.

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#4 Post by jafadmin »

Ok, so after quite a bit of hair pulling I finally got all the #include dependencies sorted out so the compiler is happy for this project. I can't help but wonder how badly I've messed things up by putting all those symlinks in the <include> directory.

Oh well, this instance of puppy is primarily for this project. Now I'm off to goof around with libraries :twisted:

edit:

WooHoo! Success! Compile->link->binary

I'll have a 5.xx enhanced version of gpptp posted in the HowTo forum before long

:D

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#5 Post by technosaurus »

too little info, but try:
pkgconfig -cflags gtk+-2.0
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply