开发者

Compiling the Shogun toolbox under Windows for Matlab

开发者 https://www.devze.com 2023-04-01 11:24 出处:网络
I was wondering if anyone of you had success and/or can help me with the Shogun library under Windows environment and Matlab interface because I don\'t seem to be able to compile it, though, according

I was wondering if anyone of you had success and/or can help me with the Shogun library under Windows environment and Matlab interface because I don't seem to be able to compile it, though, according to the readme/manual it should work.

Things I have:

  • Windows 7 64bit
  • latest Shogun src package
  • Matlab 2010b 64bit
  • latest Cygwin (running with administrator privileges)

There are at least two errors:

  • After the config script successfully detects Matlab, it fails to detect "Matlab developer support" and quits with "Error: could not find matlab developer files (e.g. mex.h)" (Matlab is in the path). The strangest thing is that after it fails, it starts and quits Matlab two times.
  • But even if I run开发者_如何学运维 ./configure only for the basic libshogun and libshogunui interfaces (without matlab), make still fails (./configure succeeds though). While compiling, I got loads of warnings and all seem to be related with the -pthread option. And I also got several error messages all being in HDF5File.cpp, then make fails. I have cygwin's default HDF5 (version 1.8.6), the Shogun manual does not mention any incompatibilities or parameters to set up.

I only have Matlab for Windows - I tried to compile the package under Ubuntu and it failed with Octave interface but it succeeded without Octave.

Any idea is appreciated!

edit:

The new version of Shogun is out and produces the same error. I've tried to compile it on an other PC with the same result (though that one runs Win7x64 also)


It may be a compiler issue. 64-bit MATLAB requires an external MEX compiler. See http://www.mathworks.co.uk/support/compilers/R2011a/win64.html.

Note that GCC isn't officially supported, but the GNUMEX project may help: http://gnumex.sourceforge.net/.


Please try to use the latest version of Shogun, i.e. checkout the developer branch of the official git repository.

after that follow the instructions here: https://github.com/shogun-toolbox/shogun/blob/develop/doc/md/INSTALL.md#matlab

0

精彩评论

暂无评论...
验证码 换一张
取 消