LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   No GTK found (https://www.linuxquestions.org/questions/linux-software-2/no-gtk-found-109298/)

hunteragp 10-27-2003 08:36 PM

No GTK found
 
I'm a newbie on linux so please understand me! I've been trying to compile from source some apps that use GTK like MPlayer and Gimp, but I get an error like this: Searching for gtk... No gtk found. I'm on SuSE 8.2, and it comes with both GTK1 and 2. I have no problem with RPMs, it's just when I try to install from source. Once I read that I have to link something, but I would like somebody to help me.

guygriffiths 10-28-2003 06:56 AM

Do:
find /usr -name libgtk\*
and if that comes up with nothing, try
find /usr -name \*gtk\*
You should find the library files, called something like "libgtk.so", and also a load of header files *gtk*.h
If they're not there, then you don't have gtk installed. Most likely, you don't have the headers installed, which you need to compile. There is probably a package to install GTK development files. You'll need that. If you do have all the necessary files:
What directory are they in?
Do:
less /etc/ld.so.conf
Is the directory that the gtk libraries were in present in that file? If not then add them and run ldconfig.

Hope that helps
Guy

hunteragp 10-28-2003 03:42 PM

Thanks! It helped a lot but I have other problem now... Everything is okay with GTK2 apps, but I can't compile GTK1 apps, like GIMP, MPlayer etc. For example; when GIMP searches for gtk-config it can't find it. I tried searching for pkg-config and it found the file, but I tried to search for gtk-config and nothing is found. In Yast2, both versions appear to be installed GTK1 and 2, but there is not gtk-config. Is something missing? Can I make pkg-config work as gtk-config? What do I need? I will apreciate any help.

Caeda 11-28-2003 11:57 AM

Alright, I got the same problem. everything is in /opt/gnome/lib And it is listen in /etc/ld.so.conf...

Yet mplayer whines that it can't find gtk... Devel is installed, as well as gtk2 and gtk2 devel and the whole works...

Caeda 11-28-2003 12:07 PM

Ah.. got it..

./configure --enable-gui --with-gtk-config=/opt/gnome/bin/gtk-config --with-glib-config=/opt/gnome/bin/glib-config

KyngNothing 12-02-2003 05:20 PM

Bless you caeda, that seems to have worked!! :D

thanks!!

edit: ARGH!!!
now i get this:


./version.sh `gcc -dumpversion`
make distclean
make[1]: Entering directory `/home/dave/MPlayer-0.92'
rm -f *~ mplayer fibmap_mplayer mencoder codec-cfg
rm -f *.o *.a .depend configure.log codecs.conf.h
make[2]: Entering directory `/home/dave/MPlayer-0.92/libmpdemux'
rm -f test Makefile.bak *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libmpdemux'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libmpcodecs'
rm -f Makefile.bak dec_audio.o ad.o ad_liba52.o ad_hwac3.o ad_mp3lib.o ad_alaw.o ad_dk3adpcm.o ad_pcm.o ad_dvdpcm.o ad_imaadpcm.o ad_msadpcm.o ad_msgsm.o ad_roqaudio.o ad_acm.o ad_dshow.o ad_dmo.o ad_qtaudio.o ad_ffmpeg.o ad_faad.o ad_libvorbis.o ad_libmad.o ad_realaud.o ad_libdv.o dec_video.o vd.o vd_null.o vd_cinepak.o vd_qtrpza.o vd_raw.o vd_msvidc.o vd_fli.o vd_qtrle.o vd_qtsmc.o vd_roqvideo.o vd_cyuv.o vd_msrle.o vd_huffyuv.o vd_mpegpes.o vd_svq1.o vd_lcl.o vd_mtga.o vd_sgi.o vd_libmpeg2.o vd_nuv.o vd_lzo.o vd_realvid.o vd_ffmpeg.o vd_dshow.o vd_dmo.o vd_vfw.o vd_vfwex.o vd_odivx.o vd_divx4.o vd_xanim.o vd_xvid.o vd_libdv.o vd_qtvideo.o vd_mpng.o vd_ijpg.o vf.o vf_vo.o vf_crop.o vf_expand.o vf_pp.o vf_scale.o vf_format.o vf_yuy2.o vf_flip.o vf_rgb2bgr.o vf_rotate.o vf_mirror.o vf_palette.o vf_lavc.o vf_dvbscale.o vf_cropdetect.o vf_test.o vf_noise.o vf_yvu9.o vf_rectangle.o vf_lavcdeint.o vf_eq.o vf_eq2.o vf_halfpack.o vf_dint.o vf_1bpp.o vf_bmovl.o vf_2xsai.o vf_unsharp.o vf_swapuv.o vf_il.o vf_boxblur.o vf_sab.o vf_smartblur.o vf_perspective.o vf_down3dright.o vf_field.o vf_denoise3d.o vf_hqdn3d.o vf_detc.o vf_telecine.o vf_tfields.o native/RTjpegN.o native/cinepak.o native/fli.o native/minilzo.o native/msvidc.o native/nuppelvideo.o native/qtrle.o native/qtrpza.o native/qtsmc.o native/roqav.o native/xa_gsm.o native/svq1.o img_format.o ve.o ve_divx4.o ve_lavc.o ve_vfw.o ve_rawrgb.o ve_libdv.o ve_xvid.o ve_qtvideo.o ve_nuv.o libmpcodecs.a libmpencoders.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libmpcodecs'
make[2]: Entering directory `/home/dave/MPlayer-0.92/mp3lib'
rm -f *~ *.o *.a Makefile.bak .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/mp3lib'
make[2]: Entering directory `/home/dave/MPlayer-0.92/liba52'
rm -f test *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/liba52'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libmpeg2'
rm -f Makefile.bak *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libmpeg2'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libavcodec'
rm -f *.o *.d *~ .depend avcodec *.so i386/*.o i386/*~ \
armv4l/*.o armv4l/*~ \
mlib/*.o mlib/*~ \
alpha/*.o alpha/*~ \
ppc/*.o ppc/*~ \
ps2/*.o ps2/*~ \
liba52/*.o liba52/*~ \
apiexample imgresample-test dct-test motion-test fft-test
rm -f Makefile.bak .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libavcodec'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libao2'
rm -f Makefile.bak *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libao2'
make[2]: Entering directory `/home/dave/MPlayer-0.92/drivers'
rm -f *.o *~
rm -f mga_vid_test
make[2]: Leaving directory `/home/dave/MPlayer-0.92/drivers'
make[2]: Entering directory `/home/dave/MPlayer-0.92/linux'
rm -f Makefile.bak *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/linux'
make[2]: Entering directory `/home/dave/MPlayer-0.92/postproc'
rm -f Makefile.bak *.o *.a *~ *.so .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/postproc'
make[2]: Entering directory `/home/dave/MPlayer-0.92/input'
rm -f Makefile.bak *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/input'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libvo'
rm -f Makefile.bak *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libvo'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libaf'
rm -f *.o *.a *~ .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libaf'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libdha'
rm -f Makefile.bak *.o *.so *.so.* test *~ .depend
rm -f pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h pci.db
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libdha'
make[2]: Entering directory `/home/dave/MPlayer-0.92/vidix'
rm -f test *.o *.a *~ .depend
make[3]: Entering directory `/home/dave/MPlayer-0.92/vidix/drivers'
rm -f Makefile.bak *.o *.so test *~ .depend
make[3]: Leaving directory `/home/dave/MPlayer-0.92/vidix/drivers'
make[2]: Leaving directory `/home/dave/MPlayer-0.92/vidix'
make[2]: Entering directory `/home/dave/MPlayer-0.92/libmpdvdkit2'
rm -f css.o device.o dvd_input.o dvd_reader.o dvd_udf.o error.o ifo_print.o ifo_read.o ioctl.o libdvdcss.o nav_print.o nav_read.o libmpdvdkit.a libmpdvdkit.so .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libmpdvdkit2'
make[2]: Entering directory `/home/dave/MPlayer-0.92/Gui'
rm -rf wm/ws.o wm/wsxdnd.o app.o interface.o cfg.o bitmap.o skin/skin.o skin/font.o skin/cut.o mplayer/widgets.o mplayer/play.o mplayer/mw.o mplayer/sw.o mplayer/menu.o mplayer/pb.o mplayer/common.o mplayer/gtk/menu.o mplayer/gtk/mb.o mplayer/gtk/about.o mplayer/gtk/pl.o mplayer/gtk/sb.o mplayer/gtk/fs.o mplayer/gtk/opts.o mplayer/gtk/url.o mplayer/gtk/eq.o mplayer/gtk/common.o *.o *~ *.bak main libgui.a .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/Gui'
make[2]: Entering directory `/home/dave/MPlayer-0.92/loader'
rm -f *.o libloader.a
make[2]: Leaving directory `/home/dave/MPlayer-0.92/loader'
make[2]: Entering directory `/home/dave/MPlayer-0.92/loader/dshow'
rm -f Makefile.bak *.o *.a *~ .depend test test.raw
make[2]: Leaving directory `/home/dave/MPlayer-0.92/loader/dshow'
make[2]: Entering directory `/home/dave/MPlayer-0.92/loader/dmo'
rm -f Makefile.bak *.o *.a *~ .depend test test.raw
make[2]: Leaving directory `/home/dave/MPlayer-0.92/loader/dmo'
make -C libavcodec distclean LIBPREF=lib LIBSUF=.a
make[2]: Entering directory `/home/dave/MPlayer-0.92/libavcodec'
rm -f *.o *.d *~ .depend libavcodec.a *.so i386/*.o i386/*~ \
armv4l/*.o armv4l/*~ \
mlib/*.o mlib/*~ \
alpha/*.o alpha/*~ \
ppc/*.o ppc/*~ \
ps2/*.o ps2/*~ \
liba52/*.o liba52/*~ \
apiexample imgresample-test dct-test motion-test fft-test
rm -f Makefile.bak .depend
make[2]: Leaving directory `/home/dave/MPlayer-0.92/libavcodec'
make[1]: Leaving directory `/home/dave/MPlayer-0.92'
make depend
make[1]: Entering directory `/home/dave/MPlayer-0.92'
./version.sh `gcc -dumpversion`
gcc -MM -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo ./configure: line 1: /opt/gnome/bin/gtk-config: No such file or directory -DCODECS2HTML mplayer.c mencoder.c mplayer.c mp_msg.c cpudetect.c codec-cfg.c cfgparser.c my_profile.c spudec.c playtree.c playtreeparser.c asxparser.c vobsub.c subreader.c sub_cc.c find_sub.c m_config.c m_option.c parser-cfg.c m_struct.c unrarlib.c mixer.c parser-mpcmd.c mencoder.c mp_msg-mencoder.c cpudetect.c codec-cfg.c cfgparser.c my_profile.c spudec.c playtree.c playtreeparser.c asxparser.c vobsub.c subreader.c sub_cc.c find_sub.c m_config.c m_option.c parser-cfg.c m_struct.c unrarlib.c libao2/afmt.c divx4_vbr.c libvo/aclib.c libvo/osd.c libvo/sub.c libvo/font_load.c libvo/font_load_ft.c xvid_vbr.c parser-mecmd.c 1>.depend
gcc: ./configure:: No such file or directory
gcc: line: No such file or directory
gcc: 1:: No such file or directory
gcc: /opt/gnome/bin/gtk-config:: No such file or directory
gcc: No: No such file or directory
gcc: such: No such file or directory
gcc: file: No such file or directory
gcc: or: No such file or directory
gcc: directory: No such file or directory
make[1]: *** [depend] Error 1
make[1]: Leaving directory `/home/dave/MPlayer-0.92'
make: *** [version.h] Error 2


teval 12-02-2003 05:42 PM

gcc -MM -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo ./configure: line 1: /opt/gnome/bin/gtk-config: No such file or directory -DCODECS2HTML mplayer.c mencoder.c mplayer.c mp_msg.c

Note the

/configure: line 1: /opt/gnome/bin/gtk-config: No such file or directory

The configure file is not failing, but still outputting errors.
Make sure gtk-config is actually in that place. I don't think it's there.

which gtk-config

Should give it to you. Gcc should definitely not be trying to compile the configure file :)
Report this to the devels too, their config file is bad.

KyngNothing 12-02-2003 05:52 PM

Quote:

Originally posted by teval
gcc -MM -O4 -march=athlon-xp -mcpu=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo ./configure: line 1: /opt/gnome/bin/gtk-config: No such file or directory -DCODECS2HTML mplayer.c mencoder.c mplayer.c mp_msg.c

Note the

/configure: line 1: /opt/gnome/bin/gtk-config: No such file or directory

The configure file is not failing, but still outputting errors.
Make sure gtk-config is actually in that place. I don't think it's there.

which gtk-config

Should give it to you. Gcc should definitely not be trying to compile the configure file :)
Report this to the devels too, their config file is bad.

I had used YaST2 to install gtk, so I don't have a gtk-config :confused:

argh...all for a freakin streaming video...

So this config file won't work for MPlayer?

teval 12-02-2003 06:31 PM

You should still have gtk-config
Nothing to do with from where you install it. It's required to get cflags and libs when compiling other programs.


All times are GMT -5. The time now is 09:40 AM.