[MacPorts] #47256: OpenCV variants are not getting installed
#47256: OpenCV variants are not getting installed -----------------------------------+-------------------------------- Reporter: animesh.lovelyworld@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: opencv -----------------------------------+-------------------------------- Installation of opencv works perfectly fins. However when any variant is being installed (+tbb or +opencl), the installation fails. The main.log shows the reason of this failure: The source directory "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/build" does not appear to contain CMakeLists.txt. -- Ticket URL: <https://trac.macports.org/ticket/47256> MacPorts <https://www.macports.org/> Ports system for OS X
#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 | ------------------------------------+------------------------ Changes (by larryv@…): * owner: macports-tickets@… => stromnov@… * priority: High => Normal Comment: Thanks for the report. In future tickets, please Cc any port maintainers (`port info --maintainers opencv`). -- Ticket URL: <https://trac.macports.org/ticket/47256#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#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 | ------------------------------------+------------------------ Changes (by larryv@…): * cc: ddmarshall@… (added) Comment: Has likely duplicate #47264. -- Ticket URL: <https://trac.macports.org/ticket/47256#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#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
#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 larryv@…): The `cmake-1.0` portgroup was updated in r134128 to support out-of-source builds via a `cmake.out_of_source` option. We tried to maintain backwards compatibility with portfiles that already set up out-of-source builds, but `opencv` does that in an unorthodox way that we didn’t account for. Here’s a [[attachment:opencv-OOS.patch|patch]] that should fix the build. -- Ticket URL: <https://trac.macports.org/ticket/47256#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#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 animesh.lovelyworld@…): I applied the opencv-OOS.patch and now I am able to install opencv variants. Thanks -- Ticket URL: <https://trac.macports.org/ticket/47256#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#47256: OpenCV variants are not getting installed ------------------------------------+------------------------ Reporter: animesh.lovelyworld@… | Owner: stromnov@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: opencv | ------------------------------------+------------------------ Changes (by larryv@…): * status: new => closed * resolution: => fixed Comment: r134472 -- Ticket URL: <https://trac.macports.org/ticket/47256#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts