We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Is there a working code example using shared objects? [answered]

asked 2013-12-24 17:38:19 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2013-12-24 18:26:12 +0200

matt_197_ gravatar image

I've had some issues getting my application to run on the device when using a third party library. The library links and is installed in the /usr/share/{name}/lib folder via the RPM with the rpath set correctly. However when I execute the app the main method doesn't run and I get "Remote application finished with exit code 0".

No errors appear in the logs, and if I remove the shared object from the LIBS setting the application runs.

Thanks

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by LaruX
close date 2013-12-29 22:34:51.377103

1 Answer

Sort by » oldest newest most voted
1

answered 2013-12-26 18:22:45 +0200

AL13N gravatar image

I've seen this kind of info/requests being done on the devel mailing list, you could ask there...

Alternatively, i've found this post that may help you.

edit flag offensive delete publish link more

Comments

Thanks for the info, I'll have a look on the mailing list. I now think it's something to do with the third party library as I created a simple "hello world" C app and compiled it on the device. As soon as I link it to the library it doesn't run...and no errors.

matt_197_ ( 2013-12-27 13:06:04 +0200 )edit

there is a hello world app (which can be used as a template, iinm)

AL13N ( 2013-12-27 14:13:26 +0200 )edit

@matt_197_ also, if you like this answer, you can vote it up, and if it solves your question (which admittedly it doesn't really), you can accept the answer

AL13N ( 2013-12-27 14:14:32 +0200 )edit
1

@AL13N Thanks, I've voted it up, although it doesn't solve my particular issue, the information will be useful to others.

matt_197_ ( 2013-12-27 16:27:20 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2013-12-24 17:38:19 +0200

Seen: 267 times

Last updated: Dec 26 '13