My gotchas, when building win32 vm

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

My gotchas, when building win32 vm

Igor Stasenko
 
Hello,

If you read the squeak-dev, i decided to build VM from the latest
sources available.
After few problems caused by changes in the trunk image, i finally was
able to load VMMaker and started building.

I followed instructions precisely (found in platforms/win32/docs):
- copied contents of  plaftorms/win32/build into <my own dir>
- set VMMaker output path to <my own dir>/src

- run from command line:
cd  <my own dir>
make

Here, the problems i ran into:

- OSProcess plugin for win32, seems like paths is not set correctly.

gcc -o ../.././obj/Win32OSProcessPlugin/Win32OSProcessPlugin.o -g
-mpentium -mwindows -fomit-frame-pointer -funroll-loops
-fschedule-insns2 -O2 -I. -Ic:/dx7sdk/include -I../.././src/vm
-I../../../platforms/Win32/vm -I../../../platforms/Cross/vm
-I../.././src/Win32OSProcessPlugin
-I../../../platforms/Win32/plugins/Win32OSProcessPlugin
-I../../../platforms/Cross/plugins/Win32OSProcessPlugin
-DWIN32_FILE_SUPPORT -DNO_SERVICE -DNO_STD_FILE_SUPPORT -DNDEBUG
-DLSB_FIRST -DVM_NAME=\"\" -DX86 -DSQUEAK_BUILTIN_PLUGIN -c
../.././src/Win32OSProcessPlugin/Win32OSProcessPlugin.c

../.././src/Win32OSProcessPlugin/Win32OSProcessPlugin.c:39:
FilePlugin.h: No such file or directory
../.././src/Win32OSProcessPlugin/Win32OSProcessPlugin.c:40:
SocketPlugin.h: No such file or directory

(i excluded it from build)

then, while linking:

- FT2Plugin (internal):  many undefined references to freetype library symbols
- FT2Plugin (external):  had to clean up a previously built .obj files
which left from my attempt of building internal plugin,  in order to
build .dll correctly

- QuicktimePlugin(internal): undefined references to  stQuicktimeXXXXX symbols.
(I remember that i had never ever got chances to make it working on my
win32 build. So i just excluded it from build).


Finally i having the built VM and two dlls: for FFI and freetype.  :)

--
Best regards,
Igor Stasenko AKA sig.
Reply | Threaded
Open this post in threaded view
|

Re: My gotchas, when building win32 vm

David T. Lewis
 
On Mon, Mar 08, 2010 at 05:45:39PM +0200, Igor Stasenko wrote:
>
> - OSProcess plugin for win32, seems like paths is not set correctly.

> ../.././src/Win32OSProcessPlugin/Win32OSProcessPlugin.c:39:
> FilePlugin.h: No such file or directory
> ../.././src/Win32OSProcessPlugin/Win32OSProcessPlugin.c:40:
> SocketPlugin.h: No such file or directory

OSPP includes SocketPlugin.h and FilePlugin.h, which are located in the
subdirectories for those two plugins (somewhere under Cross). You can
either copy them into the Win32OSProcessPlugin subdirectory by hand, or
fix the makefile to add some suitable "-I" flag (look in platforms/unix
for an example).

Be aware that OSPP for win32 is not fully functional compared to the unix
version, and also has a conflict with respect to the file handle registry
in the win32 FilePlugin handle registry (on win32, OSPP cannot reference
handles that are not created by FilePlugin, as needs for pipe handles etc).

> (i excluded it from build)

OSPP is not normally distributed with the windows VM, so unless you are
building it for your own purposes, you can exclude it.

Dave