tzutalin / build-opencv-for-android

An interactive script to download and build OpenCV and OpenCV contrib for Android
74 stars 40 forks source link

build error #1

Open jqyp324 opened 7 years ago

jqyp324 commented 7 years ago

is not create makefile

make: 没有指明目标并且找不到 makefile。 停止。 make: No rule to make target 'install/strip'。 停止。 end building armeabi-v7a with NEON version

tzutalin commented 7 years ago

@jqyp324 What are your steps

nouhahammami commented 7 years ago

i got the same error @:~/workspace//build-opencv-for-android$ sh build-android-opencv.sh Cloning android-cmake Cloning into 'android-cmake'... remote: Counting objects: 739, done. remote: Total 739 (delta 0), reused 0 (delta 0), pack-reused 739 Receiving objects: 100% (739/739), 232.77 KiB | 150.00 KiB/s, done. Resolving deltas: 100% (351/351), done. Checking connectivity... done. CMake Error: The source directory "//workspace//build-opencv-for-android/opencv" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. make: No targets specified and no makefile found. Stop. make: No rule to make target `install/strip'. Stop.

curtisxu2015 commented 3 years ago

Hi, I got the same issue, have u fix the error?
I followed the README in "build-opencv-for-android" , the following console logs show me that config run success ,but the "make install/scrip" failed.......
Someone can help? Thanks very much.

-- General configuration for OpenCV 3.1.0 ===================================== -- Version control: 3.1.0 -- -- Platform: -- Host: Linux 4.15.0-132-generic x86_64 -- Target: Android 1 armv5te -- CMake: 3.5.1 -- CMake generator: Unix Makefiles -- CMake build tool: /usr/bin/make -- Configuration: Release -- -- C/C++: -- Built as dynamic libs?: NO -- C++ Compiler: /home/smart/Desktop/work/OCR/build-opencv-for-android/android-ndk-downloader/android-ndk-r12/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ (ver 4.9) -- C++ flags (Release): -fexceptions -frtti -Wno-psabi --sysroot=/home/smart/Desktop/work/OCR/build-opencv-for-android/android-ndk-downloader/android-ndk-r12/platforms/android-19/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG -- C++ flags (Debug): -fexceptions -frtti -Wno-psabi --sysroot=/home/smart/Desktop/work/OCR/build-opencv-for-android/android-ndk-downloader/android-ndk-r12/platforms/android-19/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -fvisibility-inlines-hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG -- C Compiler: /home/smart/Desktop/work/OCR/build-opencv-for-android/android-ndk-downloader/android-ndk-r12/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -- C flags (Release): -fexceptions -Wno-psabi --sysroot=/home/smart/Desktop/work/OCR/build-opencv-for-android/android-ndk-downloader/android-ndk-r12/platforms/android-19/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG -DNDEBUG -- C flags (Debug): -fexceptions -Wno-psabi --sysroot=/home/smart/Desktop/work/OCR/build-opencv-for-android/android-ndk-downloader/android-ndk-r12/platforms/android-19/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fdata-sections -ffunction-sections -Wa,--noexecstack -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -fomit-frame-pointer -fvisibility=hidden -marm -fno-omit-frame-pointer -fno-strict-aliasing -O0 -g -DDEBUG -D_DEBUG -O0 -DDEBUG -D_DEBUG -- Linker flags (Release): -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -- Linker flags (Debug): -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -- Precompiled headers: YES -- Extra dependencies: z dl m log -- 3rdparty dependencies: libjpeg libwebp libpng libtiff libjasper IlmImf libprotobuf -- -- OpenCV modules: -- To be built: core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets java rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow stitching -- Disabled: world contrib_world -- Disabled by dependency: - -- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev python2 ts viz cvv hdf matlab sfm -- -- Android: -- Android ABI: armeabi -- STL type: gnustl_static -- Native API level: android-19 -- SDK target: android_sdk_target_status-NOTFOUND -- Android NDK: /home/smart/Desktop/work/OCR/build-opencv-for-android/android-ndk-downloader/android-ndk-r12 (toolchain: arm-linux-androideabi-4.9) -- android tool: NO -- Google Play manager: NO -- Android examples: NO -- -- GUI: -- GTK+: NO -- GThread : NO -- GtkGlExt: NO -- OpenGL support: NO -- VTK support: NO -- -- Media I/O: -- ZLib: z (ver 1.2.3) -- JPEG: build (ver 90) -- WEBP: build (ver 0.3.1) -- PNG: build (ver 1.6.19) -- TIFF: build (ver 42 - 4.0.2) -- JPEG 2000: build (ver 1.900.1) -- OpenEXR: build (ver 1.7.1) -- GDAL: NO -- -- Video I/O: -- -- Parallel framework: pthreads -- -- Other third-party libraries: -- Use IPP: NO -- Use Eigen: NO -- Use Cuda: NO -- Use OpenCL: NO -- Use custom HAL: NO -- -- Python 2: -- Interpreter: /usr/bin/python2.7 (ver 2.7.12) -- -- Python 3: -- Interpreter: /usr/bin/python3 (ver 3.5.2) -- -- Python (for build): /usr/bin/python2.7 -- -- Java: -- ant: /usr/bin/ant (ver 1.9.6) -- Java wrappers: YES -- Java tests: NO -- -- Matlab: NO -- -- Tests and samples: -- Tests: NO -- Performance tests: NO -- C/C++ Examples: NO -- -- Install path: /home/smart/Desktop/work/OCR/build-opencv-for-android/android_opencv/opencv -- -- cvconfig.h is in: /home/smart/Desktop/work/OCR/build-opencv-for-android/opencv/platforms/build_android_armeabi


-- -- Configuring incomplete, errors occurred! See also "/home/smart/Desktop/work/OCR/build-opencv-for-android/opencv/platforms/build_android_armeabi/CMakeFiles/CMakeOutput.log". See also "/home/smart/Desktop/work/OCR/build-opencv-for-android/opencv/platforms/build_android_armeabi/CMakeFiles/CMakeError.log". make: No targets specified and no makefile found. Stop. make: No rule to make target 'install/strip'. Stop. end building armeabi version