From 2f3f677ffe7ad0c0b7389e07e91bbb6f12601e2e Mon Sep 17 00:00:00 2001 From: Ethan Rublee Date: Wed, 22 Sep 2010 03:36:45 +0000 Subject: [PATCH] woops, broke cmake for a bit... --- android/README.android.txt | 3 +++ modules/highgui/CMakeLists.txt | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/android/README.android.txt b/android/README.android.txt index 0e96e96..c4d54ab 100644 --- a/android/README.android.txt +++ b/android/README.android.txt @@ -32,4 +32,7 @@ LOCAL_LDLIBS += $(OPENCV_LIBS) LOCAL_C_INCLUDES += $(OPENCV_INCLUDES) +for now, you also need to cd to android-jni and run make +this will create the android shared library with some useful functionality +that may be reused in android projects. diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index 8837782..38c46a1 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -3,7 +3,7 @@ # Some parts taken from version of Hartmut Seichter, HIT Lab NZ. # Jose Luis Blanco, 2008 # ---------------------------------------------------------------------------- -if(!ANDROID) +if(NOT ANDROID) project(opencv_highgui) if(WITH_JPEG) @@ -334,7 +334,9 @@ install(FILES ${highgui_ext_hdrs} DESTINATION include/opencv2/highgui COMPONENT main) -else(!ANDROID) +endif() + +if(ANDROID) set(high_gui_android_srcs src/bitstrm.cpp src/cap.cpp src/grfmt_base.cpp @@ -350,4 +352,4 @@ set(high_gui_android_srcs src/bitstrm.cpp src/grfmt_pxm.cpp src/window.cpp ) define_android_manual(highgui "${high_gui_android_srcs}" "$(LOCAL_PATH)/src $(OPENCV_INCLUDES)") -endif(!ANDROID) +endif() -- 2.7.4