[Vm-dev] DirectX superseded by mingw provided files?

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sun Nov 13 19:43:32 UTC 2016


Hi Hernan,
then that's going to be a problem:

See
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/9c44322e2469eef8d7c1bb57c7acd5a6795dfb1b

The directx 9 sdk is not even redistributable, so we might have to nuke it
from the repository sooner or later.
And we can't either download it easily, it seems like Microsoft has an
aggressive deprecation policy (maybe related to the number of security
issues that they previously distributed).
I've tried more modern SDK to compile 64bits version with MSVC, but the DX9
support was not really working.
In longer term, we could try and port to a more modern SDK, but that's
likely a more involved job...

https://github.com/godotengine/godot/issues/4914 suggests that direct-x
support is optional in Mingw, so some builds have it, some not...
See
https://sourceforge.net/p/mingw-w64/code/HEAD/tree/trunk/mingw-w64-headers/direct-x/
I'm not sure that I understand all this mess, but could we try and see if
we can fix the mingw version accessible via Msys before reverting the
change?

Cheers

2016-11-13 19:54 GMT+01:00 Hernán Morales Durand <hernan.morales at gmail.com>:

>
> I have the latest update of MinGW with all libraries and tools installed.
> Which "provided files" superseded the DirectX headers in the VM?
>
> With help from Esteban I am trying to compile the Windows VM from this
> repo: https://github.com/estebanlm/opensmalltalk-vm branch
> "merge-with-pharo-win32”
>
> In \opensmalltalk-vm\build.win32x86\common\Makefile the include directive
> does NOT include the DirectX definitions on purpose:
>
> ############################################################
> #################
> # DirectX definitions - NOT USED - superseded by mingw provided files
> #
> DXDIR:=     $(PLATDIR)/win32/third-party/dx9sdk/Include
>
> INCLUDES:= -I. -I$(VMSRCDIR) -I$(WIN32DIR) -I$(CROSSDIR) $(XINC)
>
> Compiling with MSYS
>
> opensmalltalk-vm/build.win32x86/pharo.cog.spur/mvm -f
>
> Causes compilation to fail finding dinput.h
>
> ../../platforms/win32/vm/sqWin32DirectInput.c:37:20: dinput.h: No such
> file or directory
> ...
> make: *** [build/vm/sqWin32DirectInput.o] Error 1
>
>
>
> Now I added the DXDIR include to "fix" the issue:
>
> INCLUDES:= -I. -I$(VMSRCDIR) -I$(WIN32DIR) -I$(CROSSDIR) -I$(DXDIR) $(XINC)
>
>
> Cheers,
>
> Hernán
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20161113/079ec76c/attachment-0001.html>


More information about the Vm-dev mailing list