Trying to fix 3.0 dev build with samples and CUDA
Using the following CMAKE command, I am busy fixing the built of 3.0.
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUBLAS=ON
-D WITH_CUFFT=ON -D WITH_EIGEN=OFF -D WITH_OPENGL=ON -D WITH_QT=ON -D WITH_TBB=ON
-D BUILD_DOCS=ON -D BUILD_EXAMPLES=ON -D BUILD_TESTS=ON -D CUDA_ARCH_BIN="3.0"
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..
I have succeeded in supplying the fixes for building succesfully with CUDA support without samples. However, when putting the build_samples ON i get the following error during the CMAKE phase just after the configuring.
-- Configuring done
CMake Error: CMake can not determine linker language for target: example_gpu_cascadeclassifier
CMake Error: Cannot determine link language for target "example_gpu_cascadeclassifier".
CMake Error: CMake can not determine linker language for target: example_gpu_generalized_hough
CMake Error: Cannot determine link language for target "example_gpu_generalized_hough".
CMake Error: CMake can not determine linker language for target: example_gpu_stereo_multi
CMake Error: Cannot determine link language for target "example_gpu_stereo_multi".
-- Generating done
I am wondering if anyone has seen this before and has any possible fix for this. Some topics state that I should configure the SET_TARGET_PROPERTIES
parameter, but I cannot find that anywhere...
Anyone???