I'm new, so please forgive my ignorance. I'm trying to set up irrlicht on Kubuntu 7.04. I downloaded the source, tried make. Came out with many errors. Installed a bunch of dependencies via apt. Tried make again, this time there were no errors, just a confirmation that a library was copied, but nothing at all showed up in bin/Linux, like it should have. A library did show up in lib, but nothing in bin. Being new, I wasn't sure at all if I've even managed to compile it. I followed some instructions I found on the net to set up eclipse to use irrlicht and eclipse with c++.
http://www.sensobots.de/Documentation/T ... linux.html
I tried the helloworld tutorial, and nothing works. I did set up the include path and librarys.
So now to my question, how can I be sure I have even successfully complied irrlicht, so I know if my problem is my eclipse set up, or my irrlicht setup ? I can compile and use simple c++ programs, but I haven't done so via eclipse yet, so gcc isn't the problem, but eclipse might be.
Any pointers in the right direction would be appreciated. It's probably something simple I missed, but I don't even know what part of the problem to start attacking first.
So, how so I make sure I've compiled irrlicht correctly first, and then, has anyone had any luck with using kdevelope with irrlicht ? I'm not sure I'm an eclipse sort of guy, I'm much more comfortable with vim, there is too much going on with eclipse for me to figure much out at the moment, I'm hoping kdevelope will be easier.
I had thought a short helloworld type program that uses irrlicht would at least tell me if I compiled it correctly or not, but I couldn't find an example of one that wasn't run from a complex ide.
Well, sorry to be long winded, and thanks much for any help....
David
Linux install set up compilation problems....
thank you....
I did use the ./buildAllExamples.sh . That did put a bunch of binarys in bin, but when I click on them, none of them work, except helloworld works a bit, a new window opens up, but the expected 3d model isn't in it. The others don't work at all....
I did try to run a short simple c++ program in eclipse, just to see if it would work. It works just fine when I build it in a konsole via gcc. It didn't work, there were many errors. Here they are.
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
I googled this a bit, and came up with other people who have had the same error, only not with eclipse. They just edited out the wacom table lines in Xorg.conf, and that seemed to fix it. I'm going to give that a shot.
Has anyone else run across those errors while trying to compile a simple program with eclipse ?
Thanks much..
David
I did try to run a short simple c++ program in eclipse, just to see if it would work. It works just fine when I build it in a konsole via gcc. It didn't work, there were many errors. Here they are.
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 147
Minor opcode: 3
Resource id: 0x0
Failed to open device
I googled this a bit, and came up with other people who have had the same error, only not with eclipse. They just edited out the wacom table lines in Xorg.conf, and that seemed to fix it. I'm going to give that a shot.
Has anyone else run across those errors while trying to compile a simple program with eclipse ?
Thanks much..
David
Thank you...
Hi, I did get the examples working, via the command line. All of them. So that means I have irrlicht set up correctly (I think), and now my problem is finding a way to set up eclipse or kdevelop correctly. When I build the examples I got these error messeges. Does anything jump out at you as a problem that needs fixing ? (errors at the end, things seemed to work anyway, I got the 3d model with the hello world program anyway, just from the command line, not from within eclipse.)
Thank you very much for you help. Sorry for the long messege, but I thought more info was better than less.
bun@desktop:~/downloaded/irrlicht-1.3.1/irrlicht-1.3.1/examples$ ./buildAllExamples.sh
Building 01.HelloWorld
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/01.HelloWorld -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 02.Quake3Map
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/02.Quake3Map -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 03.CustomSceneNode
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/03.CustomSceneNode -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 04.Movement
Makefile:34: Cleaning...
Makefile:30: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/04.Movement -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 05.UserInterface
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/05.UserInterface -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 06.2DGraphics
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/06.2DGraphics -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 07.Collision
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/07.Collision -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 08.SpecialFX
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/08.SpecialFX -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 09.Meshviewer
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/09.Meshviewer -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 10.Shaders
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/10.Shaders -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 11.PerPixelLighting
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/11.PerPixelLighting -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 12.TerrainRendering
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/12.TerrainRendering -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 13.RenderToTexture
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/13.RenderToTexture -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 14.Win32Window
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/14.Win32Window -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
main.cpp:6:2: error: #error Windows only example
make: *** [all_linux] Error 1
Building 15.LoadIrrFile
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/15.LoadIrrFile -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 16.Quake3MapShader
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/16.Quake3MapShader -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building Demo
Makefile:37: Cleaning...
g++ -O3 -ffast-math -I../../include -I/usr/X11R6/include -c -o CDemo.o CDemo.cpp
In file included from CDemo.cpp:4:
CDemo.h:21:91: error: irrKlang.h: No such file or directory
CDemo.h:65: error: ‘audio’ has not been declared
CDemo.h:65: error: ISO C++ forbids declaration of ‘ISoundEngine’ with no type
CDemo.h:65: error: expected ‘;’ before ‘*’ token
CDemo.h:66: error: ‘audio’ has not been declared
CDemo.h:66: error: ISO C++ forbids declaration of ‘ISoundSource’ with no type
CDemo.h:66: error: expected ‘;’ before ‘*’ token
CDemo.h:67: error: ‘audio’ has not been declared
CDemo.h:67: error: ISO C++ forbids declaration of ‘ISoundSource’ with no type
CDemo.h:67: error: expected ‘;’ before ‘*’ token
CDemo.cpp: In constructor ‘CDemo::CDemo(bool, bool, bool, bool, bool, irr::video::E_DRIVER_TYPE)’:
CDemo.cpp:14: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In destructor ‘virtual CDemo::~CDemo()’:
CDemo.cpp:28: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::run()’:
CDemo.cpp:74: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::shoot()’:
CDemo.cpp:670: error: ‘ballSound’ was not declared in this scope
CDemo.cpp:671: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::createParticleImpacts()’:
CDemo.cpp:718: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp:720: error: ‘audio’ has not been declared
CDemo.cpp:720: error: ‘sound’ was not declared in this scope
CDemo.cpp:721: error: ‘impactSound’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::startIrrKlang()’:
CDemo.cpp:748: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp:748: error: ‘audio’ has not been declared
CDemo.cpp:755: error: ‘audio’ has not been declared
CDemo.cpp:755: error: ‘snd’ was not declared in this scope
CDemo.cpp:767: error: ‘ballSound’ was not declared in this scope
CDemo.cpp:768: error: ‘impactSound’ was not declared in this scope
make: *** [CDemo.o] Error 1
Thank you very much for you help. Sorry for the long messege, but I thought more info was better than less.
bun@desktop:~/downloaded/irrlicht-1.3.1/irrlicht-1.3.1/examples$ ./buildAllExamples.sh
Building 01.HelloWorld
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/01.HelloWorld -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 02.Quake3Map
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/02.Quake3Map -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 03.CustomSceneNode
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/03.CustomSceneNode -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 04.Movement
Makefile:34: Cleaning...
Makefile:30: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/04.Movement -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 05.UserInterface
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/05.UserInterface -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 06.2DGraphics
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/06.2DGraphics -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 07.Collision
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/07.Collision -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 08.SpecialFX
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/08.SpecialFX -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 09.Meshviewer
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/09.Meshviewer -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 10.Shaders
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/10.Shaders -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 11.PerPixelLighting
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/11.PerPixelLighting -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 12.TerrainRendering
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/12.TerrainRendering -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 13.RenderToTexture
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/13.RenderToTexture -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 14.Win32Window
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/14.Win32Window -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
main.cpp:6:2: error: #error Windows only example
make: *** [all_linux] Error 1
Building 15.LoadIrrFile
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/15.LoadIrrFile -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building 16.Quake3MapShader
Makefile:33: Cleaning...
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/16.Quake3MapShader -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
Building Demo
Makefile:37: Cleaning...
g++ -O3 -ffast-math -I../../include -I/usr/X11R6/include -c -o CDemo.o CDemo.cpp
In file included from CDemo.cpp:4:
CDemo.h:21:91: error: irrKlang.h: No such file or directory
CDemo.h:65: error: ‘audio’ has not been declared
CDemo.h:65: error: ISO C++ forbids declaration of ‘ISoundEngine’ with no type
CDemo.h:65: error: expected ‘;’ before ‘*’ token
CDemo.h:66: error: ‘audio’ has not been declared
CDemo.h:66: error: ISO C++ forbids declaration of ‘ISoundSource’ with no type
CDemo.h:66: error: expected ‘;’ before ‘*’ token
CDemo.h:67: error: ‘audio’ has not been declared
CDemo.h:67: error: ISO C++ forbids declaration of ‘ISoundSource’ with no type
CDemo.h:67: error: expected ‘;’ before ‘*’ token
CDemo.cpp: In constructor ‘CDemo::CDemo(bool, bool, bool, bool, bool, irr::video::E_DRIVER_TYPE)’:
CDemo.cpp:14: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In destructor ‘virtual CDemo::~CDemo()’:
CDemo.cpp:28: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::run()’:
CDemo.cpp:74: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::shoot()’:
CDemo.cpp:670: error: ‘ballSound’ was not declared in this scope
CDemo.cpp:671: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::createParticleImpacts()’:
CDemo.cpp:718: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp:720: error: ‘audio’ has not been declared
CDemo.cpp:720: error: ‘sound’ was not declared in this scope
CDemo.cpp:721: error: ‘impactSound’ was not declared in this scope
CDemo.cpp: In member function ‘void CDemo::startIrrKlang()’:
CDemo.cpp:748: error: ‘irrKlang’ was not declared in this scope
CDemo.cpp:748: error: ‘audio’ has not been declared
CDemo.cpp:755: error: ‘audio’ has not been declared
CDemo.cpp:755: error: ‘snd’ was not declared in this scope
CDemo.cpp:767: error: ‘ballSound’ was not declared in this scope
CDemo.cpp:768: error: ‘impactSound’ was not declared in this scope
make: *** [CDemo.o] Error 1
Thanks much...
Thank you for all your help. I will get irrkang installed, and see if that does the trick for me.
On another note, can you reccemend an IDE to use with irrlicht, I prefer to use linux, but I can use winXP if I have to. I did try to set up visual studio express, but was unable to get that working either. (I didn't try all that hard, I'm not a microsoft fan, and don't really want to use their stuff.)
I'll post a new thread asking for advice I guess, but I am interested in your opinion.
I hope to write a game with irrlicht that will run on windows and linux. It'll be a fps sort of 3D game, I hope. (Mostly just want to learn C++ and irrlicht programing.) It's not exactly a business, just a hobby project.
I've tried eclipse, but it seems bloated and slow, and the slow part drives me nuts.....have you used any other linux based IDE ?
David
On another note, can you reccemend an IDE to use with irrlicht, I prefer to use linux, but I can use winXP if I have to. I did try to set up visual studio express, but was unable to get that working either. (I didn't try all that hard, I'm not a microsoft fan, and don't really want to use their stuff.)
I'll post a new thread asking for advice I guess, but I am interested in your opinion.
I hope to write a game with irrlicht that will run on windows and linux. It'll be a fps sort of 3D game, I hope. (Mostly just want to learn C++ and irrlicht programing.) It's not exactly a business, just a hobby project.
I've tried eclipse, but it seems bloated and slow, and the slow part drives me nuts.....have you used any other linux based IDE ?
David
-
hybrid
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
My IDE is vim+Makefiles+gdb
question is: What do you want the IDE to do? Syntax highlighting is standard for almost all editors besides notepad. Project management is not really useful (IMHO) because you cannot give the project to someone else. Makefiles will do the same and are pretty portable (The Irrlicht Makefile does its job under Windows, too). Code completion is also possible with most programmer editors, but C++ is not that easily parsable and hence this does not work that good, compared with Java.
You should search for a good editor by selecting your requirements carefully. The rest is done with some additional files and some Linux tools, don't rely on those fancy GUI stuff, it's just useless time consumption.
question is: What do you want the IDE to do? Syntax highlighting is standard for almost all editors besides notepad. Project management is not really useful (IMHO) because you cannot give the project to someone else. Makefiles will do the same and are pretty portable (The Irrlicht Makefile does its job under Windows, too). Code completion is also possible with most programmer editors, but C++ is not that easily parsable and hence this does not work that good, compared with Java.
You should search for a good editor by selecting your requirements carefully. The rest is done with some additional files and some Linux tools, don't rely on those fancy GUI stuff, it's just useless time consumption.