Errors when I compile any tutorial.
Errors when I compile any tutorial.
When I run it gives me an error stating that I do not have the irrlicht.dll on my computer. I have the code that talks about the .lib. Please help.
-
- Posts: 222
- Joined: Mon Jan 19, 2009 10:03 pm
- Location: Miami, Florida
- Contact:
This is bad! Never put stuff that dont belong there in the system folders. It'll just lead to hard-to-find bugs and generall wierdness in the end.grumpymonkey wrote:try putting a copy of it in C:\Windows\system
This is a much better suggestion. In fact, keep the dll there even when you'r not debugging, and it'll work then too!or in the directory of your program when you debug
Another problem I am now facing is, when I have anything load from the media folder (EG: "driver->getTexture("../../media/terrain-texture.jpg"));") it never loads it. Why is this? I put a copy of media in both debug and the man project folder. I tried adding the files to the solution. Nothing worked.
try remove the ../../ since you put the whole media folder together with your app.driver->getTexture("../../media/terrain-texture.jpg"));
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
What does the directory structure of your project look like? And in what directory does your program execute?
example:
example:
Code: Select all
main
|-source
|-gameroot [executes here]
|-media
|-??
It'sLuben wrote:What does the directory structure of your project look like? And in what directory does your program execute?
example:Code: Select all
main |-source |-gameroot [executes here] |-media |-??
Code: Select all
Test (project name)
|-Header Files
|-media
|-Resource Files (empty)
|-Source Files
-mainroot (Where the main code is)
Code: Select all
Unhandled exception at 0x00a480f8 in Test.exe: 0xC0000005: Access violation reading location 0x00000000.
Hi,
did you solved the Irrlicht.dll Error?
If not try this:
I always copy the .dll in my Projektname\Projektname\(place dll here) folder. Thats typical structure VC++ creates for my projects.
About Access violation, pls tell us the line and what code is in this line, and which tutorial do you exactly use?
MfG
Scarabol
did you solved the Irrlicht.dll Error?
If not try this:
I always copy the .dll in my Projektname\Projektname\(place dll here) folder. Thats typical structure VC++ creates for my projects.
About Access violation, pls tell us the line and what code is in this line, and which tutorial do you exactly use?
MfG
Scarabol
Irrlicht 1.7.2
Eclipse
Boost
Eclipse
Boost
The line of code is
And it is in the ISceneNode header file. The tutorial is the terrain rendering one. Also I fixed the .dll error by placing a copy in the debug folder.
Code: Select all
void setMaterialFlag(video::E_MATERIAL_FLAG flag, bool newvalue)
{
//This Line for (u32 i=0; i<getMaterialCount(); ++i)
getMaterial(i).setFlag(flag, newvalue);
}
For the scenery loading problem: depending on which IDE you use (I use Code::Blocks) the execution path of your executable might be set wrong. The Irrlicht template of Code::Blocks sets the initial execution directory (i.e. the "." directory for the executed program) to the Irrlicht folder you have chosen so that the example from the template can load all scenery. You could check the working directory with the "getWorkingDirectory" method of IFileSystem and print it to stdout so you know where you are.
Dustbin::Games on the web: https://www.dustbin-online.de/
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames