[MacPorts] #47256: OpenCV variants are not getting installed
MacPorts
noreply at macports.org
Thu Mar 26 02:29:45 PDT 2015
#47256: OpenCV variants are not getting installed
------------------------------------+------------------------
Reporter: animesh.lovelyworld@… | Owner: stromnov@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: opencv |
------------------------------------+------------------------
Comment (by greisberger@…):
The cmake command line has 2 paths (source and build directories), when
cmake wants only one:
{{{
cmake --help
Usage
cmake [options] <path-to-source>
cmake [options] <path-to-existing-build>
}}}
`cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.11/../build"
&& /opt/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/local
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON
-DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
-DCMAKE_INSTALL_RPATH=/opt/local/lib
-DCMAKE_INSTALL_NAME_DIR=/opt/local/lib
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr"
-DCMAKE_MODULE_PATH=/HDD/local/share/cmake/Modules
-DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev` '''../opencv-2.4.11/'''
`-DWITH_1394=OFF -DWITH_CARBON=OFF -DWITH_CUBLAS=OFF -DWITH_CUDA=OFF
-DWITH_VTK=OFF -DWITH_CUFFT=OFF -DWITH_CUBLAS=OFF -DWITH_FFMPEG=ON
-DWITH_GSTREAMER=OFF -DWITH_GTK=OFF -DWITH_IMAGEIO=ON -DWITH_IPP=OFF
-DWITH_JASPER=ON -DWITH_JPEG=ON -DWITH_OPENEXR=ON -DWITH_OPENGL=ON
-DWITH_OPENNI=OFF -DWITH_PNG=ON -DWITH_PVAPI=OFF -DWITH_GIGEAPI=OFF
-DWITH_QUICKTIME=OFF -DWITH_TBB=OFF -DWITH_CSTRIPES=OFF -DWITH_TIFF=ON
-DWITH_UNICAP=OFF -DWITH_V4L=OFF -DWITH_VIDEOINPUT=OFF -DWITH_XIMEA=OFF
-DWITH_XINE=OFF -DWITH_OPENCL=OFF -DWITH_OPENCLAMDFFT=OFF
-DWITH_OPENCLAMDBLAS=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_DOCS=OFF
-DBUILD_EXAMPLES=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF
-DBUILD_ZLIB=OFF -DBUILD_TIFF=OFF -DBUILD_JASPER=OFF -DBUILD_JPEG=OFF
-DBUILD_PNG=OFF -DBUILD_OPENEXR=OFF -DPYTHON_EXECUTABLE=OFF
-DINSTALL_C_EXAMPLES=OFF -DINSTALL_PYTHON_EXAMPLES=OFF
-DENABLE_PRECOMPILED_HEADERS=ON -DCMAKE_VERBOSE=ON
-DZLIB_LIBRARY=/opt/local/lib/libz.dylib
-DBZIP2_LIBRARIES=/opt/local/lib/libbz2.dylib -DWITH_EIGEN=ON
-DEIGEN_INCLUDE_PATH=/opt/local/include/eigen3 -DWITH_QT=ON
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
-DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.10"
-DCMAKE_OSX_SYSROOT="/" -DOPENCV_LINKER_LIBS=""`
'''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.11/../build''''
Removing the trailing target directory from the command line works.[[BR]]
But I did not find where it is appended in the Portfile. It is probably
added by the Macports build system.[[BR]]
However, executing manually the command line with the trailing path
removed allows to resume and successfully install opencv:
`cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/opencv-2.4.11/../build"
&&` **sudo -u macports** `/opt/local/bin/cmake
-DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=/opt/local/lib
-DCMAKE_INSTALL_NAME_DIR=/opt/local/lib
-DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr"
-DCMAKE_MODULE_PATH=/opt/local/share/cmake/Modules
-DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev ../opencv-2.4.11/ -DWITH_1394=OFF
-DWITH_CARBON=OFF -DWITH_CUBLAS=OFF -DWITH_CUDA=OFF -DWITH_VTK=OFF
-DWITH_CUFFT=OFF -DWITH_CUBLAS=OFF -DWITH_EIGEN=OFF -DWITH_FFMPEG=ON
-DWITH_GSTREAMER=OFF -DWITH_GTK=OFF -DWITH_IMAGEIO=ON -DWITH_IPP=OFF
-DWITH_JASPER=ON -DWITH_JPEG=ON -DWITH_OPENEXR=ON -DWITH_OPENGL=ON
-DWITH_OPENNI=OFF -DWITH_PNG=ON -DWITH_PVAPI=OFF -DWITH_GIGEAPI=OFF
-DWITH_QUICKTIME=OFF -DWITH_TBB=OFF -DWITH_CSTRIPES=OFF -DWITH_TIFF=ON
-DWITH_UNICAP=OFF -DWITH_V4L=OFF -DWITH_VIDEOINPUT=OFF -DWITH_XIMEA=OFF
-DWITH_XINE=OFF -DWITH_OPENCL=OFF -DWITH_OPENCLAMDFFT=OFF
-DWITH_OPENCLAMDBLAS=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_DOCS=OFF
-DBUILD_EXAMPLES=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_TESTS=OFF
-DBUILD_ZLIB=OFF -DBUILD_TIFF=OFF -DBUILD_JASPER=OFF -DBUILD_JPEG=OFF
-DBUILD_PNG=OFF -DBUILD_OPENEXR=OFF -DPYTHON_EXECUTABLE=OFF
-DINSTALL_C_EXAMPLES=OFF -DINSTALL_PYTHON_EXAMPLES=OFF
-DENABLE_PRECOMPILED_HEADERS=ON -DCMAKE_VERBOSE=ON
-DZLIB_LIBRARY=/opt/local/lib/libz.dylib
-DBZIP2_LIBRARIES=/opt/local/lib/libbz2.dylib -DWITH_QT=ON
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
-DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.10"
-DCMAKE_OSX_SYSROOT="/" -DOPENCV_LINKER_LIBS=""` **`; sudo port install
opencv`**
--
Ticket URL: <https://trac.macports.org/ticket/47256#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list