Small Android build fixes
This commit is contained in:
parent
56cf08a873
commit
9d787afe72
@ -479,7 +479,7 @@ if(UNIX)
|
|||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" AND NOT ANDROID)
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" AND NOT ANDROID)
|
||||||
set(OPENCV_LINKER_LIBS m pthread)
|
set(OPENCV_LINKER_LIBS m pthread)
|
||||||
elseif(ANDROID)
|
elseif(ANDROID)
|
||||||
set(OPENCV_LINKER_LIBS dl m)
|
set(OPENCV_LINKER_LIBS dl m log)
|
||||||
else()
|
else()
|
||||||
set(OPENCV_LINKER_LIBS dl m pthread rt)
|
set(OPENCV_LINKER_LIBS dl m pthread rt)
|
||||||
endif()
|
endif()
|
||||||
@ -510,10 +510,10 @@ if (ANDROID)
|
|||||||
FIND_PACKAGE(NativeCamera QUIET)
|
FIND_PACKAGE(NativeCamera QUIET)
|
||||||
if(NativeCamera_FOUND)
|
if(NativeCamera_FOUND)
|
||||||
set(HAVE_ANDROID_NATIVE_CAMERA TRUE)
|
set(HAVE_ANDROID_NATIVE_CAMERA TRUE)
|
||||||
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${NativeCamera_LIBS} log)
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} ${NativeCamera_LIBS})
|
||||||
else()
|
else()
|
||||||
set(HAVE_ANDROID_NATIVE_CAMERA FALSE)
|
set(HAVE_ANDROID_NATIVE_CAMERA FALSE)
|
||||||
message("-- Could NOT find NativeCamera for Android")
|
message(STATUS "Could NOT find NativeCamera for Android")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ SET BUILD_DIR=build
|
|||||||
::SET BUILD_DIR=build_armeabi
|
::SET BUILD_DIR=build_armeabi
|
||||||
|
|
||||||
:::: uncomment following lines to compile for ARM-V7 with NEON support
|
:::: uncomment following lines to compile for ARM-V7 with NEON support
|
||||||
::SET ARM_TARGET="armeabi-v7a with NEON"
|
::SET ARM_TARGET=armeabi-v7a with NEON
|
||||||
::SET BUILD_DIR=build_neon
|
::SET BUILD_DIR=build_neon
|
||||||
|
|
||||||
:::: other options
|
:::: other options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user