Fixed Android build
This commit is contained in:
parent
562914e33b
commit
87cfcc8ee2
@ -318,8 +318,8 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( BUILD_WITH_ANDROID_NDK )
|
if( BUILD_WITH_ANDROID_NDK )
|
||||||
set( CMAKE_CXX_FLAGS "--sysroot='${ANDROID_NDK_SYSROOT}' ${CMAKE_CXX_FLAGS}" )
|
set( CMAKE_CXX_FLAGS "--sysroot=\"${ANDROID_NDK_SYSROOT}\" ${CMAKE_CXX_FLAGS}" )
|
||||||
set( CMAKE_C_FLAGS "--sysroot='${ANDROID_NDK_SYSROOT}' ${CMAKE_C_FLAGS}" )
|
set( CMAKE_C_FLAGS "--sysroot=\"${ANDROID_NDK_SYSROOT}\" ${CMAKE_C_FLAGS}" )
|
||||||
if (ANDROID_NDK_SYSROOT MATCHES "[ ]")
|
if (ANDROID_NDK_SYSROOT MATCHES "[ ]")
|
||||||
# workaround for ugly cmake bug - compiler identification replaces all spaces in compiler flags with ; symbol
|
# workaround for ugly cmake bug - compiler identification replaces all spaces in compiler flags with ; symbol
|
||||||
# as result identification fails if ANDROID_NDK_SYSROOT contain spaces
|
# as result identification fails if ANDROID_NDK_SYSROOT contain spaces
|
||||||
|
@ -502,7 +502,7 @@ namespace
|
|||||||
DataMatrixCode operator()(CvDataMatrixCode& cvdm)
|
DataMatrixCode operator()(CvDataMatrixCode& cvdm)
|
||||||
{
|
{
|
||||||
DataMatrixCode dm;
|
DataMatrixCode dm;
|
||||||
std::memcpy(dm.msg,cvdm.msg,sizeof(cvdm.msg));
|
memcpy(dm.msg,cvdm.msg,sizeof(cvdm.msg));
|
||||||
dm.original = cv::Mat(cvdm.original,true);
|
dm.original = cv::Mat(cvdm.original,true);
|
||||||
cvReleaseMat(&cvdm.original);
|
cvReleaseMat(&cvdm.original);
|
||||||
cv::Mat c(cvdm.corners,true);
|
cv::Mat c(cvdm.corners,true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user