I have done some test on irrlicht and need to send to my partner so that he can see the result.
I am using VS2008.
I give him the .exe inside Debug folder, Irrlicht.dll, and a folder containing mesh.
But he said he cannot run the .exe.
So how can I make my project run on someone else machine?
and also my project cannot compile in Release mode. the compiler said cannot find irrlicht.h, but it compiles just fine in debug mode. what should I do?
How to deploy/pack my irrlicht game ?
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
The folder with the exe , the meshes and the irrlicht.dll should be enough a few notes :
Make sure your code is loading the right path like :
./data/mesh.msh <- this is relative to the exe , where as
C:/Game/Data/Mesh.msh <- is not. make sure these are correct and not absolute paths .
Another spot to check is inside of the irr file : (if you are using one) use notepad (or any editor) and open the irr file and double check for static/absolute paths.
The other thing : When you set the folders / additional includes in VS its personal to each project UNLESS, you go to Tools -> Options -> and add the folders /include and /lib to the correct category. (note, the correct drop down value)
Otherwise switch to release mode, and add the folders and the lib file again to the release project, at the moment its only set in debug
hope this helps
Make sure your code is loading the right path like :
./data/mesh.msh <- this is relative to the exe , where as
C:/Game/Data/Mesh.msh <- is not. make sure these are correct and not absolute paths .
Another spot to check is inside of the irr file : (if you are using one) use notepad (or any editor) and open the irr file and double check for static/absolute paths.
The other thing : When you set the folders / additional includes in VS its personal to each project UNLESS, you go to Tools -> Options -> and add the folders /include and /lib to the correct category. (note, the correct drop down value)
Otherwise switch to release mode, and add the folders and the lib file again to the release project, at the moment its only set in debug
hope this helps
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere
That OR you can link to the static version of the MSVC runtimes and you shouldn't need to install MSVC on the target computer.
See Project Settings -> C++ -> Code Generation. Then change Runtime Library to Multithreaded Debug (or Multithreaded for the release build). This will lengthen linker times, but should allow other people to run the executable without needing the MSVC runtimes.
See Project Settings -> C++ -> Code Generation. Then change Runtime Library to Multithreaded Debug (or Multithreaded for the release build). This will lengthen linker times, but should allow other people to run the executable without needing the MSVC runtimes.
rogerborg wrote:Every time someone learns to use a debugger, an angel gets their wings.
I have change my linking set up in Tools->Options and compile in release mode.
two of my friend who don't have Visual Studio and Don't have Irrlicht can run without problem while other two will get this error message.
"can not start this application, because application setting is not correct. re-install the application may solve the problem".
what is wrong here?
two of my friend who don't have Visual Studio and Don't have Irrlicht can run without problem while other two will get this error message.
"can not start this application, because application setting is not correct. re-install the application may solve the problem".
what is wrong here?
You've probably got your compiler setup wrong so that it's using the MSVC runtime libraries. So either force all your users to install the MSVC runtimes or change your compiler settings to not require them. I think that's just Project Properties/C/C++/Code Generation/Runtime library which should be MT. There may be other options to change actually, can't remember! Google up some help on it if that doesn't do the trick.
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere