Tengine icon indicating copy to clipboard operation
Tengine copied to clipboard

failed to cmake in rk3399

Open berylyellow opened this issue 3 years ago • 2 comments

输入下面指令cmake的时候: cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake
-DTENGINE_ENABLE_ACL=ON .. 报错: -- Using CMake tool chain file /home/firefly/project/Tengine/toolchains/aarch64-linux-gnu.toolchain.cmake You have called ADD_LIBRARY for library tengine-lite-static without any source files. This typically indicates a problem with your CMakeLists.txt file You have called ADD_LIBRARY for library tengine-lite without any source files. This typically indicates a problem with your CMakeLists.txt file CMake Error at source/CMakeLists.txt:264 (TARGET_LINK_DIRECTORIES): Unknown CMake command "TARGET_LINK_DIRECTORIES".

定位发现,source/CMakeLists.txt中有个TEngine_NEXT_LIB_SRCS 没有定义: ADD_LIBRARY (${TENGINE_LITE_NAME}-static STATIC ${TEngine_NEXT_LIB_SRCS}) ADD_LIBRARY (${TENGINE_LITE_NAME} SHARED ${TEngine_NEXT_LIB_SRCS})

请问TEngine_NEXT_LIB_SRCS是指代哪些源文件呢?

berylyellow avatar Jan 26 '22 08:01 berylyellow

请问你解决了吗,我也是这个问题

liujiaxing7 avatar Apr 19 '22 09:04 liujiaxing7

cmake的版本号问题

liujiaxing7 avatar Apr 20 '22 02:04 liujiaxing7