libIrrlicht.a cannot be found

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
Snicker
Posts: 7
Joined: Tue Aug 01, 2006 9:10 am

libIrrlicht.a cannot be found

Post by Snicker »

Hi,
i download the Irrlicht Engine SDK version 1.0 and use the Dev-C++ 4 compiler.

In the tutorial stand that you have to include the libIrrlicht.a. Under Project Options i write the right way to finde the libIrrlicht.a file.
I use Windows XP and in the folder Win32-gcc exist a libIrrlicht.a file but this file is only 3 KB big. My compiler give me also the message:
"Resource file Resource file D:\Irrlicht\irrlicht-1.0\lib\Win32-gcc\libIrrlicht.a does not exist. Check in Project Options."

So i try to use the Linux Version (5,51MB). But i have the same problem.
"Resource file Resource file D:\Irrlicht\irrlicht-1.0\lib\Linux\libIrrlicht.a does not exist. Check in Project Options."

The path to the ibIrrlicht.a is correct. I checked it several times
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

It's not a ressource file, it's a linker file or library. The size is ok because windows uses dlls which contain the actual code, the .a and .lib files simply contain the interface.
Snicker
Posts: 7
Joined: Tue Aug 01, 2006 9:10 am

Post by Snicker »

but what can i do?
I tried also to open the lib file but without any success. I don´t see what i do wrong
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

3 kb is how big the windows lib file is supposed to be. And you can't use the linux file in windows.

In Devc go to -Project, Project Options-Parameters and add the library:
Image

The examples that come with the engine already got it included, but you can look for it in case your path changes.
Snicker
Posts: 7
Joined: Tue Aug 01, 2006 9:10 am

Post by Snicker »

i don´t know what i make wrong. So i make some pictures of the way i try to include the libIrrlicht.a file.
Image

Image

Image
[/url]

and under Resource stand:
D:\PROGRA~1\DEV-C_~1\Bin\windres: D:\\Irrlicht\\IRRLIC~1.0\\lib\\WIN32-~1\\LIBIRR~1.A:1: parse error

Where is the error?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I think you have a much too old dev-cpp. You need version 4.9.9.2 or later (aka dev-c++ 5.beta). Other versions won't work.
Snicker
Posts: 7
Joined: Tue Aug 01, 2006 9:10 am

Post by Snicker »

thanks!!
Snicker
Posts: 7
Joined: Tue Aug 01, 2006 9:10 am

Post by Snicker »

i donwload the new version of Dev C++ but know i have i another problem
Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Did you download the "all wistles enclosed" package, or just the IDE?
Snicker
Posts: 7
Joined: Tue Aug 01, 2006 9:10 am

Post by Snicker »

you are right. I download the wrong Dev version
now the compiler works but i get this error message:


Compiler: Default compiler
Building Makefile: "D:\Irrlicht\irrlicht-1.0\Testarbeit\Makefile.win"
Führt make... aus
make.exe -f "D:\Irrlicht\irrlicht-1.0\Testarbeit\Makefile.win" all
g++.exe -c test.c -o test.o -I"D:/Programme/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"D:/Programme/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Programme/Dev-Cpp/include/c++/3.4.2/mingw32" -I"D:/Programme/Dev-Cpp/include/c++/3.4.2" -I"D:/Programme/Dev-Cpp/include"

test.c:42:22: irrlicht.h: No such file or directory
test.c:53: error: expected namespace-name before ';' token
test.c:53: error: `<type error>' is not a namespace
test.c:64: error: expected namespace-name before ';' token
test.c:64: error: `<type error>' is not a namespace
test.c:65: error: expected namespace-name before ';' token
test.c:65: error: `<type error>' is not a namespace
test.c:66: error: expected namespace-name before ';' token
test.c:66: error: `<type error>' is not a namespace
test.c:67: error: expected namespace-name before ';' token
test.c:67: error: `<type error>' is not a namespace
test.c:68: error: expected namespace-name before ';' token
test.c:68: error: `<type error>' is not a namespace
test.c: In function `int main()':
test.c:109: error: `IrrlichtDevice' undeclared (first use this function)
test.c:109: error: (Each undeclared identifier is reported only once for each function it appears in.)

test.c:109: error: `device' undeclared (first use this function)
test.c:110: error: `video' has not been declared
test.c:110: error: `EDT_SOFTWARE2' undeclared (first use this function)
test.c:110: error: `dimension2d' undeclared (first use this function)
test.c:110: error: `s32' undeclared (first use this function)
test.c:111: error: `createDevice' undeclared (first use this function)
test.c:126: error: `IVideoDriver' undeclared (first use this function)
test.c:126: error: `driver' undeclared (first use this function)
test.c:127: error: `ISceneManager' undeclared (first use this function)
test.c:127: error: `smgr' undeclared (first use this function)
test.c:128: error: `IGUIEnvironment' undeclared (first use this function)
test.c:128: error: `guienv' undeclared (first use this function)
test.c:134: error: `rect' undeclared (first use this function)
test.c:134: error: expected primary-expression before "int"
test.c:146: error: `IAnimatedMesh' undeclared (first use this function)
test.c:146: error: `mesh' undeclared (first use this function)
test.c:147: error: `IAnimatedMeshSceneNode' undeclared (first use this function)
test.c:147: error: `node' undeclared (first use this function)
test.c:159: error: `EMF_LIGHTING' undeclared (first use this function)
test.c:160: error: `scene' has not been declared
test.c:160: error: `EMAT_STAND' undeclared (first use this function)
test.c:168: error: `vector3df' undeclared (first use this function)
test.c:185: error: `SColor' undeclared (first use this function)

make.exe: *** [test.o] Error 1

Ausführung beendet
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

So I assume the Irrlicht provided projects are working? You should configure your project such that the compiler finds Irrlicht's include directory and also the lib directory for linking later on. This shold be covered in the how-tos for compiler setup with Irrlicht. Or use some common sense to fill the dialog boxes according to the errors reported.
Snicker
Posts: 7
Joined: Tue Aug 01, 2006 9:10 am

Post by Snicker »

it works know!! Thank you for the help! :D
Post Reply