Package Details: opencv-cuda-git 3.3.1.r145.gfcdd833059-1

Git Clone URL: https://aur.archlinux.org/opencv-cuda-git.git (read-only)
Package Base: opencv-cuda-git
Description: Open Source Computer Vision Library compiled with extra modules(opencv_contrib) and CUDA
Upstream URL: http://opencv.org/
Licenses: BSD
Conflicts: opencv
Provides: opencv
Submitter: yhfudev
Maintainer: yhfudev
Last Packager: yhfudev
Votes: 1
Popularity: 0.009649
First Submitted: 2016-10-18 18:21
Last Updated: 2017-11-14 23:10

Required by (172)

Sources (6)

Latest Comments

welkie commented on 2017-11-14 12:12

Also getting the issue of a dependency not working:

:: Package opencv-cuda-git not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for libcl (dependency tree: opencv-cuda-git libcl)

krestean commented on 2017-08-09 08:26

edited opencv-git to build with cuda.
Please merge this.

# Maintainer: Andrew Crerar <andrew (at) crerar (dot) io>
# Contributor: Valentin Churavy <v.churavy@gmail.com>
# Contributor: Romain Reignier <rom.reignier@gmail.com>
# Contributor: Fabien Dubosson <fabien.dubosson@gmail.com>
# Contributor: David Manouchehri <david@davidmanouchehri.com>
# Contributor: CHEN Xing <cxcxcxcx@gmail.com>
# Contributor: Martin Imobersteg <martin.imobersteg@gmail.com>
# Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
# Contributor: Jan-Kristian Mathisen <krestean@gmail.com>
# Also largely inspired by `opencv` in extra, so including contributors too:
# Contributor: Ray Rashif <schiv@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

_name=opencv
pkgname="${_name}-git"
pkgver=3.3.0.r1.g87c27a074d
pkgrel=1
pkgdesc="Open Source Computer Vision Library"
url="http://opencv.org/"
license=('BSD')
arch=('i686' 'x86_64')
depends=('intel-tbb' 'openexr' 'xine-lib' 'libdc1394' 'gtkglext' 'vtk')
makedepends=('gcc5''git' 'cmake' 'python2-numpy' 'python-numpy' 'mesa' 'eigen')
optdepends=('opencv-samples'
'eigen'
'opencl-icd-loader: For coding with OpenCL'
'python-numpy: Python 3 interface'
'python2-numpy: Python 2 interface')
conflicts=('opencv' 'opencv-git')
provides=("${_name}=${pkgver}")
source=('git+https://github.com/opencv/opencv.git'
'git+https://github.com/opencv/opencv_contrib.git')
sha512sums=('SKIP'
'SKIP')

_cmakeopts=('-D WITH_OPENCL=ON'
'-D WITH_OPENGL=ON'
'-D WITH_TBB=ON'
'-D WITH_XINE=ON'
'-D BUILD_WITH_DEBUG_INFO=OFF'
'-D BUILD_TESTS=OFF'
'-D BUILD_PERF_TESTS=OFF'
'-D BUILD_EXAMPLES=ON'
'-D INSTALL_C_EXAMPLES=ON'
'-D INSTALL_PYTHON_EXAMPLES=ON'
'-D CMAKE_BUILD_TYPE=Release'
'-D CMAKE_INSTALL_PREFIX=/usr'
'-D CMAKE_SKIP_RPATH=ON'
'-D WITH_NVCUVID=ON'
'-D WITH_CUDA=ON'
'-D ENABLE_FAST_MATH=ON'
'-D CUDA_FAST_MATH=ON'
'-D WITH_CUBLAS=ON')

# SSE only available from Pentium 3 onwards (i686 is way older)
[[ "$CARCH" = 'i686' ]] && \
_cmakeopts+=('-D ENABLE_SSE=OFF'
'-D ENABLE_SSE2=OFF'
'-D ENABLE_SSE3=OFF')

pkgver() {
cd "${srcdir}/${_name}"
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {

#edited makeflags to get rid off -fno-plt argument, which is uncompitable with gcc5.
#look inside /etc/makepkg.conf if your system has other default build flags.
export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong"
export CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong" #not shure if needed

#added fixed paths to compilers
cmake ${_cmakeopts[@]} \
-DOPENCV_EXTRA_MODULES_PATH="${srcdir}/opencv_contrib/modules" \
-DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-DCMAKE_C_COMPILER=/usr/bin/gcc \
-DCUDA_HOST_COMPILER:FILEPATH=/usr/bin/gcc-5 \
-DCUDA_NVCC_FLAGS="-ccbin gcc-5" \
${_name}
make
}

package() {
options=('staticlibs')

make DESTDIR="${pkgdir}" install

# install LICENSE file
install -Dm644 "${srcdir}/${_name}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

qiuhaoling commented on 2017-04-01 19:40

Please change libcl to ocl-icd and comment out opencv_contrib_sfm_cmake.patch

elimpfor commented on 2017-03-13 21:37

There is a dependency issue with libcl as it doesn't seem to exist anymore.