Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

directx dependency #53

Closed
vladtepesch opened this issue Jun 22, 2018 · 7 comments
Closed

directx dependency #53

vladtepesch opened this issue Jun 22, 2018 · 7 comments

Comments

@vladtepesch
Copy link

In the prerequesites and compile instructions is nowhere mentioniond which directX version should be used or where can the headers obtainedat best.

MinGW seems to contain some dx headers but its dx9 and does not contain things like ddraw.h or dsound.h

Please add some advice and maybe consider to include dependencies to the procject.

@ghost
Copy link

ghost commented Jun 22, 2018

Mingw includes the libraries but doesn't include the header files, probably since it's been deprecated by Microsoft. You can grab them here:
https://github.com/wine-mirror/wine/blob/master/include/ddraw.h
https://github.com/wine-mirror/wine/blob/master/include/dsound.h
I'll add a link to the readme, but they won't be included directly.

@vladtepesch
Copy link
Author

The above files do not seem to be compatible (at least with the current MinGW32 Version)
which versions are you using?

I copied a few files from an older 64bit strawberry perl installation that seems to contain some older mingw headers. it seems to work (or at least to compile and the game at least starts)

It seems that there are some ambiguities that would be good to resolve in dokumentations

@maltize
Copy link

maltize commented Jun 25, 2018

On fresh Windows 10 install with mingw I had the same problem.
I was able to compile successfully by downloading 3 files from this location:
ftp://sccn.ucsd.edu/pub/LSL/lsl-dependencies/external_libs/EmbarcaderoXE/shared/4.4.0-msvc/include/d3dtypes.h
ftp://sccn.ucsd.edu/pub/LSL/lsl-dependencies/external_libs/EmbarcaderoXE/shared/4.4.0-msvc/include/ddraw.h
ftp://sccn.ucsd.edu/pub/LSL/lsl-dependencies/external_libs/EmbarcaderoXE/shared/4.4.0-msvc/include/dsound.h

@ghost
Copy link

ghost commented Jun 25, 2018

I think the original version of DX was DX4 if I am not mistaken. Technically , (My memorys is messy from this) DX7 might work be quick jump for something more modern.

Some conversion work is needed for DX9 to work. I think a DLL proxy is what I saw that accomplished this though.

I would rather re write the API to be in OGL...

@heinermann
Copy link
Contributor

According to some comment:

The legacy DirectSound8 headers are included in Windows SDK 7.0 or later. You don't need the legacy DirectX SDK for that.

Try getting the Windows SDK?

@ghost
Copy link

ghost commented Jul 7, 2018

I am wondering if this could help us. It seems a bit too old but I think it might be worth learning from it.

https://github.com/DXGLdotinfo/dxgl

Its a converter from DX to OGL.

@ghost
Copy link

ghost commented Aug 10, 2018

This is the fault of mingw directly as they no longer provide the header files but contain the libraries. I'll add some links to the readme eventually to the Windows SDK which contains them.

@ghost ghost closed this as completed Aug 10, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants