Problems with the tutorial files

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
wicash
Posts: 5
Joined: Mon May 13, 2019 9:01 pm

Problems with the tutorial files

Post by wicash »

Hello,
Right now I'm loading the tutorial files into Visual Studio 2019. I can also build them without errors, but when I start the applications from tutorial 1 & 2 I can't see anything. The applicaton built from tutorial 1 instantly closes and the application built from tutorial 2 only shows a grey screen (see here https://i.imgur.com/4LqzRhV.png). Should I get an older version of Visual Studio or does anyone have an idea what I'm doing wrong?
Thanks in advance
CuteAlien
Admin
Posts: 9652
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problems with the tutorial files

Post by CuteAlien »

There's usually also a console screen. Is it there and is there any info on that?
Which Irrlicht version are you using, Irrlicht 1.8 or Irrlicht from svn?

I have to admit I haven't installed VS 2019 yet, I'll have to try that soon.
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
wicash
Posts: 5
Joined: Mon May 13, 2019 9:01 pm

Re: Problems with the tutorial files

Post by wicash »

Thanks for the fast reply. Yes I downloaded the 1.8 Irrlicht version. The console window just says that the program ran successfully (code 1).
Seven
Posts: 1030
Joined: Mon Nov 14, 2005 2:03 pm

Re: Problems with the tutorial files

Post by Seven »

I just downloaded a fresh copy of Irrlicht 1.8.4 and unzipped it.
opened the BuildAllExamples_vc12.sln in visual studio 2019
retargeted the platform toolset to Visual Studio 2019 (v142)
recompiled all and ran the examples with no issues....
wicash
Posts: 5
Joined: Mon May 13, 2019 9:01 pm

Re: Problems with the tutorial files

Post by wicash »

Are you using Windows 7, Seven? I'm using Windows 10 and if I'm doing what you are doing VS tells me to install Windows 7.1 SDK.
Seven
Posts: 1030
Joined: Mon Nov 14, 2005 2:03 pm

Re: Problems with the tutorial files

Post by Seven »

windows 10 here too.

the step you need is to retarget the platform toolset to Visual Studio 2019 (v142)
in the visual studio, open the solution and then select all of the projects (001 through meshconverter) (you can do the normal windows select one and then hold shift key and select the last one)
then right click to open the properties pages
goto the 'general' section and select the 'platform toolset' drop down.
select whatever windows sdk you have installed (in my case visual studio 2019 (v142))
save all of that and then rebuild the solution.

make sure after the rebuild you select (right click) one of the projects and set it as the 'startup project"
now it should all run fine.
Seven
Posts: 1030
Joined: Mon Nov 14, 2005 2:03 pm

Re: Problems with the tutorial files

Post by Seven »

Image
wicash
Posts: 5
Joined: Mon May 13, 2019 9:01 pm

Re: Problems with the tutorial files

Post by wicash »

Thank you Seven. It's working on my machine now.
Seven
Posts: 1030
Joined: Mon Nov 14, 2005 2:03 pm

Re: Problems with the tutorial files

Post by Seven »

No worries at all. Glad I could help.

What do you think of the engine so far?
wicash
Posts: 5
Joined: Mon May 13, 2019 9:01 pm

Re: Problems with the tutorial files

Post by wicash »

Still not done with all the tutorials, but so farm I'm having a blast playing around with it!
Post Reply