Hi Viktor, I had the same problem. My solution was: change #include <linux/time.h> to #include <time.h> in /opt/etherlab/rtw/include/rtw_time.h
I don't know why this include was changed in the last version. Maybe, Florian can help. Regards Matthias -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Viktor Rees Gesendet: Sonntag, 6. September 2009 10:49 An: [email protected] Betreff: [etherlab-users] Simulink and etherlab errors Simulink shows following error messages when trying tu generate application code: : : ### Processing Template Makefile: /opt/etherlab/rtw/etherlab/etherlab_kmod.tmf ### HelloWorld.mk which is generated from /opt/etherlab/rtw/etherlab/etherlab_kmod.tmf is up to date ### Building HelloWorld: /opt/mathlab-r2009a/bin/glnx86/gmake -f HelloWorld.mk GENERATE_REPORT=0 EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0 CC rtw_wrapper.o In file included from //opt/etherlab/rtw/include/rtw_time.h:24, from //opt/etherlab/rtw/src/rtw_wrapper.c:49: /usr/include/linux/time.h:9: error: redefinition of 'struct timespec' /usr/include/linux/time.h:15: error: redefinition of 'struct timeval' /usr/include/linux/time.h:20: error: redefinition of 'struct timezone' /usr/include/linux/time.h:47: error: redefinition of 'struct itimerval' gmake: *** [rtw_wrapper.o] Error 1 ### Real-Time Workshop build procedure for model: 'HelloWorld' aborted due to an error. >> Any ideas what the reason for this problem could be? Thank Viktor -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 _______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users _______________________________________________ etherlab-users mailing list [email protected] http://lists.etherlab.org/mailman/listinfo/etherlab-users
