sbyrne@nfsun.UUCP (Steve Byrne) (03/27/90)
A number of people have mentioned that they have been having troubles making
the example SunView interface for GNU Smalltalk work. Here are the steps
that I took to make it work. You should be in the main GNU Smalltalk source
directory when doing the following steps.
1) You'll want the CFuncs.st file from the examples subdirectory. Put the
original CFuncs in a safe place, and copy up the other one.
2) In CFuncs.st, change:
findDefsFor: anArray
anArray do:
[ :elt | self at: (elt at: 1)
put: nil "(Smalltalk lookupCAddr: (elt at: 2))" ]
--to--
findDefsFor: anArray
anArray do:
[ :elt | self at: (elt at: 1)
put: (Smalltalk lookupCAddr: (elt at: 2)) ]
i.e. remove the comments and the nil.
3) copy examples/suntool.st to the current directory. This step is not
strictly necessary, since you can refer to it as examples/suntool.st, but it
is somewhat easier for a lazy person like me.
4) copy examples/win.c to the current directory.
5) Modify mstoop.c. Change the definition of MEM_SPACE_SIZE from 2048*1024
to 4096*1024
6) Modify the makefile to have USER_OBJS and USER_LIBS defined as they are
in examples/Makefile:
USER_OBJS = win.o
USER_LIBS = -lsuntool -lsunwindow -lpixrect
7) Modify mstcint.c to define the SUN_WIN_HACKS preprocessor variable (just
uncomment the definition).
8) Type "make". The changed system should be recompiled. You should see no
errors at this step, and you should see win.c being compiled. I've had some
trouble with GCC's preprocessor not liking some of the definitions in the
Sun-supplied suntools include files. I did successfully build the system
using the standard Sun C compiler; perhaps if you've run fixincludes you
don't need to worry about this.
9) Type "mst suntool.st"
This will create and save a new binary image (since you've changed kernel
file CFuncs.st since the last run and changed the size of memory), and
then create a SunView/Suntool window with some buttons and a slider
on it.
I must apologize for the difficulty that people have been having with getting
this running. I hope to make the directions for using the example code much
clearer in the next release.
Thanks for your interest and support!!!
Stevefargo@iear.arts.rpi.edu (Ethan Young) (03/29/90)
In article <560@nfsun.UUCP> sbyrne@nfsun.UUCP (Steve Byrne) writes: >GNU Smalltalk This is the first I have heard of GNU Smalltalk. Where can I get it?????????????????? Huh?? huh?? :) Thanks. Thank you and happy hunting! Actually: Ethan M. Young ____ [> SB <] "Travel IS life" Internet: fargo@iear.arts.rpi.edu /__ -=>??<=- - Irwin M. Fargo Bitnet (??): usergac0@rpitsmts.bitnet / ARGO : 3000 years of regression from the year 4990