From 5b5ece1d401d298898dae29e02db2a0ae553ff89 Mon Sep 17 00:00:00 2001 From: tunmx Date: Tue, 7 Mar 2023 14:11:06 +0800 Subject: [PATCH] Linux link Bug --- CMakeLists.txt | 2 +- Prj-Linux/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19b6e39..ea35bc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,7 +41,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/cpp/platform) # must use mnn add_definitions("-DINFERENCE_HELPER_ENABLE_MNN") -set(LINK_THIRD_LIBS pthread MNN) +set(LINK_THIRD_LIBS pthread MNN m) if (ANDROID) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") diff --git a/Prj-Linux/CMakeLists.txt b/Prj-Linux/CMakeLists.txt index c849860..a6a0d33 100644 --- a/Prj-Linux/CMakeLists.txt +++ b/Prj-Linux/CMakeLists.txt @@ -19,4 +19,4 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/hyperlpr3/include) link_directories(${CMAKE_CURRENT_SOURCE_DIR}/hyperlpr3/lib) add_executable(PlateRecDemo ${CMAKE_CURRENT_SOURCE_DIR}/plate_rec_demo.cpp) -target_link_libraries(PlateRecDemo hyperlpr3 ${OpenCV_LIBS} m) \ No newline at end of file +target_link_libraries(PlateRecDemo hyperlpr3 ${OpenCV_LIBS}) \ No newline at end of file