LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-21-2002, 12:36 AM   #1
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Rep: Reputation: 0
Compiling GTK+ 2.0.9


hello,
i am trying to get GTK+ to compile and install and i am having some problems. i have compiled and installed glib and tiff libraries. i dont know if i have correctly compiled the jpeg libraries (i get cjpeg and djpeg in usr/local/bin). the same goes for Pango 1.0.4

this is what i ran:
Code:
env PKG_CONFIG_PATH=/home/dexter/Documents/pango-1.0.4:/usr/local/bin LD_LIBRARY_PATH=/usr/local/lib:/usr/local/bin ./configure --without-libpng
(i care not for PNG)

Code:
configure: WARNING: *** JPEG loader will not be built (JPEG library not found) ***
configure: error:
*** Checks for JPEG loader failed. You can build without it by passing
*** --without-libjpeg to configure but some programs using GTK+ may
*** not work properly
thanks for any help with this!


 
Old 12-21-2002, 04:48 AM   #2
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
if the jpeg library is not found, you better go, download anc install it. i downt know how and where you installed your jpeg libs, but best thing is to put the jpeg lib into /usr/lib.

make sure, that after install of the jpeglib you run ldconfig.

besides: you shouldnt use env ... to define paths for configure. use CPPFLAGS, CFLAGS or CXXFLAGS instead. (CPPFLAGS are preprocessor flags : if you need to set some special paths this is where you do it, CFLAGS are flags for the C compiler, CXXFLAGS the flags for the c++ compiler)

so your commad sould look like:

CPPFLAGS="-I/path/to/special/includes -L/path/to/special/libs ..." and so on.

hope this helped

raven
 
Old 12-21-2002, 03:33 PM   #3
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Original Poster
Rep: Reputation: 0
hey raven, thanks its going farther now.

its giving me some error with Pango, that it cant find freetype libraries, so im installing freetype now
 
Old 12-21-2002, 03:35 PM   #4
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Original Poster
Rep: Reputation: 0
okay that worked, now i need X development libraries. lol! there sure are alot of extra stuff u need
 
Old 12-21-2002, 05:08 PM   #5
AxeZ
Member
 
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Quote:
Originally posted by Dexter750
okay that worked, now i need X development libraries. lol! there sure are alot of extra stuff u need

Hmmm, You should have had all that stuff already installed.
What distro yre you using?
 
Old 12-21-2002, 05:12 PM   #6
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Original Poster
Rep: Reputation: 0
mandrake 9
 
Old 12-22-2002, 05:44 AM   #7
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
with mandrake 9 you can install all libs from cd. that shouldnt take that long :-)

good luck anyway :-)

raven
 
Old 12-22-2002, 02:07 PM   #8
Dexter750
LQ Newbie
 
Registered: Dec 2002
Posts: 11

Original Poster
Rep: Reputation: 0
thanks guys, i finally got everything installed and DashPC up and running. thanks again!
 
Old 03-06-2003, 09:04 AM   #9
GameboyHippo
Member
 
Registered: Mar 2003
Location: Bible Belt USA
Distribution: Debian
Posts: 91

Rep: Reputation: 15
Lightbulb

Actually I found an easier solution while trying compiling gtk+2.2.1. When you compile jpeg-6b be sure to do a make install-lib. I hope this helps out anybody else who stumbles upon this forum.

Jesus Loves You!

Hippo
 
Old 04-20-2003, 08:05 PM   #10
hex
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9 (Dolphin)
Posts: 11

Rep: Reputation: 0
Thumbs up I wish I had come across this earlier

Thanks a million Hippo! I wish I had come across this earlier.. all day long almost, I have been struggling with gtk+ .. your solution made it finally "see" the JPEG loader ... Seriously, thanks again
 
Old 04-28-2003, 08:28 PM   #11
Ju Deddo Koinu
Member
 
Registered: Apr 2003
Location: Austin, TX
Distribution: RedHat 9 w/ KDE
Posts: 86

Rep: Reputation: 15
make install-lib

Thanks Hippo - you helped me out so much with that quick tip
 
  


Reply



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
compiling gtk? @ngelot Linux - Software 1 11-14-2005 10:20 AM
after compiling GTK deepsix Linux - Software 2 04-02-2005 07:12 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
compiling gtk LinFreak! Slackware 6 07-19-2003 07:48 PM
Compiling GTK+ 2.2.1 Ju Deddo Koinu Linux - Software 4 04-29-2003 12:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 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
Open Source Consulting | Domain Registration