Programming This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-24-2004, 11:46 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2004
Distribution: SuSE Linux 9.0
Posts: 13
Rep:
|
GTK+ 2.0 / pkg-config / gcc
Hi,
First, I'm German, therefore excuse my English. Second, I know C++ but I don't know a lot about compiling code on Linux.
My distribution is SuSE Linux 9.0.
My problem: Whenever I compile anything it says that the libraries needed are missing and that I might wanna think about pointing my PKG_CONFIG_PATH to the right folder.
I assume that whenever I compile something, the compiler checks the PKG_CONFIG_PATH which contains several .pc files. These indicate where to find the libraries for the program.
Well, here's an example. I tried to compile the Window-Example from the GTK Tutorial on the gtk website. I compiled it with
gcc window.c -o window `pkg-config --cflags --libs gtk+-2.0`
The output was:
=========================================================
window.c:1:17: gtk.h: No such file or directory
window.c: In function `main':
window.c:5: error: `GtkWidget' undeclared (first use in this function)
... the rest are errors becuase it doesn't have the library.
=========================================================
But my PKG_CONFIG_PATH variable is set to the right path. Is it possible that the .pc file doesn't have the right paths configured?
Thanks for any help
A Radiohead Fan
|
|
|
|
01-25-2004, 07:48 AM
|
#2
|
|
Member
Registered: Jan 2004
Location: NY
Distribution: RH9
Posts: 38
Rep:
|
First:
locate gtk+-2.0.pc
Whatever path it comes up with, put it in the next line instead of the "[PATH]":
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:[PATH]
Here's an example (though do not copy the path as it might be different on your system):
# locate gtk+-2.0.pc
/usr/lib/pkgconfig/gtk+-2.0.pc
# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/gtk+-2.0.pc
Note that you might even see two of the *.pc files if you installed a newer version of gtk+ in another directory and kept the old installation as well. Always use the newer version. If you just see on *.pc file, then use that one.
Last edited by misfit-x; 01-25-2004 at 07:50 AM.
|
|
|
|
01-25-2004, 07:52 AM
|
#3
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
you are mixing libraries. I've said this more and more recently so here goes again
Gtk is NOT Gtk2
gtk.h is the header file for gtk, gtk2.h is the header file for gtk2. therefore your code clearly is Gtk, and NOT Gtk2, in whcih case you need to obtain the compilation flags from gtk-config (from the gtk-devel package, not pkg-config.
and .. Radiohead? pah.. just plagarists.... 
Last edited by acid_kewpie; 01-25-2004 at 08:09 AM.
|
|
|
|
01-25-2004, 04:28 PM
|
#4
|
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Rep:
|
Quote:
Originally posted by acid_kewpie
and .. Radiohead? pah.. just plagarists....
|
Acid, you bastard  ! DIE!!!

|
|
|
|
01-25-2004, 09:47 PM
|
#5
|
|
LQ Newbie
Registered: Jan 2004
Distribution: SuSE Linux 9.0
Posts: 13
Original Poster
Rep:
|
OK, thanks for everybody who helped. I solved the problem by installing some gnome development packages.
Radiohead is the best band ever, next to DMB, Weezer and The Who!
eof();
|
|
|
|
01-25-2004, 10:05 PM
|
#6
|
|
Senior Member
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032
Rep:
|
And Muse
|
|
|
|
01-26-2004, 02:08 AM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
ahahahahahahahah
you guys slay me, i could have guessed you'd be a muse fan too.....
http://www.southern.com
go find the bands they rip off that you've just never heard of...
|
|
|
|
01-26-2004, 09:16 AM
|
#8
|
|
LQ Newbie
Registered: Jan 2004
Distribution: SuSE Linux 9.0
Posts: 13
Original Poster
Rep:
|
What do they plagiarise (is that the way you spell it?), lyrics or the music or what? You're right, I've never heard of any of the bands at that label...
|
|
|
|
01-26-2004, 09:23 AM
|
#9
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
you haven't.. but radiohead have.... makes it seem like what they play is original huh?
|
|
|
|
01-26-2004, 03:47 PM
|
#10
|
|
LQ Newbie
Registered: Jan 2004
Distribution: SuSE Linux 9.0
Posts: 13
Original Poster
Rep:
|
Did anybody come to that conclusion already or is that your own opinion?
|
|
|
|
01-26-2004, 03:51 PM
|
#11
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
ahh just listen to aphex twin, mogwai or any other number of bands and you can find every single note on radioheads last 3 albums...
|
|
|
|
01-26-2004, 03:55 PM
|
#12
|
|
LQ Newbie
Registered: Jan 2004
Distribution: SuSE Linux 9.0
Posts: 13
Original Poster
Rep:
|
but possibly they only sound the same... just because they have the same melody it doesn't mean that they plagiarize...
|
|
|
|
01-26-2004, 03:58 PM
|
#13
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
not necessarily no, it just drives me mad that simply because 95% of radiohead fans have never heard real postrock music they worship radiohead as something amazingly original, when they are just so far from it...
|
|
|
|
01-26-2004, 04:12 PM
|
#14
|
|
LQ Newbie
Registered: Jan 2004
Distribution: SuSE Linux 9.0
Posts: 13
Original Poster
Rep:
|
Are you saying that they are simply succesful because they're mainstream? I don't have a problem listening to them just because of that. Pretty much every band that I like, I started liking because some friend of mine loves it and told me how great that kind of music is. Therefore, the reason that I don't know the bands you're talking about is because nobody I know listens to them (or told me about them). That doesn't mean that they are bad but they are obviously not too popular. Just because Radiohead became a mainstream band, that doesn't mean that everybody who actually enjoys music instead of watching the top 20 charts everyday should stop listening to them.
|
|
|
|
01-26-2004, 04:14 PM
|
#15
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
hell no, nothing wrong with being mainstream, it's the fake credibility they are given by fans who have no idea there is vast amounts of similar (better) music out there...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|