问题
I use octave and want to use Vlfeat to do my project in Windows 7. The website has suggestion to use from Octave as below:
I complete to install package image according to the code in green (first) box. However, I've got stuck to the code in red (second) box. Is the code in red box used in Octave or in Windows command prompt? If No, Where should I use it? Is it in Ubuntu command prompt? I am not accustomed to Ubuntu. To use it without Ubuntu would be much appreciated (Although I have some sense that it definitely is related to Ubuntu) but if it unavoidable for Ubuntu, could anyone suggest me how.
Yesterday, I tried to use the red code in Ubuntu, Windows, Octave and it all got somehow error for a whole day. I thought the code is for Ubuntu but the code start with '>' not '$' so I'm not sure anymore. The website doesn't suggest enough information and doesn't have discussion forum. I got lost now.
Anyone please help me :<
The picture below is the result according to the suggestion from Unapiedra. Could someone tell me about the error?
回答1:
The code in the second box is meant to be executed by the command line.
Under Windows you would have to replace cd
with chdir
and you would need make
installed.
You also need to find where mkoctfile
is located on Windows and provide that information to make like it is done in the example.
Compiling on Windows
There is also good information on how to compile on Windows on the VLfeat website here. Try that first, and add the MKOCTFILE
parameter as well. (You might have to edit it into the NMake file. )
Conclusion
It doesn't seem like there is a proper option. Compilation under Windows is done using NMake. The configuration of this is in Makefile.mak
, the configuration for UNIX is in Makefile
which in turn loads (among others) make/octave.mak
. There is no provision for Octave in the Windows Makefile.mak
.
Options:
- Fix it yourself. It shouldn't be too hard. Just compare what is done to Matlab under Windows, see what is done to Octave under UNIX and change the Windows makefiles to compile the Octave API. (Ideally, open a pull request on VLfeat's Github with the working code.)
- Ask the main author of VLFeat for some help. I've contacted him in the past with bug fixes and he was responsive to that.
Duplicate (unanswered): Running VLFeat setup using OCTAVE (OS: Windows 7)
来源:https://stackoverflow.com/questions/25442159/how-to-use-vlfeat-in-octave-in-window-7