I don't know much about Mandrake 7.0.
I'm assuming that you are trying to install Ptolemy 0.7.1
You might find it easier to install 0.7.2devel, which has
support for gcc-2.95.2, see
http://ptolemy.eecs.berkeley.edu/ptolemyclassic/pt0.7.2/download.htm
I'm not that certain about the Ptolemy 0.7.1 details, but
probably what you want to do is edit $PTOLEMY/mk/config-linux.mk
adn add two lines like:
CPLUSPLUS_COMPAT = -I$(ROOT)/src/compat/cfront
CPLUSPLUS = g++ $(CPLUSPLUS_COMPAT)
This should cause make to run
g++ -I$(ROOT)/src/compat/cfront
whenever you compile a .cc file
PTCOMPAT_INCSPEC is set in $PTOLEMY/mk/config-default.mk to
config-default.mk:PTCOMPAT_INCSPEC =-I$(ROOT)/src/compat/ptolemy
src/compat/ptolemy contains compat.h, which is not what you want, you
want to include compat.h and the files in src/compat/cfront.
Note that the name cfront is a legacy from older compilers.
gcc-2.95.1, which is used by 0.7.2devel also needs to include
src/compat/cfront
In general, the place to look for paths is in the makefile in the
current directory and in $PTOLEMY/mk
-Christopher
Hello,
I am trying to install Ptolemy 7.0.1 on a PC under Mandrake 7.0.
I rebuilt GCC, TclTk and Octtools quite easily.
Unfortunately, I did not manage to install Ptolemy because of a missing
path to the directory $(PTOLEMY)/src/compat/cfront. .
Thus, 'make' ignores the header files std.h, Uniform.h , minmax.h,
ACG.h, Random.h ...
The bad point is that I am not fluent with makefiles and I cannot find
the appropriate place where I can specify this path.
If anyone can help me ?
Thanks
NB: the makefile in the /src/kernel directory has the following
delcaration
INCL=$(PTCOMPAT_INCSPEC)
which I suspect to be the cause of the trouble ?
---
-
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]