LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2006, 07:16 AM   #1
yumener
Member
 
Registered: Oct 2005
Posts: 63

Rep: Reputation: 15
problems in compiling wxGTK


HI, I try to compile wxGTK (wxWidget).

I download GTK 2.10.3 source, compile,and installed it.
I noticed it was put in /usr/local/lib.

When I run ./configure --with-gtk in wxGTK, it complained the
following errors

configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.


I have the same gtk+-2.0.pc file under /usr/local/lib/pkgconfig and /usr/lib/pkgconfig. I do not know why wxGTK can not find it.

thanks.
 
Old 09-17-2006, 09:55 AM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The main thing that I see that could be causing the problem is that configure is looking for pkg-config, and you are giving us the locations of pkgconfig. Trivial difference to humans, but very different to computers.

Your options at this point include -
1) Editing the configure file to look for pkgconfig instead of pkg-config. They may be entirely different programs, and not at all interchangeable.
2) Run configure --help and you'll get a list of options. It is possible that it isn't checking /usr/local/lib, but only /usr/lib. Again, look at the code and see where it is looking. If it only checks /usr/lib, than put symbolic links in /usr/lib pointing to the correct files in /usr/local/lib. You also might have the ability to tell the configure program "look here" with an include statement. The configure --help will give you the context to tell the configurer "look in this location for these files".

Peace,
JimBass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference to WxGtk libraries when compiling Xchm Darwish Linux - Software 0 09-03-2005 11:11 PM
TreeViewX problems related to wxGTK abisko00 DNALinux 3 11-18-2004 10:52 AM
wxGTK problems mattblack_uk Yoper 1 11-17-2004 07:19 AM
lMule wxGTK and wxGTK-devel Caveman Linux - Software 3 10-15-2003 11:38 AM
Problems while compiling wxGTK ! Cdzin Slackware 3 08-08-2003 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration