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#
_world#
I know this is a year old code, did anything change since then?
Thanks for your help
Crispy
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#
_world#
I know this is a year old code, did anything change since then? Thanks for your help Crispy