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!
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 2I 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!