Ask Your Question
0

[Solved] MEXEXT Issues Compiling 3.2 with CUDA

asked 2017-02-09 08:30:14 -0500

Eldar gravatar image

updated 2017-02-17 11:11:40 -0500

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:

  1. Download OpenCV source from GitHub
  2. 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.

  3. Open the "OpenCV.sln" file in the generated output.
  4. Right click "Build All" -> Build
  5. 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

edit retag flag offensive close merge delete

Comments

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.

Eldar gravatar imageEldar ( 2017-02-10 04:12:08 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-17 11:10:46 -0500

Eldar gravatar image

After a few days of trying, the solution was to uninstall MatLab 2016. As soon as it was uninstalled, the compiling went smoothly.

Fortunately, I no longer need MatLab. But if anyone experiences the same, try uninstalling and then compiling. Reinstall upon completion. If you're on 2016, consider an earlier revision.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-02-09 08:30:14 -0500

Seen: 488 times

Last updated: Feb 17 '17