Bonjour,
Je voudrais utiliser la bibliothèque FANN pour Matlab. http://leenissen.dk/fann/index.php
Je m'attendais à trouver des fonctions *.m mais je n'ai trouver qu'un dossier mex avec du C et un Makefile dont voici le contenu :
J'utilise Windows 2000 mais le Makefile a été développé pour UNIX. Comment est ce que je pourrais compiler cette Bibliothèque pour mon système. Ah, ma version de Matlab est 7.4.0(R2007a).
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 # Makefile for building the Matlab mex interface to FANN # Requires the fann library to be installed # Author: Dirk Gorissen <dirk.gorissen@ua.ac.be> MATLABDIR ?= /opt/matlab CXX = gcc CFLAGS = -Wall -fPIC -O3 -I$(MATLABDIR)/extern/include -I../src/include MEX = $(MATLABDIR)/bin/mex MEX_OPTION = CC\#$(CXX) CXX\#$(CXX) CFLAGS\#"$(CFLAGS)" CXXFLAGS\#"$(CFLAGS)" -L../src/.libs -lm -lfann MEX_EXT = $(shell $(MATLABDIR)/bin/mexext) all: createFann.$(MEX_EXT) trainFann.$(MEX_EXT) testFann.$(MEX_EXT) createFann.$(MEX_EXT): createFann.c helperFann.h helperFann.o $(MEX) $(MEX_OPTION) createFann.c helperFann.o trainFann.$(MEX_EXT): trainFann.c helperFann.h helperFann.o $(MEX) $(MEX_OPTION) trainFann.c helperFann.o testFann.$(MEX_EXT): testFann.c helperFann.h helperFann.o $(MEX) $(MEX_OPTION) testFann.c helperFann.o helperFann.o: helperFann.c helperFann.h $(CXX) $(CFLAGS) -c helperFann.c clean: rm -f *~ *.o; rm -f *.mex*; rm -f *obj
Merci d'avance.
Partager