Irrlicht.dll doesn't exist on this computer?
Irrlicht.dll doesn't exist on this computer?
Hello everyone, just trying out Irrlicht.
I'm on Visual Studio 2010 on Windows 7 x64. I unzipped Irrlicht 1.7.1 somewhere and added its include and lib directories to my project configuration options. I am able to compile a tutorial example fine, but when I try to run it, I get something like "Irrlicht.dll doesn't exist on this computer".
I've used the Win32-visualstudio lib directory, when I use Win64 it doesn't link (seems like VS defaults to producing a 32-bit executable). Not sure what I'm supposed to do. If I copy Irrlicht.dll to the directory where my exe is built, it works fine, but surely I'm not supposed to do that all the time.
Thanks for your help.
I'm on Visual Studio 2010 on Windows 7 x64. I unzipped Irrlicht 1.7.1 somewhere and added its include and lib directories to my project configuration options. I am able to compile a tutorial example fine, but when I try to run it, I get something like "Irrlicht.dll doesn't exist on this computer".
I've used the Win32-visualstudio lib directory, when I use Win64 it doesn't link (seems like VS defaults to producing a 32-bit executable). Not sure what I'm supposed to do. If I copy Irrlicht.dll to the directory where my exe is built, it works fine, but surely I'm not supposed to do that all the time.
Thanks for your help.
Last edited by Dr_Asik on Wed Jun 02, 2010 2:22 am, edited 1 time in total.
Let me try to explain in simplified terms what is going on:Dr_Asik wrote:So I need to do this manually for any new Irrlicht project? Strange that wasn't mentioned in any of the tutorials.Nalin wrote:If this error occurs when you try to run the example, you most likely forgot to put the Irrlicht.dll file in the same folder as the example executables.
The pre-compiled Irrlicht that you can download was compiled for "dynamic" loading. That means all the Irrlicht code was compiled into a .dll file. The .lib file, which you link to, tells the program where all the Irrlicht functions are inside the .dll file. So, if you don't have the Irrlicht.dll somewhere where your program can find it, it fails to load, complaining about the missing file.
If you manually compile Irrlicht, you can do what is called a "static" compile. This means that no .dll file is created. All the code is compiled into the .lib file. When you link to the .lib file, it provides all the Irrlicht code. You can think of it as merging the .dll file inside your .exe file.
every programmer should know this. programming 101.Dr_Asik wrote:So I need to do this manually for any new Irrlicht project? Strange that wasn't mentioned in any of the tutorials.Nalin wrote:If this error occurs when you try to run the example, you most likely forgot to put the Irrlicht.dll file in the same folder as the example executables.
"Beginners HelpVirion wrote:every programmer should know this. programming 101.Dr_Asik wrote:So I need to do this manually for any new Irrlicht project? Strange that wasn't mentioned in any of the tutorials.Nalin wrote:If this error occurs when you try to run the example, you most likely forgot to put the Irrlicht.dll file in the same folder as the example executables.
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."
If I remember correctly if you run debug version from visual studio your dll has to be in the same folder as the sources, not sure tough, haven't seen Visual Studio in a long time
Working on game: Marrbles (Currently stopped).