FYI, I just set the target module in Developer studio to be WP8548 and I saw the same problem as yours.
However if I add the following in “requires” section, the compilation is OK:
Probably you need to download the WP85 yocto source and do the same.
(If the above is too complicated, you can also download the toolchain of WP76 and use the libxml2 library there, of course this is not a correct way, but worth a try )
Probably you need to download the WP85 yocto source and do the same.
(If the above is too complicated, you can also download the toolchain of WP76 and use the libxml2 library there, of course this is not a correct way, but worth a try )
Is there a way doing this wit the Leaf Workspace Manager?
I would prefer to stay with VScode cause i am somewhat familiar with it.
But i can download and try it with Deveeloper Studio.
I just don’t understand why the linker can’t libpthread.so.0 and libpthread_nonshared.a even when i specify their path using the -L flag
Add: The support for Developer studio has ended which is why i am using vscode
To use libraries/apps in your legato application you will need to add the necessary header files and .so files for libraries to your vscode project.
the vscode system defination files defines default paths for header files it uses Interfaces and searches inside the interfaces folder for .so files you need to create a lib folder inside your legato workspace and add the .so files.
Also make sure while copying the .so files that the symlinks are not broken. Once the .so files are copied into the lib directory you can enter the ldflags section as below in your .sdef file which will be used across the project workspace.
using the {MY_SYSTEM_DIR}/ lib is more generic and will help to make the code easily portable across different workspaces without worrying about hardcoded paths.