linaro-swg / optee_examples

OP-TEE Sample Applications
Other
163 stars 140 forks source link

Linking external SO files in host side in optee-example #68

Closed elliotmtx closed 2 years ago

elliotmtx commented 4 years ago

Hi,

Can anyone help me in linking external .so files to main.c(host part) file in optee examples(i.e CA or user space), I tried but could not succeed.

Suppose for example in hello_world example, inside main if I want to use some external APIs of my own, I have libX.so file, I created include file inside /hello_world/host/include and added header files there of libX.so Now I modified hello_world/CMakeLists.txt as below,

target_link_libraries (${PROJECT_NAME} PRIVATE teec PUBLIC X) I'm stuck here, i tried few things but nothing helps I get below error:

lib/gcc/arm-linux-gnueabihf/8.2.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lX

Kindly help!

github-actions[bot] commented 2 years ago

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.