ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I actually started with a project called 'megatest'.
Code:
fossil clone http://www.kiatoa.com/cgi-bin/fossils/megatest megatest.fossil
mkdir megatest ; cd megatest
fossil open ../megatest.fossil
This downloads the megatest project and within that project is a utils subdirectory that has a Makefile. It is that makefile that I am attempting to run.
The make file has a step that uses fossil to clone and open iuplib, then another step that runs a script. The script runs three more makefiles and it is these makefiles that run gcc and generate the aforementioned errors.
It's like peeling an onion.
I do not know much about the code (or c in general) so yes it could be old. I am using gcc 4.8.4.
I appreciate your reply and welcome any other questions or suggestions you might have.
Package gtk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-2.0' found
Package gtk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk-2.0' found
cc -o gtktest gtktest.c
gtktest.c:4:21: error: gtk/gtk.h: No such file or directory
I do not have these errors trying to compile the iup code. However the return from make has several -I</some/include/path> options with gcc.
You should have a libgtk+-2.0.pc file somewhere -- if not, your install might be incomplete
Code:
$ dpkg -S /usr/lib/pkgconfig/gtk+-2.0.pc
libgtk2.0-dev: /usr/lib/pkgconfig/gtk+-2.0.pc
$ dpkg -l libgtk2.0-dev
+++-==============-==============-============================================
ii libgtk2.0-dev 2.20.1-2 Development files for the GTK+ library
You should have a libgtk+-2.0.pc file somewhere -- if not, your install might be incomplete
Code:
$ dpkg -S /usr/lib/pkgconfig/gtk+-2.0.pc
libgtk2.0-dev: /usr/lib/pkgconfig/gtk+-2.0.pc
$ dpkg -l libgtk2.0-dev
+++-==============-==============-============================================
ii libgtk2.0-dev 2.20.1-2 Development files for the GTK+ library
Reran your test at home on my personal PC and it compiled and ran with no issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.