1. [LNX] (Hopefully) Simple Problem accessing .so file

Howdy y'all!

Turns out I got a day off from work thanks to my dear friend Mother Nature.
So I'm here to pester y'all some ...

I'm currently getting my feet wet in programming in Euphoria within Linux.
Here's the trouble at the moment:  I am attempting to link to a gtk .so
file.  The path/filename on my system is ...

/usr/lib/libgtk-1.2.so.0.5.3

First of all, I am assuming that this is, indeed, an .so file, even though
there are all the other "extensions" behind the "so" part.  To get access to
this file, I've used the line

soGTK = open_dll("/usr/lib/libgtk-1.2.so.0.5.3")

The include file in which the above call is made is ...

/home/Travis/eugtk/eugtk.e

Now then, when I make this call, open_dll() returns a 0, which I understand
to mean that it cannot be opened.  I've doublechecked that this file *is*
where it is supposed to be.  The one thing that comes immediately to mind is
that, because the .so file is owned by root, and my Euphoria app is owned by
Travis, does not have permission to read to the file.  That would be rather
silly, but it is the only thing I can think of atm.

I'd also like to comment that while all this "users" and "groups" and so
forth are probably wonderful for networks, when applied to a single
computer, I really think it's for the birds.

BTW ... yes, I know Mr. Cuny has written a wrapper for GTK.  I'd like to do
it myself, though, for experience's sake.

Any help you folks could offer will be greatly appreciated.

Happy Hunting,

Travis Beaty
Claude, Texas.

new topic     » topic index » view message » categorize

2. Re: [LNX] (Hopefully) Simple Problem accessing .so file

----- Original Message -----
From: Travis Beaty <travisbeaty at arn.net>

> I'm currently getting my feet wet in programming in Euphoria within Linux.
> Here's the trouble at the moment:  I am attempting to link to a gtk .so
> file.  The path/filename on my system is ...
>
> /usr/lib/libgtk-1.2.so.0.5.3
>
> First of all, I am assuming that this is, indeed, an .so file, even though
> there are all the other "extensions" behind the "so" part.  To get access
to
> this file, I've used the line
>
> soGTK = open_dll("/usr/lib/libgtk-1.2.so.0.5.3")
>

Howdy:

Try calling it as open_dll("libgtk.so")
Linux has already set up links so there's a libgtk.so link which points to
the
latest version (1.2.so...blah), then when a new version comes out, only the
link will have to be updated - not all your programs.

If that doesn't work for you, let me know, I'll be back to the Linux
computer
later today.

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu