jenswi-linaro / lcu14_optee_hello_world

22 stars 16 forks source link

Incompatible libteec.so #8

Closed Pavel-Konarik closed 9 years ago

Pavel-Konarik commented 9 years ago

Hi everyone, I was trying to run the hello_world code, but I fail to "make" due to incompatible libteec.so. (at least it seems to be the case). I have the latest OP-TEE projects (obtained by the android repo sync). In Makefile in /host/ I have noticed that $(TEEC_EXPORT) returned nothing, (i got the same error as bellow, but without "skipping incomatible" line) so I replaced this variable with path to optee_client/out/export. Now I get


root@debian:~/devel/optee/lcu14_optee_hello_world# make make[1]: Entering directory '/root/devel/optee/lcu14_optee_hello_world' make -C host CROSS_COMPILE= make[2]: Entering directory '/root/devel/optee/lcu14_optee_hello_world/host' gcc -lteec -L/root/devel/optee/optee_client/out/export/lib -o hello_world hello_world.o /usr/bin/ld: skipping incompatible /root/devel/optee/optee_client/out/export/lib/libteec.so when searching for -lteec /usr/bin/ld: cannot find -lteec collect2: error: ld returned 1 exit status Makefile:25: recipe for target 'hello_world' failed make[2]: * [hello_world] Error 1 make[2]: Leaving directory '/root/devel/optee/lcu14_optee_hello_world/host' Makefile:6: recipe for target 'all' failed make[1]: * [all] Error 2 make[1]: Leaving directory '/root/devel/optee/lcu14_optee_hello_world' root@debian:~/devel/optee/lcu14_optee_hello_world#

screenshot from 2015-08-04 11 36 21 _world#


I know this is a year old code, did anything change since then? Thanks for your help Crispy