繁体   English   中英

带有Java安装问题的CentOS6上的OpenCV

[英]OpenCV on CentOS6 with Java installation problems

我正在尝试在需要在Java中使用的CentOS6上安装opencv2.4.9。 在找到所有依赖程序包的全部麻烦之后,我终于设法获得了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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM