Bonjour,
J'ai installé la dernière version de winavr, la derniere version de la librairie efsl 0.3.6. sur vista
L'environnement de winavr fonctionne bien j'ai deja developpé dessus.
J'essaye de faire fonctionner le programme de test avrtest mais impossible depuis 3 jours
Les librairies efsl sont bien générées.
Mais lorsque que je compile le programme de test avrtest jai plein d'erreur de undefined reference to ...
J'ai tout essaye au niveau du make file, le chemin des librairies, le chemin des includes, codage en dur, de meme avec avrstudio, tout est bien configuré, mais j'ai toujours les memes erreurs.
Le makefile :
Les chemins du style unix fonctionent car j'ai compile les librairies de la même façon avec le makefile d'origine, et j'ai teste en mettant aussi les chemins windows d:\rep\malib\src\include etc ..Code:include ../../conf/config.makefile #BASE=c:\efsl\efsl-0.3 #INC=-I$(BASE)\src\base\include -I $(BASE)\src\include -I $(BASE)\src\fs\vfat\include -I $(BASE)\src\hwdrivers\atmega_spi\include -I $(BASE)\src\protocols\sdcard_spi\include -I$(BASE)\conf BASE=../../ INC=-I$(BASE)/src/base/include -I $(BASE)/src/include -I $(BASE)/src/fs/vfat/include -I $(BASE)/src/hwdrivers/atmega_spi/include -I $(BASE)/src/protocols/sdcard_spi/include -I$(BASE)/conf LIBS= -L $(BASE)\lib -lefsl-base -lefsl-fs-vfat -lefsl-hwd-atmega_spi -lefsl-prot-sdspi avrtest: lib $(CC) $(GCFLAGS) $(INC) -o avrtest.o avrtest.c $(LIBS) $(OBJCOPY) -j .text -j .data -O ihex avrtest.o avrtest.hex flash: avrtest avrdude -P /dev/ttyS0 -c stk500v2 -pm128 -Uflash:w:avrtest.hex debug: avrtest avarice -j /dev/ttyS0 -e -p -f avrtest.o -D :4242 avr-gdb avrtest.o lib: make -C $(BASE) avr clean: make -C $(BASE) clean rm -rf *.hex *.o
Les erreurs:
Est ce quelqu'un a deja fait fonctionné ce programme de tests ?Code:avrtest.c:11: warning: return type of 'main' is not 'int' avrtest.c: In function 'main': avrtest.c:70: warning: pointer targets in passing argument 3 of 'file_read' diff er in signedness avrtest.c:72: warning: pointer targets in passing argument 3 of 'file_write' dif fer in signedness C:\Users\ADMINI~1\AppData\Local\Temp/ccG9rLzh.o: In function `main': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\examples\avr/avrtest.c:48: undefined r eference to `efsl_initStorage' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\examples\avr/avrtest.c:53: undefined r eference to `efsl_initFs' ../../\lib\libefsl-fs-vfat.a(file.o): In function `file_fclose': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:342: undefined refe rence to `memClr' ../../\lib\libefsl-fs-vfat.a(file.o): In function `file_fopen': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:296: undefined refe rence to `memCpy' ../../\lib\libefsl-fs-vfat.a(file.o): In function `file_fwrite': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:200: undefined refe rence to `part_directSectorWrite' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:203: undefined refe rence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:204: undefined refe rence to `memCpy' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:206: undefined refe rence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(file.o): In function `file_fread': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:83: undefined refer ence to `part_directSectorRead' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:86: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:87: undefined refer ence to `memCpy' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/file.c:88: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fs.o): In function `fs_setFsInfo': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:502: undefined refere nce to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:504: undefined refere nce to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:509: undefined refere nce to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fs.o): In function `fs_getFsInfo': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:486: undefined refere nce to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:488: undefined refere nce to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:493: undefined refere nce to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fs.o): In function `fs_loadVolumeId': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:92: undefined referen ce to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:105: undefined refere nce to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fs.o): In function `fs_isValidFat': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:75: undefined referen ce to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:79: undefined referen ce to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fs.o): In function `fs_clearCluster': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:474: undefined refere nce to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:475: undefined refere nce to `memClr' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:476: undefined refere nce to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fs.o): In function `fs_flushFs': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:458: undefined refere nce to `part_flushPart' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fs.c:458: undefined refere nce to `part_flushPart' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_createDefaultEntry': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:81: undefined refere nce to `memCpy' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_getFatFileName': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:317: undefined refer ence to `memClr' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:317: undefined refer ence to `memClr' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:323: undefined refer ence to `memCpy' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_updateDirectoryEntry': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:139: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:140: undefined refer ence to `memCpy' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:141: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_setFileSize': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:123: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:125: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_setFirstCluster': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:106: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:109: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_createDirectoryEntry': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:66: undefined refere nce to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:67: undefined refere nce to `memCpy' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:68: undefined refere nce to `part_relSect' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_getFileStructure': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:49: undefined refere nce to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:51: undefined refere nce to `part_relSect' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_findFileinBuf': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:166: undefined refer ence to `strMatch' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_findinRootArea': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:295: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:298: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:301: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:303: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(dir.o): In function `dir_findinCluster': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:244: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:247: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/dir.c:251: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fat.o): In function `fat_setNextClusterAddressWBuf' : D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:324: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:330: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fat.o): In function `fat_getNextClusterAddressWBuf' : D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:276: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:278: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fat.o): In function `fat_allocClusterChain': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:471: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:474: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:480: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:482: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:484: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:488: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:490: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:493: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fat.o): In function `fat_getNextClusterChain': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:379: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:384: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:403: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fat.o): In function `fat_getNextClusterAddress': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:101: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:109: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:110: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:131: undefined refer ence to `part_relSect' ../../\lib\libefsl-fs-vfat.a(fat.o): In function `fat_setNextClusterAddress': D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:155: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:166: undefined refer ence to `part_getSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:172: undefined refer ence to `part_relSect' D:\donnees\download\efsl-0.3.6\efsl-0.3.6\src\fs\vfat/fat.c:192: undefined refer ence to `part_relSect' make: *** [avrtest] Error 1
Merci de votre aide.
-----