File fix-cmake-find-deps.patch of Package artoolkitx
diff -Nur --no-dereference artoolkitx-1.0.6.1/Source/ARX/ARVideo/CMakeLists.txt new/Source/ARX/ARVideo/CMakeLists.txt
--- artoolkitx-1.0.6.1/Source/ARX/ARVideo/CMakeLists.txt 2020-04-03 06:58:55.000000000 +0200
+++ new/Source/ARX/ARVideo/CMakeLists.txt 2021-03-22 06:55:16.176193800 +0100
@@ -40,24 +40,26 @@
if (USE_CPARAM_SEARCH)
find_package(CURL REQUIRED)
+ find_package(ZLIB REQUIRED)
if (NOT ARX_TARGET_PLATFORM_LINUX)
set(LIBS ${LIBS}
${CURL_LIBRARIES}
- z
+ ${ZLIB_LIBRARIES}
)
else()
+ find_package(OpenSSL REQUIRED)
set(LIBS ${LIBS}
${CURL_LIBRARIES}
- z
- crypto
- ssl
+ ${ZLIB_LIBRARIES}
+ ${OPENSSL_LIBRARIES}
)
endif()
message(${CURL_LIBRARIES})
# On all platforms except Android, we link to sqlite's library. On Android, we compile include sqlite as source.
if (NOT ARX_TARGET_PLATFORM_ANDROID)
+ find_package(SQLite3 REQUIRED)
set(LIBS ${LIBS}
- sqlite3
+ ${SQLite3_LIBRARIES}
)
endif()
if (ARX_TARGET_PLATFORM_IOS OR ARX_TARGET_PLATFORM_MACOS)
@@ -99,6 +101,7 @@
if(ARX_TARGET_PLATFORM_LINUX)
add_subdirectory("Video4Linux2")
set(DEFINES ${DEFINES} "ARVIDEO_INPUT_DEFAULT_V4L2")
+ set(LIBS ${LIBS} pthread)
add_subdirectory("libdc1394")
add_subdirectory("GStreamer")
endif()