[solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

[solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

I'm assuming I must build a dll for 1.9?
I've opened VS2022 and had no problem opening the 17.0.sln.
I'm just missing the directx9.h file. That was the one error and several warnings.
I don't really want to install the 7.1 SDK. Isn't it out-dated?
So... Is it possible to upgrade it? Somehow?
Last edited by thenewkgb on Mon Feb 19, 2024 8:34 am, edited 2 times in total.
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

I do apologise. My eagerness and impatience. I would imagine upgrading would take many, many, many, many, many, many hours to complete. Why don't I follow others, readmes and instructions and... Really all that's stopping me is the missing shader.h file.

The project builds Debug as a preference. So this is the output:

Code: Select all

error C1083: Cannot open include file: 'd3dx9shader.h': No such file or directory
warning C4267: 'argument': conversion from 'size_t' to 'irr::u32', possible loss of data
warning C4996: 'GetVersionExA': was declared deprecated
warning C4267: '=': conversion from 'size_t' to 'irr::u32', possible loss of data
1 failed
As a thought, would it be easier to upgrade to SDK 8.1 as a start?

I don't want to insult anyone :oops:
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by CuteAlien »

Sorry, Irrlicht needs the 7.1 SDK because it used D3D9 and later Microsoft SDK's no longer include that. If you only work with OpenGL you can comment out the line with #define _IRR_COMPILE_WITH_DIRECT3D_9_ in IrrComileConfig.h
Or if you don't want to modify Irrlicht headers you can also modify the project file (or Makefile if you work with that) to pass the define NO_IRR_COMPILE_WITH_OPENGL_.

Also 7.1 SDK doesn't conflict with newer SDK's. It's just another library. So don't worry too much about installing it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

I did notice I didn't need 7.1 in the end. I did have to install DirectX SDK 2010 to find the right header https://www.microsoft.com/en-gb/downloa ... px?id=6812
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

A bit more info:

I used VS2022 and installed Desktop development with C++, Game development with C++, Mobile development with C++ (a bit unnecessary), and installed the latest .NET Framework 4.8.1 SDK component. Also I believe the Windows 11 SDK option needed ticking.

It works basically.
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

So is the DirectX 2010 download the same as the SDK 7.1?

Does the SDK have more in it but Irrlicht only needs the graphics part?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by CuteAlien »

Good question... please write once you figured it out :-) From what I get from Microsoft website it sounds like legacy Direct X SDK is a bit update version compared to 7.1 SDK. But no guarantees.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

I had problems with the 7.1 .NET 4 installation. Part of .NET was already present both times on my system and couldn't install everything.

I would have liked to use the latest 4.8.1 and use backwards compatibility.

I'm a little cautious of using Irrlicht because it uses old libraries. Sorry about that.

(edit)
I guess games like Half-Life and Unreal still make me smile. Why Irrlicht is any different in those regards...
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

If I download Visual Studio and install Desktop workload and also check .NET 4.8.1 - using the 1.8.5 version from your main page... No work.

This was a post about the 1.9 trunk but I thought I'd try "a quick and dirty set up".

I realised that perhaps I like things working with as little effort as required. My flat is fairly minimal as well! It annoys me that while I installed 2022 un-ticking things that a SQL component was installed.
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

Okay. It works. With the 1.9 trunk. Any differences in the 1.8.5 and 1.9?

No 7.1 was installed (only 4.8.1)
I used the DX 2010 installer
I used desktop c++ workload

What's different with the 10/11/12.sln and the vc17.sln?
thenewkgb
Posts: 59
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by thenewkgb »

CuteAlien wrote: Sun Feb 18, 2024 5:15 pm Sorry, Irrlicht needs the 7.1 SDK because it used D3D9 and later Microsoft SDK's no longer include that.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Post by CuteAlien »

Tons of differences between 1.8.5 and 1.9, but most stuff works the same.
The .sln files are for different Visual Studio versions. Use the latest unless you have a specific reason to use an older VS (like developing for Window 98 or something).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply