Re: [Vm-dev] How to use Croquet VMMaker

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] How to use Croquet VMMaker

Andreas.Raab
ioGetWindowLabel/ioSetWindowLabel

Matthew Fulmer wrote:
> /bin/sh /home/matthewf/squeak/vm/hydravm-trunk-base/unixbuild/libtool --mode=link gcc -g -O2 -fomit-frame-pointer -DLSB_FIRST=1    -export-dynamic -R/usr/local/lib -o squeak vm/vm.a FilePlugin/FilePlugin.a SocketPlugin/SocketPlugin.a disabledPlugins.o version.o -lutil -ldl -lm -lnsl   vm/vm.a
> gcc -g -O2 -fomit-frame-pointer -DLSB_FIRST=1 -o squeak disabledPlugins.o version.o -Wl,--export-dynamic  vm/vm.a FilePlugin/FilePlugin.a SocketPlugin/SocketPlugin.a -lutil -ldl -lm -lnsl vm/vm.a -Wl,--rpath -Wl,/usr/local/lib
> vm/vm.a(gnu-interp.o): In function `primitiveGetWindowLabel':
> /home/matthewf/squeak/vm/hydravm-trunk-base/unixbuild/vm/gnu-interp.c:15141: undefined reference to `ioGetWindowLabel'
> vm/vm.a(gnu-interp.o): In function `primitiveSetWindowLabel':
> /home/matthewf/squeak/vm/hydravm-trunk-base/unixbuild/vm/gnu-interp.c:18770: undefined reference to `ioSetWindowLabelOfSize'
> collect2: ld returned 1 exit status

These are support functions that are currently not implemented in the
Unix/Mac VMs (we use them to get/set the main window title directly).
Here is how to stub them (best done in sqUnixMain.c):

char* ioGetWindowLabel(void) {return "";}
sqInt ioSetWindowLabelOfSize(void* lbl, sqInt size) {return 0;}

This should do the trick.

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

ioGetWindowLabel/ioSetWindowLabel (was Re: How to use Croquet VMMaker)

Bert Freudenberg
On Feb 5, 2008, at 8:15 , Andreas Raab wrote:

> ioGetWindowLabel/ioSetWindowLabel
>
> These are support functions that are currently not implemented in  
> the Unix/Mac VMs (we use them to get/set the main window title  
> directly). Here is how to stub them (best done in sqUnixMain.c):
>
> char* ioGetWindowLabel(void) {return "";}
> sqInt ioSetWindowLabelOfSize(void* lbl, sqInt size) {return 0;}
>
> This should do the trick.

Actually, I need to implement these for X11 anyway. Expect this to  
soon be supported in the OLPC branch. Unless someone beats me to it  
of course :)

- Bert -