jenswi-linaro / lcu14_optee_hello_world

22 stars 16 forks source link

TA compilation problems #19

Closed symu1818 closed 8 years ago

symu1818 commented 8 years ago

Hello,

When building TA I got the following error " cannot find -lteec":

~/devel/optee/optee_hello_world$ make make -C host CROSS_COMPILE=/home/devel/optee/optee_hello_world/../toolchains/aarch64/bin/aarch64-linux-gnu- make[1]: Entering directory /home/devel/optee/optee_hello_world/host' /home/devel/optee/optee_hello_world/../toolchains/aarch64/bin/aarch64-linux-gnu-gcc -lteec -L/home/devel/optee/optee_hello_world/../optee_client/out/export/lib -o hello_world hello_world.o /home/devel/optee/toolchains/aarch64/bin/../lib/gcc/aarch64-linux-gnu/5.3.1/../../../../aarch64-linux-gnu/bin/ld: skipping incompatible /home/devel/optee/optee_hello_world/../optee_client/out/export/lib/libteec.so when searching for -lteec /home/devel/optee/toolchains/aarch64/bin/../lib/gcc/aarch64-linux-gnu/5.3.1/../../../../aarch64-linux-gnu/bin/ld: cannot find -lteec collect2: error: ld returned 1 exit status make[1]: *** [hello_world] Error 1 make[1]: Leaving directory/home/devel/optee/optee_hello_world/host' make: *\ [all] Error 2

I am trying to build it for Hikey platform. I have build both optee_os (for Hikey) and optee_client. Inside optee_client, "libteec.so" is present in the following folders: ./optee_client/out/libteec/libteec.so and ./optee_client/out/export/lib/libteec.so.

Could you please explain how can I fix it? Thanks!