Ptolemy 0.7.1 Release Notes
Below are some common problems that you might run across with 0.7.1.
Ptolemy 0.7.1 should compile with gcc-2.7.2.2, but the default
compiler we build the binaries with is egcs-1.0.2. egcs is a new
compiler effort that builds on the gcc compiler. The egcs sources are
made available to the gcc maintainers, so egcs changes eventually
should be in egcs. It seems like egcs is much more active than gcc,
and that egcs-1.0.2 is more stable than gcc-2.8.2. Under gcc-2.8.2,
compiling with -O -fPIC causes an internal compiler error when
compiling
Block.cc
, so we are shipping with egcs.
For more information about egcs, see
http://www.cygnus.com
.
EGCS has a few mailing lists, egcs-bugs
is
archived at:
http://www.findmail.com/listsaver/egcs-bugs
The most common problem with using egcs is that
libg++
is no longer used, so certain include files, such
as std.h
are not found at compile time
and certain symbols, such as
ACG::ACG(unsigned int, int)
are missing at link time.
Usually, doing a make clean; make install
will solve the problem.
The way we work around this is by defining -DPT_EGCS
in config-egcs.mk
and then including that makefile
in the config-$PTARCH.mk
file instead of
config-g++.mk
.
Note that egcs does not need libg++
, so the
SYSLIBS
makefile variable is set to not include
-lg++
To build under egcs and under Microsoft Visual C++, it was
necessary to modify many files. In Ptolemy 0.7,
The g++ -fno-for-scope
command line argument was
necessary. In Ptolemy 0.7.1, this argument is no longer necessary, even
under gcc-2.7.2.
Pxgraph has been converted to Java. See
the troubleshooting guide at.
$PTOLEMY/tycho/java/ptplot/doc/internals/troubleshooting.html
If you don't have Java, see
ftp://ptolemy.eecs.berkeley.edu/pub/misc/xgraph/index.html
for pxgraph X11 binaries and sources. See
$PTOLEMY/src/pxgraph/README.txt
for details
To run the Java version of pxgraph, you must do one of the following:
- Set the
JAVAHOME
environment variable to point
to the directory where the Java Development Kit is installed.
For example, your .cshrc
might contain
setenv JAVAHOME /opt/jdk1.1.5
- If you do not set
JAVAHOME
, then the pxgraph
script will search your path for the javac
binary.
If javac
is found, then the directory above it
is used for the value of JAVAHOME
- You can also edit
$PTOLEMY/bin/pxgraph
directly
and adjust the JAVADEFAULT
variable.
The
vem
binary shipped with Ptolemy 0.7
will not
work with Ptolemy 0.7.1. The reason is that Tom Lane fixed a long
standing vem bug that occured when pigiRpc and vem try to send
each other commands at the same time. For example, the bug appears
when the user does a 'edit paramters' or 'look inside' in a vem window
while pigiRpc is compiling a facet.
If you do not upgrade vem to the version shipped with 0.7.1,
then the error message you will see is:
vem> illegal VEM function number (4)
RPC Error: server: bad VEM request
The number '4' in the error message is a dead giveaway, the patch
says
rcpInternal.h
had the following
#define
added:
#define VEM_LOCKING_FUNCTION (long) 4
If you get this error message, get the
other.src
tar file
and octtools.
Missing features
General Problems
CG56
Tycho