Re: open_dll ?

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

Irv wrote:
> Having problems getting Pete's svga package to work,
> so I tried the following:
>
> include dll.e
> atom fn,fm
> fn = open_dll("./libgraphapp.so")
> fm = open_dll("./libvga.so")
> ? fn ? fm
>
> I get:
> 134782088
> 0

Hmm.. I get a nonzero value any way I try it.

ln -s /lib/libvga.so libvga.so
with "fm = open_dll("./libvga.so")"

fm = open_dll("libvga.so")

fm = open_dll("/lib/libvga.so")

All of these work fine for me.  I would recommend leaving libvga.so in
/lib or /usr/lib and using "libvga.so" without a path, and let ld.so do
the work in finding it.


> Both files have the same owner, permissions, etc.
> The only difference between the files that I can see is this:
> when you do a  "nm libvga.so",  it returns "no symbols", while
> "nm libgraphapp.so" returns a long list of functions.
> Any ideas?

Typing "nm libvga.so" on my machine gave "no symbols" as you say, so I
tried "nm -D libvga.so" (-D for dynamic) and it spewed forth a great many
symbols so it seems to be ok.

> Irv

You may want to check and make sure that SVGAlib is installed properly, or
download the latest version from www.svgalib.org and install it.  Another
thing to try is rebuilding the shared library cache "/etc/ld.so.cache"
using "ldconfig".

And if you do get it to link to the library successfully, don't forget to
run it as root so it will have proper permissions to setup the graphics.

Later,
 _______  ______  _______  ______
[    _  \[    _ ][ _   _ ][    _ ]
[/| [_] |[/| [_\][/ | | \][/| [_\]
  |  ___/  |  _]    | |     |  _]
[\| [/]  [\| [_/] [\| |/] [\| [_/]
[_____]  [______] [_____] [______]
xseal at harborside.com  ICQ:13466657
http://www.harborside.com/home/x/xseal/euphoria/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu