Using Irrlicht.lib 32bit on windows7 64bit

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
Mercurial4
Posts: 2
Joined: Thu Sep 24, 2015 7:25 pm

Using Irrlicht.lib 32bit on windows7 64bit

Post by Mercurial4 »

I've followed the visual studio setup tutorial at http://irrlicht.sourceforge.net/docu/example001.html. I'm using visual studio 2015 community edition.

1. I've added the include folder to 'Include directories'.
2. I've added lib\Win32-visualstudio to 'Library directories'

When I tried building I was getting 'The program can't start because Irrlicht.dll is missing from your computer. Try reinstalling the program to fix this problem'.

I figured that the visual studio can't find the .dll so I:
- Added the <irrlicht-home>/bin/Win32-visualstudio directory to Library directories
- Added Irrlicht.dll to Linker -> Input -> Additional Dependencies

Now I'm getting:
LNK1107 invalid or corrupt file: cannot read at 0x2C0; File: Irrlicht.dll

My run configuration is Debug x86. Should I even be able to compile using 32bit lib/dll?

Thanks in advance
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Using Irrlicht.lib 32bit on windows7 64bit

Post by The_Glitch »

That's strange seems like corrupt memory or something, I'm using win 7 pro 64bit and the compiled 32 or 64 bit projects work fine for me.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Using Irrlicht.lib 32bit on windows7 64bit

Post by CuteAlien »

Start with the example project files coming with Irrlicht. Latest are VS2013, but VS should update them automatically.
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
Mercurial4
Posts: 2
Joined: Thu Sep 24, 2015 7:25 pm

Re: Using Irrlicht.lib 32bit on windows7 64bit

Post by Mercurial4 »

CuteAlien wrote:Start with the example project files coming with Irrlicht. Latest are VS2013, but VS should update them automatically.
Oh, I didn't know that examples are included. Thanks. They build just fine. The only thing needed to get em working is: Right click on project -> Configuration Properties -> General -> Platform Toolset -> <Your Visual Studio Version>
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Using Irrlicht.lib 32bit on windows7 64bit

Post by CuteAlien »

Yeah, that or install Windows7.1 SDK, that can be used with all VS versions. One of those things where I have no really good solution for - either Irrlicht.dll doesn't work with different VS versions or people have to install the Windows7.1 SDK.
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
soneguer
Posts: 1
Joined: Tue Oct 27, 2015 7:10 pm

Re: Using Irrlicht.lib 32bit on windows7 64bit

Post by soneguer »

the only thing you have to do is to undo the bin thing you've done and go to properties -> general -> output directory and there, put the bin->Win32 (or whatever it is) directory

it's something that should be posted on the tutorials
Post Reply