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

new topic     » topic index » view thread      » older message » newer message

On Tue, 17 Apr 2001, Irv Mullins wrote:
> ----- 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

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

> 
> Try calling it as open_dll("libgtk.so")

Well, I'm back, and tried a program to open_dll *all* the library files. It
looks like open_dll can only get some of them. Below is a list showing 
which ones failed. Note that mostly it is the gtk and gimp so's that won't 
work.
Regards
Irv

/usr/lib/libBrokenLocale.so
/usr/lib/libGL.so
/usr/lib/libGLU.so
/usr/lib/libMesaGL.so
/usr/lib/libMesaGLU.so
/usr/lib/libaa.so
/usr/lib/libasound-0.5.5.so
/usr/lib/libasound.so
/usr/lib/libaudiofile.so
/usr/lib/libbfd-2.9.5.0.24.so <===== error
/usr/lib/libbfd.so <===== error
/usr/lib/libc.so <===== error
/usr/lib/libcapi20.so
/usr/lib/libcdda_interface.so
/usr/lib/libcdda_paranoia.so
/usr/lib/libcrack.so
/usr/lib/libcrypt.so
/usr/lib/libdb.so
/usr/lib/libdb1.so
/usr/lib/libdbm.so
/usr/lib/libdl.so
/usr/lib/libedsio.so
/usr/lib/libesd.so
/usr/lib/libesddsp.so
/usr/lib/libf2c.so
/usr/lib/libform.so
/usr/lib/libg++-3-libc6.1-2-2.8.1.3.so
/usr/lib/libgck.so
/usr/lib/libgdbm.so
/usr/lib/libgdk.so
/usr/lib/libgdkmm.so <===== error
/usr/lib/libgimp.so <===== error
/usr/lib/libgimpui.so <===== error
/usr/lib/libglut.so
/usr/lib/libgnomemm.so <===== error
/usr/lib/libgpm.so
/usr/lib/libgraphapp.so
/usr/lib/libgrove.so
/usr/lib/libgtk.so
/usr/lib/libgtkgl.so <===== error
/usr/lib/libgtkmm.so <===== error
/usr/lib/libguiledlopenhelper.so <===== error
/usr/lib/libguilegtk-1.2.so <===== error
/usr/lib/libhistory.so
/usr/lib/libicq.so
/usr/lib/libimlib-bmp.so
/usr/lib/libimlib-gif.so
/usr/lib/libimlib-jpeg.so
/usr/lib/libimlib-png.so <===== error
/usr/lib/libimlib-ppm.so
/usr/lib/libimlib-ps.so
/usr/lib/libimlib-tiff.so
/usr/lib/libimlib-xpm.so <===== error
/usr/lib/libjpeg.so

include dll.e
include file.e

-- Here's the program if you want to test your own:
atom x,fn,fo
object fname

fn = open("libs","r")
fo = open("testout","w")
while 1 do
 fname = gets(fn)
 if atom(fname) then exit
 end if
 fname = fname[1..length(fname)-1]
 puts(fo,fname)
 x = open_dll(fname)
 if x = 0 then puts(fo," <===== error") 
 end if
 puts(fo,'\n')
 flush(fo)
end while
close(fo)

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu