Re: Wrapping GTK+ (partial answer)
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Aug 14, 1999
- 413 views
David writes, > Here's the bit of code I'm currently struggling with. The value > displayed for gtk is 0, so it doesn't seem to be connecting. As a > result, the code fails at the first c_proc. > > I've tried alternate values, such as: > > "/usr/lib/libgtk.so" > > and paths to all the other GTK libraries I could find. > "/usr/lib/libgtk.so" is (as you know) actually a link to the library. > I've got permissions to the link, but I didn't bother checking if I > had permissions to the library. I've coded a number of small GTK > programs in C under the same user login, so I imagine that it's not a > permissions problem. > > Thanks! Right, it's definitely not a permissions problem, because the dynamic loader has all the permissions it needs. The loader is the middleman for opening any shared libraries. I tried: ? open_dll("libgtk.so") and got 0 same as you and Irv... so I did like David said he did and tried to open /usr/lib/libgtk* all in the same program... and much to my surprise, some nice fat values were printed towards the end of the list. I narrowed it down to: ? open_dll("libgtkxmhtml.so") ? open_dll("libgtk.so") Why these two depend on each other I don't understand. Anyway, I hope this helps. Irv: I seem to remember that SVGAlib required you to change something in the makefile if you have a glibc2-based system... Here's the output for mine: $ ldd /lib/libvga.so libm.so.6 => /lib/libm.so.6 (0x40051000) libc.so.6 => /lib/libc.so.6 (0x4006d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000) Later, _______ ______ _______ ______ [ _ \[ _ ][ _ _ ][ _ ] [/| [_] |[/| [_\][/ | | \][/| [_\] | ___/ | _] | | | _] [\| [/] [\| [_/] [\| |/] [\| [_/] [_____] [______] [_____] [______] xseal at harborside.com ICQ:13466657 http://www.harborside.com/home/x/xseal/euphoria/