How to install/link Irrlicht on Windows?

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
howtoinstall
Posts: 3
Joined: Tue Aug 20, 2019 4:02 pm

How to install/link Irrlicht on Windows?

Post by howtoinstall »

I am trying to use Irrlicht on Windows 8.1 using either CLion or Code::Blocks but I cannot seem to link the library! There is no tutorial on it anywhere that works, the "wiki" section of the irrlicht official website is a dead link and I am just going around in circles. Can ANYBODY give me a way to be able to code with Irrlicht C++ on windows?

I have tried to link it in Code::Blocks but I either get a "Irrlicht.dll is missing" or "ld: -lIrrlicht library does not exist"
Following any these tutorials does not work, I have followed and redone all of these and some more that I do not have open atm AT LEAST twice:
http://www.zhieng.com/setting-up-irrlicht-project/
https://www.youtube.com/watch?v=LCexJJydTpQ
https://www.youtube.com/watch?v=cs4wvWU_5kA
https://www.youtube.com/watch?v=HZ6QBAV9krI

AND probably very important thing to add: my "C:\Users\defaultUser\Desktop\irrlicht-1.8.4\lib\Win32-gcc\" is empty. Most answers and tutorials on how to fix/set up Irrlicht on Windows mentions this folder and some files. I do not have them. They do not exist in latest download.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to install/link Irrlicht on Windows?

Post by CuteAlien »

Yeah, sorry about Wiki. First thing is - on Code::Blocks you should compile Irrlicht yourself. Even if there is a dll or lib for Code::Blocks somewhere it likely won't work as there have been incompatiblities between different gcc versions on Windows and the Irrlicht build was rahter old. The easiest way to do that is to open the BuildAllExamples.workspace in the examples folder. That can compile everything - Irrlicht + all examples. If you get any compile-errors while doing that please copy-paste them here into the forum and we'll figure out the next step (could be you have to install some more stuff).

Note you can also use VisualStudio on Windows which is not opensource but has at least cost-free versions. For that one you likely have to install an old Windows SDK.

Can't help with CLion as I never used that one.
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