Hi,
ich versuch nun seit Stunden Irrlicht unter Linux bzw. Eclipse zum laufen zu bekommen :S
Ich hab's bisher genauso gemacht wie es in der Wiki stand...
http://www.irrlicht3d.org/wiki/index.ph ... thIrrlichtDie Lib ist Kompiliert und liegt im richtigen Ordner die Beispiele funktionieren ja auch...
Daher vermute ich das Eclipse Probleme hat mit den Makefiles.
Aber nen Log sagt ja mehr als 1000 Worte
:
Code:
**** Build of configuration Debug for project GrafikEngine ****
make -j1 all
Building file: ../src/main.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/local/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.d" -o"src/main.o" "../src/main.cpp"
../src/main.cpp:10: error: ‘core’ is not a namespace-name
../src/main.cpp:10: error: expected namespace-name before ‘;’ token
../src/main.cpp:11: error: ‘scene’ is not a namespace-name
../src/main.cpp:11: error: expected namespace-name before ‘;’ token
../src/main.cpp:12: error: ‘video’ is not a namespace-name
../src/main.cpp:12: error: expected namespace-name before ‘;’ token
../src/main.cpp:13: error: ‘io’ is not a namespace-name
../src/main.cpp:13: error: expected namespace-name before ‘;’ token
../src/main.cpp:14: error: ‘gui’ is not a namespace-name
../src/main.cpp:14: error: expected namespace-name before ‘;’ token
../src/main.cpp: In function ‘int main()’:
../src/main.cpp:19: error: ‘IrrlichtDevice’ was not declared in this scope
../src/main.cpp:19: error: ‘device’ was not declared in this scope
../src/main.cpp:19: error: ‘EDT_SOFTWARE’ was not declared in this scope
../src/main.cpp:19: error: ‘dimension2d’ was not declared in this scope
../src/main.cpp:19: error: ‘s32’ was not declared in this scope
../src/main.cpp:19: warning: left-hand operand of comma has no effect
../src/main.cpp:19: error: ‘createDevice’ was not declared in this scope
../src/main.cpp:21: error: ‘IVideoDriver’ was not declared in this scope
../src/main.cpp:21: error: ‘driver’ was not declared in this scope
../src/main.cpp:22: error: ‘ISceneManager’ was not declared in this scope
../src/main.cpp:22: error: ‘smgr’ was not declared in this scope
../src/main.cpp:23: error: ‘IGUIEnvironment’ was not declared in this scope
../src/main.cpp:23: error: ‘guienv’ was not declared in this scope
../src/main.cpp:27: error: ‘SColor’ was not declared in this scope
make: *** [src/main.o] Fehler 1
Das der Code:
Code:
//============================================================================
// Name : GrafikEngine.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <irrlicht.h>
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
int main()
{
IrrlichtDevice *device = createDevice(EDT_SOFTWARE, dimension2d<s32>(512, 512), 32, false, false, false, 0);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
EDIT:
Hab gerade Autovervollständigung angeworfen um zu schauen was es alles gibt und da fällt mir auf das es nur den Namespace irr gibt q.q... den habe ich dann eingebunden und schon ging es.... Doofes Tutorial von Irrlicht...