Redistribution Error

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
ck123
Posts: 5
Joined: Wed May 24, 2006 5:50 am

Redistribution Error

Post by ck123 »

I tried to redistribute some release mode demos I made with Irrlicht and an error came up on every computer Ive tried it on. I included the exe built in release mode, the assets, and the .dll file. When I run it on my PC it works fine, but on other PCs an error message comes up saying The application could not run, reinstalling the application may fix the problem. Are there any requirements for running Irrlicht, or has anyone run across this problem and has a solution for me? Thanks.
andrei25ni
Posts: 326
Joined: Wed Dec 14, 2005 10:08 pm

Post by andrei25ni »

Hello.

Have you tried running the Irrlicht demos on those 'other' computers ?
If they work, it means it's something wrong with your code. By the way, for what OS are they made ?
Are you sure you included *ALL* the necessary files ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You should check which dlls are used by your app. The error you mentioned is due to a missing library of some kind. There are apps to print the required dlls. I had those problems once when an additional lib was built in debug mode (and thus debug libraries of all kinds were required). Or you have managed code enabled which would require .net dlls.
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

http://www.dependencywalker.com/

This free tool helps a lot with all kinds of DLL issues, like missing DLLs and/or missing functions in DLLs. It tells you what component misses what, so that you can collect the missing dependencies.

In your case your error message should tell you what DLL is missing. If you use Visual C++ 2005 (Express) you need to actually install the application on other computers. Just copying the folder won't do it anymore.
See here for instructions for how to do this correctly: http://blogs.msdn.com/nikolad/archive/2 ... 60368.aspx
No offense :)
ck123
Posts: 5
Joined: Wed May 24, 2006 5:50 am

Post by ck123 »

Allright, I just tried doing a simple hello world app, and apparently its my visual studio, and not anything to do with irrlicht. Thanks for the help everyone.
Post Reply