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

Hernán Morales Durand hernan.morales at gmail.com
Mon Nov 14 05:18:57 UTC 2016


Hi Nicolas

2016-11-13 16:43 GMT-03:00 Nicolas Cellier <
nicolas.cellier.aka.nice at gmail.com>:

>
> Hi Hernan,
> then that's going to be a problem:
>
> See https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/
> 9c44322e2469eef8d7c1bb57c7acd5a6795dfb1b
>
>
I understand.


> 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/
>

Didn't found the MinGW + DirectX headers download. I read at some point
DirectX libs were removed from MinGW so latest releases don't include such
headers anymore.
However I found some other links which contains extracted headers:

https://sourceforge.net/projects/mingwdx/
https://github.com/lifthrasiir/w32api-directx-standalone
http://liballeg.org/download.html

I guess I can try to check following some guidelines like this one :
http://blog.fourthwoods.com/2011/08/11/setting-up-mingw-for-directx/


> 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?
>
>
Ok, I will let you know how it goes.

Cheers,

Hernán




> 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/20161114/409581eb/attachment-0001.html>


More information about the Vm-dev mailing list