Giter Club home page Giter Club logo

Comments (7)

 avatar commented on April 27, 2024

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.

from devilution.

vladtepesch avatar vladtepesch commented on April 27, 2024

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

from devilution.

maltize avatar maltize commented on April 27, 2024

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

from devilution.

 avatar commented on April 27, 2024

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

from devilution.

heinermann avatar heinermann commented on April 27, 2024

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?

from devilution.

 avatar commented on April 27, 2024

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.

from devilution.

 avatar commented on April 27, 2024

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.

from devilution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.