CentOS6上的OpenCV存在Java安装问题

时间:2014-09-18 12:42:43

标签: java opencv centos6

我正在尝试在CentOS6上安装opencv2.4.9,我需要在Java中使用它。在找到所有依赖包的整个麻烦之后,我终于设法得到了cmake的积极结果,说:"配置完成,生成完成"。但是,当我尝试继续使用make命令时,我收到以下消息:" make: * 未指定目标且未找到makefile。停止"

我使用的cmake命令是:

cmake -DBUILD_SHARED_LIBS=OFF -D BUILD_NEW_PYTHON_SUPPORT=NO ..

并且输出的开头是:

-- Detected version of GNU GCC: 44 (404)
-- Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find Jasper (missing:  JASPER_LIBRARIES JASPER_INCLUDE_DIR)
-- checking for module 'gstreamer-base-0.10'
--   package 'gstreamer-base-0.10' not found
-- checking for module 'libdc1394-2'
--   found libdc1394-2, version 2.1.2
-- checking for module 'libv4l1'
--   package 'libv4l1' not found

并且它继续,因此,在最后,输出是:

--     Disabled:                    python world
--     Disabled by dependency:      -
--     Unavailable:                 androidcamera dynamicuda viz
--
--   GUI:
--     QT:                          NO
--     GTK+ 2.x:                    YES (ver 2.20.1)
--     GThread :                    YES (ver 2.26.1)
--     GtkGlExt:                    NO
--     OpenGL support:              NO
--     VTK support:                 NO
--
--   Media I/O:
--     ZLib:                        /usr/lib64/libz.so (ver 1.2.3)
--     JPEG:                        libjpeg (ver 62)
--     PNG:                         /usr/lib64/libpng.so (ver 1.2.49)
--     TIFF:                        build (ver 42 - 4.0.2)
--     JPEG 2000:                   build (ver 1.900.1)
--     OpenEXR:                     build (ver 1.7.1)
--
--   Video I/O:
--     DC1394 1.x:                  NO
--     DC1394 2.x:                  YES (ver 2.1.2)
--     FFMPEG:                      NO
--       codec:                     NO
--       format:                    NO
--       util:                      NO
--       swscale:                   NO
--       gentoo-style:              NO
--     GStreamer:                   NO
--     OpenNI:                      NO
--     OpenNI PrimeSensor Modules:  NO
--     PvAPI:                       NO
--     GigEVisionSDK:               NO
--     UniCap:                      NO
--     UniCap ucil:                 NO
--     V4L/V4L2:                    YES/YES
--     XIMEA:                       NO
--     Xine:                        NO
--
--   Other third-party libraries:
--     Use IPP:                     NO
--     Use Eigen:                   NO
--     Use TBB:                     NO
--     Use OpenMP:                  NO
--     Use GCD                      NO
--     Use Concurrency              NO
--     Use C=:                      NO
--     Use Cuda:                    NO
--     Use OpenCL:                  YES
--
--   OpenCL:
--     Version:                     dynamic
--     Include path:                /root/opencv-2.4.9/3rdparty/include/opencl/1.2                                           
--     Use AMD FFT:                 NO
--     Use AMD BLAS:                NO
--
--   Python:
--     Interpreter:                 /usr/local/python-2.6.6/bin/python (ver 1.4)
--
--   Java:
--     ant:                         /usr/bin/ant (ver 1.7.1)
--     JNI:                         /usr/lib/jvm/java-1.7.0-openjdk.x86_64/include           /usr/lib/jvm/java-1.7.0-openjdk.x86_64/include/linux /usr/lib/jvm/java-1.7.0-openjdk.x86_64/include                                                                                   
--     Java tests:                  YES
--
--   Documentation:
--     Build Documentation:         NO
--     Sphinx:                      NO
--     PdfLaTeX compiler:           NO
--
--   Tests and samples:
--     Tests:                       YES
--     Performance tests:           YES
--     C/C++ Examples:              YES
--
--   Install path:                  /usr/local
--
--   cvconfig.h is in:              /root/opencv-2.4.9
-- -----------------------------------------------------------------
--
CMake Warning at CMakeLists.txt:1054 (message):
The source directory is the same as binary directory.  "make clean" may
damage the source tree


-- Configuring done
-- Generating done
-- Build files have been written to: /root/opencv-2.4.9

我在buildcv-2.4.9文件夹中创建的构建文件夹中运行cmake。在cmake之后,我尝试运行make,但它给了我上面提到的错误。我不知道如何继续,因为我不知道我在哪里犯错误。一些提示将不胜感激。

1 个答案:

答案 0 :(得分:0)

问题是makefile在父文件夹中,所以我只在该文件夹中运行make。