Sunday, 13 September 2015

Re: [gccsdk] dlopen query

> In RISC OS, your libraries should be of the form:
>
> MyApp:lib.foo/so
>
> ie, a library file called "foo/so" in directory "lib" on path "MyApp".
> You then pass it to dlopen as:
>
> /MyApp:lib/foo.so
>
> ie, in Unix style. The dynamic linker will then convert to the RISC OS
> format when performing file operations.
> I assume you're setting LUA_CPATH to "/MyApp:lib/" and then expecting
> the dlfcn library to use that to build the correct filename.

Yes.

> If your libraries are named correctly as above, then that may work, but you
> may have to tweak the dlfcn library to get the filenames correct.

Some progress. I no longer get the 'file not found' error, but instead I get
a message
Text relocation of data symbol '' found:
lua600:lib.riscos/so (offset 0x145C)

Not sure how to "tweak the dlfcn library". Would I not need access to its sources?
The message is presumably from ld?

--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment