[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: fatal: libgtk.so.1: open failed: No such file or directory
- From: J Douglas Winters <winters cs utah edu>
- To: gtk-app-devel-list redhat com
- Subject: Re: fatal: libgtk.so.1: open failed: No such file or directory
- Date: Fri, 6 Nov 1998 13:47:09 -0700 (MST)
Hi, I'd try two things. First, try putting the `gtk-config --libs` at the
end of the compile line, sometimes (often) compilers are picky about
library flags being at the end. I don't recall offhand whether any gcc's
are like this, but I think I've had similar problems before. If that
doesn't work, send along the output from "ldd gMoo".
Hope this helps.
--Doug
===========================================
J Douglas Winters | winters@cs.utah.edu
===========================================
On Fri, 6 Nov 1998, Gert Scholten wrote:
> Hello,
>
> I must be missing an essential thing here.
> I compiled my program the correct way (the same as when I'm home) at the
> University. Here however, I get an error running it.
>
> I compile like this:
> for evry .c file:
>
> $ gcc -c -g `gtk-config --cflags` src/world.c -o world.o
>
> This give no errors.
> then to create the exec:
>
> $ gcc -g -o gMOO `gtk-config --libs` argparser.o functions.o interface.o
> worlds.o config.o gMOO.o world.o `gtk-config --cflags`
>
> Still, no errors.
> But when I run ./gMOO:
>
> $ ./gMOO
> ld.so.1: ./gMOO: fatal: libgtk.so.1: open failed: No such file or
> directory
> Killed
>
> I've checked the `gtk-config --libs` :
> $ gtk-config --libs
> -L/opt/gtk+-1.0.6/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk
> -lglib -lXext -lX11 -lsocket -lnsl -lm
>
> And, this file:
> $ ls -l /opt/gtk+-1.0.6/lib/libgtk.so.1
> lrwxrwxrwx 1 gert staff 15 Oct 5 17:51 libgtk.so.1 ->
> libgtk.so.1.0.6
>
> So, it DOES exist..
>
> I don;t know it anymore,
> What am I missing???
>
> Gert
>
>
> --
> To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
> Mailing list concerns should be mailed to <listmaster@redhat.com>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]