[etherlab-dev] Error bulding simulink model
Cor Meijneke - 3ME
C.Meijneke at tudelft.nl
Tue Jun 11 13:46:30 CEST 2013
Dear Andreas,
You are probably right. I could not find how to switch on the compatibility so I used a matlab 2011b installation instead. The compiler now generates the rt_nonfinite header.
Now, I run into the next problem. The linker cannot find lethercat somehow.
Any ideas on what's going wrong here?
Built output:
### Starting build procedure for model: CorTest11
### Generating code into build folder: /home/tud-user/Documents/MATLAB/2011/CorTest11_etl_hrt
### File /vol/opt/etherlab/rtw/blocks/EtherCAT/ecrt_support.c associated with S-Function 'ec_slave3' (used in 'CorTest11/EL4xxx_0') does not exist
### Invoking Target Language Compiler on CorTest11.rtw
### Using System Target File: /vol/opt/etherlab/rtw/etherlab/etherlab.tlc
### Loading TLC function libraries
......
### Initial pass through model to cache user defined code
..
### Caching model source code
.......
### Generating TLC interface API.
.
### Writing source file CorTest11_capi.c
.
### Writing header file CorTest11_capi.h
.........................
### Writing source file CorTest11.c
### Writing header file CorTest11.h
.
### Writing header file CorTest11_types.h
### Writing header file rtwtypes.h
### Writing header file CorTest11_private.h
.
### Writing header file rtmodel.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
.
### Writing header file rt_defines.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
.
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Generating parameter meta information: CorTest11_meta.txt
.
### Processing Template Makefile: /vol/opt/etherlab/rtw/etherlab/etherlab_hrt.tmf
### CorTest11.mk which is generated from /vol/opt/etherlab/rtw/etherlab/etherlab_hrt.tmf is up to date
### Building CorTest11: /usr/local/MATLAB/R2011b/bin/glnxa64/gmake -f CorTest11.mk GENERATE_REPORT=0 EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0
CC CorTest11_capi.o
CC rtGetInf.o
CC rtGetNaN.o
CC rt_nonfinite.o
CC CorTest11.o
CC hrt_main.o
CC rt_sim.o
CC CorTest11_header.o
LD_LIBRARY_PATH= gcc -o ../CorTest11 CorTest11_capi.o rtGetInf.o rtGetNaN.o rt_nonfinite.o ecrt_support.o CorTest11.o hrt_main.o rt_sim.o CorTest11_header.o \
-rdynamic -lm -ldl -lrt -lpdserv -L/vol/opt/etherlab/lib -Wl,--rpath /vol/opt/etherlab/lib -lethercat
/usr/bin/ld: cannot find -lethercat
collect2: ld returned 1 exit status
gmake: *** [../CorTest11] Error 1
### Build procedure for model: 'CorTest11' aborted due to an error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20130611/fbdae9ff/attachment-0001.htm>
More information about the etherlab-dev
mailing list