Differences between revisions 2 and 7 (spanning 5 versions)
Revision 2 as of 2008-02-25 05:01:09
Size: 577
Comment:
Revision 7 as of 2008-04-25 18:50:50
Size: 2075
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma section-numbers 2
Line 2: Line 4:

[[TableOfContents]]

== Compilation problems ==
=== Error when compiling Ptolemy II (Windows only) ===
When running {{{make configPt}}} or when running {{{./configure && make fast install}}} gives the
following error
{{{
/bin/sh: -c: line 1: unexpected EOF while looking for matching `''
/bin/sh: -c: line 4: syntax error: unexpected end of file
}}}
then the source code is most likely with Unix line endings. Download the Windows source
code from the Ptolemy web page.


=== Error when compiling MATLAB (Windows only) ===
Under Windows, if the BCVTB is compiled using the Microsoft compiler, then
the MATLAB libraries also need to be compiled with the Microsoft compiler.
If, however, the gcc compiler has been used when compiling the BCVTB,
then the following compilation error may be obtained when compiling the MATLAB libraries:
{{{
Writing library for establishBSDSocket.mexw32
c:\docume~1\mwetter\locals~1\temp\mex_ae679\simulinksocket.obj .text: undefined reference to '_establishclientsocket'
c:\docume~1\mwetter\locals~1\temp\mex_ae679\simulinksocket.obj .text: undefined reference to '_exchangewithsocket'
c:\docume~1\mwetter\locals~1\temp\mex_ae679\simulinksocket.obj .text: undefined reference to '_closeipc'
}}}
To fix this problem, open Matlab, run
{{{
mex -setup
}}}
and select the Microsoft Visual C++ compiler from the menu. This need to be done only once as it updates your Matlab settings.
Line 6: Line 39:
check the files {{{utilSocket.log}}} and {{{utilClient.log}}}. check the files {{{simulation.log}}}, {{{utilSocket.log}}} and {{{utilClient.log}}}.

Help

TableOfContents

1. Compilation problems

1.1. Error when compiling Ptolemy II (Windows only)

When running make configPt or when running ./configure && make fast install gives the following error

/bin/sh: -c: line 1: unexpected EOF while looking for matching `''
/bin/sh: -c: line 4: syntax error: unexpected end of file

then the source code is most likely with Unix line endings. Download the Windows source code from the Ptolemy web page.

1.2. Error when compiling MATLAB (Windows only)

Under Windows, if the BCVTB is compiled using the Microsoft compiler, then the MATLAB libraries also need to be compiled with the Microsoft compiler. If, however, the gcc compiler has been used when compiling the BCVTB, then the following compilation error may be obtained when compiling the MATLAB libraries:

Writing library for establishBSDSocket.mexw32 
c:\docume~1\mwetter\locals~1\temp\mex_ae679\simulinksocket.obj .text: undefined reference to '_establishclientsocket' 
c:\docume~1\mwetter\locals~1\temp\mex_ae679\simulinksocket.obj .text: undefined reference to '_exchangewithsocket' 
c:\docume~1\mwetter\locals~1\temp\mex_ae679\simulinksocket.obj .text: undefined reference to '_closeipc'

To fix this problem, open Matlab, run

mex -setup

and select the Microsoft Visual C++ compiler from the menu. This need to be done only once as it updates your Matlab settings.

2. Runtime problems

If something goes wrong during the simulation, check the files simulation.log, utilSocket.log and utilClient.log. They contain log messages that may indicate the cause of the problem. If these files do not exist, go to the directory bcvtb/lib, open the file defines.h and add the line

#define NDEBUG

Then, from the directory bcvtb/lib compile the libraries using

make clean
make

and rerun the simulation. Now the log files should be written to the directory from which you started the BCVTB.

bcvtb: Help (last edited 2016-04-21 17:07:12 by ThierryNouidui)