[Solved] MEXEXT Issues Compiling 3.2 with CUDA
Hi,
I'm a student trying to compile OpenCV with CUDA enabled. But I get frequent errors when I compile within Visual Studio 2013.
My environment:
OpenCV 3.2 (from Master branch)
Visual Studio 2013
Windows 10 - 64 bit
Nvidia GeForce 960M
CUDA Toolkit 8.0
My Process:
- Download OpenCV source from GitHub
Use CMake to generate the project
CUDA is enabled by default and I am changing nothing in the parameters
I generate using the "Visual Studio 12 2013 Win64" generator. No major errors are thrown though "Error: MEXEXT: Unsupported platform." occurs once in the output console. Generation ultimately completes.
- Open the "OpenCV.sln" file in the generated output.
- Right click "Build All" -> Build
- Get the following errors:
This one occurs many times, particularly on cuda projects.
Error 4646 error : MEXEXT: Unsupported platform. D:\Libraries\cuda opencv\Build\modules\cudaarithm\CUSTOMBUILD opencv_cudaarithm
Error 140 error LNK1181: cannot open input file '....\lib\Release\opencv_core320.lib' D:\Libraries\cuda opencv\Build\modules\ml\LINK opencv_ml
Error 171 error LNK1181: cannot open input file '....\lib\Release\opencv_core320.lib' D:\Libraries\cuda opencv\Build\modules\imgproc\LINK opencv_imgproc
Could anyone please let me know if there's anything obviously wrong with my setup or process?
edit: some formatting cleanup
Still looking into this. "MEXEXT" seems to be a "Binary MEX file-name extension" from MathWorks. In my case, that could be from MatLab which I have installed.