irrlicht 1.7.2 problemy z pierwszym programem
Ostatnio zmodyfikowano 2011-10-29 23:45
TenNewbie Temat założony przez niniejszego użytkownika |
irrlicht 1.7.2 problemy z pierwszym programem » 2011-10-29 23:02:46 Witam, właśnie postanowiłem zainstalować silnik irrlicht na code blocks, lecz przy próbie kompilacji wyskakuję taki hmm... komunikat: "testcode - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... Nothing to be done. czyli chyba mam coś źle ustawionego, lecz kiedyś wystarczyło wybrać typ projektu i podać ścieżkę do irrlicht sdk. Nie mam pojęcia co teraz mam zrobić, pomoże ktoś? A i podam kod tego programu, chociaż wątpię żeby miało to jakieś znaczenie.
#include <irrlicht.h>
using namespace irr;
using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui;
int main( int argc, char ** argv ) { IrrlichtDevice * device = createDevice( EDT_SOFTWARE, dimension2d < s32 >( 640, 480 ), 16, false, false, false, 0 ); device->setWindowCaption( L"Hello World! - Irrlicht Engine Demo" ); IVideoDriver * driver = device->getVideoDriver(); ISceneManager * smgr = device->getSceneManager(); IGUIEnvironment * guienv = device->getGUIEnvironment(); guienv->addStaticText( L"Hello World! This is the Irrlicht Software renderer!", rect < int >( 10, 10, 200, 22 ), true ); IAnimatedMesh * mesh = smgr->getMesh( "../../media/sydney.md2" ); IAnimatedMeshSceneNode * node = smgr->addAnimatedMeshSceneNode( mesh ); if( node ) { node->setMaterialFlag( EMF_LIGHTING, false ); node->setFrameLoop( 0, 310 ); node->setMaterialTexture( 0, driver->getTexture( "../../media/sydney.bmp" ) ); } smgr->addCameraSceneNode( 0, vector3df( 0, 30, - 40 ), vector3df( 0, 5, 0 ) ); while( device->run() ) { driver->beginScene( true, true, SColor( 0, 200, 200, 200 ) ); smgr->drawAll(); guienv->drawAll(); driver->endScene(); } device->drop(); return 0; }
|
|
malan |
» 2011-10-29 23:14:27 Wiele razy ten temat był poruszany na forum. www.google.pl -> site:cpp0x.pl uses an invalid compiler. |
|
Gabes |
» 2011-10-29 23:16:01 |
|
TenNewbie Temat założony przez niniejszego użytkownika |
» 2011-10-29 23:45:31 Okey, dzięki Gabes |
|
« 1 » |