How can I get a library to compile if Matlab cant find NMAKE

7 visualizzazioni (ultimi 30 giorni)
Hi There, I have been trying to get an older external neural network library from here, http://www.lsm.tugraz.at/download/index.html It says they once made a windows version but don't support it. I want to update a windows version for my work, but am just learning about Matlab and MEX files.
I've added MS VS2010 C++ as a compiler
" mex -setup
Would you like mex to locate installed compilers [y]/n? y
Select a compiler:
[1] Microsoft Visual C++ 2010 in C:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Compiler: 1
The interface gives me two warnings
Warning: MEX-files generated using Microsoft Visual C++ 2010 require"...
and
" Warning: The MATLAB C and Fortran API has changed to support MATLAB" ...
The library has a make file and when I try to follow its instructions to run install.m I get the following errors
" Undefined function 'csim' for input arguments of type 'char'.
Error in install (line 10) v=csim('version');
Error in install (line 19) install; "
what seems to be happening is that install.m points to install.asv
install.m
% code % INSTALL will install the available packages. % % It checks wich subdirectories (csim, circuits, learning) % are available and calls install.m for each available % subdirectory.
% potential packages to install dirs = { 'csim' 'circuits' 'learning' 'utilities' 'develop' 'inputs' 'research' };
% save current directory rwd=pwd;
% go through all possible directories
for d=1:length(dirs)
if exist(dirs{d}) == 7
cd(dirs{d});
if( exist('./install.m','file') )
install;
end
cd(rwd);
end
end
end
The other file is Install.asv
if exist('csim') ~= 3
if isunix
!make
elseif ispc
!nmake -f Makefile.win;
else
disp('Unsupported operating system! Terminated.'); return;
end
v=csim('version');
fprintf('\b\b\b\b. Done.\nCSIM %s successfully compiled.\n',v);
else
fprintf('csim.%s exists. No compilation necessary.\n',mexext);
end
fprintf('CSIM *succesfully* installed.\n\n');
Sorry but today I can't get the NAMKE error... as it stands what is the error with line 10 " v=csim('version'); " csim is the library I'm trying to install I don't see how it could call a function for it. Is there something in the syntax I'm missing?
NMAKE should be installed with all Visual C++ installs. It is also on my computer. Would I have to add the path to Matlab? Would I just add it to the system environmental variables?
Thanks in advance for any help or hints.

Risposte (1)

Kaustubha Govind
Kaustubha Govind il 21 Mar 2014
The command:
!nmake -f Makefile.win;
runs from the Windows/DOS command prompt, so you would need to add the path to 'nmake' to the System PATH variable.

Categorie

Scopri di più su Get Started with MATLAB Coder in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by