0

I'm trying to build a fork of Caffe for Windows as a .mex file to be used in MATLAB (R2015A) code. In this fork there are .mexa64 files present, but since I'm on a Windows machine I have to rebuild as .mex/.mexw64.

I've finally got cmake to work with all the various dependencies and generate .sln project files. I have Visual Studio 2015 installed.

I tried this solution: Building a MATLAB mex file in Visual Studio gives "LNK2019 unresolved external symbol _mexPrintf referenced in function mexFunction"? But I'm currently getting over 1000 errors of various types (syntax error, cannot open file, undeclared identifier, etc.), so I'm probably doing something very wrong.

How would I go about creating my .mexw64 files in VS2015 (or in MATLAB if possible)?

EDIT: Got rid of a bunch of errors by including dependency folders in the Configuration Manager and following: https://github.com/BVLC/caffe/issues/1761. Still loads to go..

Community
  • 1
  • 1
appel
  • 517
  • 2
  • 7
  • 19
  • we cannot help as we don't know how you have the project configured – Ander Biguri Jul 19 '16 at 12:37
  • Go to a temp folder in MATLAB and run "copyfile(fullfile(matlabroot,'extern','examples','mex','yprime.c'),'.','f'); mex('-v','yprime.c')". This should list all the libraries used by mex when compiling. Make sure you are including those in your project. – Navan Jul 19 '16 at 14:37

0 Answers0