Some joker deleted the thread or made it so I can’t access it anymore. Here’s what I found out:
OK, I created a sample app, then copied your .c, .cdef and .adef files over and built it. It errored out (all warnings are treated as errors), with a couple of functions that were defined but not used. I commented those out and their corresponding used static variables, and rebuilt. It built fine. But when I went to send it to the device and try to run, I get this error:
Could not stat file at ‘/tmp/libcurl.so.5’. No such file or directory
May 29 13:57:24 swi-mdm9x28 user.err Legato: =ERR= | supervisor/supervisor T=main | app.c CreateFileLink() 1588 | Failed to create link at ‘/usr/lib/libcurl.so.5’ in app ‘HttpGet’.
My understanding is not what’s happening here. It appears in THIS case, it’s trying to create a link to files from the local drive on the device. In my case, I’m saying here’s a bundle that you need to copy over TO the device, because they don’t exist there. I also have the requires directive as well, but that’s in my .cdef.
In my own .adef, I put the .so’s that I needed in a bundle and had it put them in the local directory (./). They are there on the device. So I figured, that I could just have it create a link to it from there. I’ve tried, ./, and I’ve tried a full path, i.e. /legato/…/read-only/libmylib.so.5, and it just comes back with the same message, cannot stat the file libmylib.so.5 no matter what path I put in front, the same error that I get with the build of HttpGet. I’ve included it here.HttpGet.rar (118.3 KB)
Thanks for your help on this.