Invalid MEX-file '
.mexw64': .mexw64 Is Not A Valid Win32 Application
While trying to run opencv sample matlab call, I am getting an error
Invalid MEX-file 'mypath\displayImage.mexw64': mypath\displayImage.mexw64 is not a valid Win32 application.
There are no errors while compiling. Also there are no errors while compiling and running simple helloworld sample.
What can be a reason for this? Why it expects win32 when even filename says 64?
Matlab is 2013a, VS is 2012, both are 64bit.
I found this "solution" of year 2009 saying that any of called DLLs should be 64 bit.
(1) true nowadays, and
(2) possible in practice?
How to check if some called library is 32bit?
PATH was pointing to
%OPENCV_DIR%\build\x86\vc11\bin and this was overriding any
This was at runtime.
I.e. when I fixed
PATH value, program started to run even without recompiling.
- → React Native with visual studio 2015 IDE
- → Where to find example Visual Studio 2015 project(s) using typescript and React?
- → How to configure Visual Studio 2015 to write JSX in ASP.NET 5 (RC) with intellisense
- → How to make this simple TypeScript + React app work with Visual Studio 2015?
- → Format liquid(Shopify) code in visual studio code
- → Typescript intellisense without emitting require
- → How to display shopify free them output on my laptop using visual studio code?
- → Visual Studio Code - how to debug node.js routes?
- → Visual Studio cordova, simple way to "live reload" on Android devices?
- → --allow-live terminal command for shopify development
- → compile typescript with a visual studio code task, specifying the output directory
- → How to highlight all symbol appearances in python code with PTVS?
- → What is the location of the Python tools for Visual Studio?