-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about build error #676
Comments
OpenSSL is in |
Thanks! |
@jforissier optee_test/host/xtest/CMakeLists.txt Lines 13 to 17 in 232dfd2
And I think that it finally leads to link failure (see error message below). Do I need to update libssl-dev for arm64?(I'm using ubuntu20.04) or is there another way to build? |
In addition to |
@jforissier Thanks, I succeeded to build optee_test with Makefile. I ported optee to our own platform, so I'm not using build(of OPTEE repo) |
I'm using 3.21.0.
Building xtest, I got the error message below.
optee_test/host/xtest/regression_1000.c:10:10: fatal error: openssl/bn.h: No such file or directory
Should it be able to find the header file from optee_test/host/openssl/include/openssl? What should I need to check more?
I have CMakeLists.txt and the directories like below:
{root}
└ optee_os
└ optee_client
└ optee_test
└ CMakeLists.txt
CMakeLists.txt contains two lines below:
add_subdirectory (optee_client)
add_subdirectory (optee_test)
And I ran the commands below from {root} :
cmake -D OPTEE_TEST_SDK=$PWD/../optee_os/out/plat-xxx/export-ta_arm64 -D CMAKE_INSTALL_PREFIX= -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=y -D CMAKE_TOOLCHAIN_FILE=toolchain.arm.cmake
make
toolchain.arm.cmake has :
SET(CMAKE_SYSTEM_NAME "Linux")
SET(CMAKE_SYSTEM_PROCESSOR "arm64")
get_filename_component(COMPILER_PATH "../../../xxx/aarch64-linux-gnu/bin/aarch64-linux-gnu-" ABSOLUTE)
SET(CMAKE_C_COMPILER ${COMPILER_PATH}gcc)
SET(CMAKE_CXX_COMPILER ${COMPILER_PATH}g++)
SET(CMAKE_LINKER ${COMPILER_PATH}ld)
SET(CMAKE_NM ${COMPILER_PATH}nm)
SET(CMAKE_OBJCOPY ${COMPILER_PATH}objcopy)
SET(CMAKE_OBJDUMP ${COMPILER_PATH}objdump)
SET(CMAKE_RANLIB ${COMPILER_PATH}ranlib)
The text was updated successfully, but these errors were encountered: