prog don't work with direct x

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
AmigaIrr
Posts: 94
Joined: Mon Jan 10, 2005 7:55 am
Location: France, Alsace

prog don't work with direct x

Post by AmigaIrr »

THIS CODE WORK PERFECT :

// HelloUniverse.cpp
// Include the Irrlicht header
#include "irrlicht.h"

// Irrlicht Namespaces
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;


int main()
{
IrrlichtDevice *irrDevice = createDevice(EDT_SOFTWARE,
dimension2d<s32>(512, 384),
16,
false,
false,
0);

irrDevice->setWindowCaption(L"Dev-C++ and the Irrlicht Engine!");

IVideoDriver* irrDriver = irrDevice->getVideoDriver();
ISceneManager* irrSceneMgr = irrDevice->getSceneManager();
IGUIEnvironment* irrGUIEnv = irrDevice->getGUIEnvironment();

irrGUIEnv->addStaticText( L"Hello World! This is the Irrlicht software engine!",
rect<int>(10,10,200,30), true, true, 0, -1);

while(irrDevice->run())
{
irrDriver->beginScene(true, true, SColor(0,192,192,192));

irrSceneMgr->drawAll();
irrGUIEnv->drawAll();

irrDriver->endScene();
}

irrDevice->drop();

return(0);
}

BUT, when i try this :

IrrlichtDevice *irrDevice = createDevice(EDT_DIRECTX8,
dimension2d<s32>(512, 384),
16,
false,
false,
0);

the prog don't lauch (with dx8 or dx9)
AmigaIrr
Posts: 94
Joined: Mon Jan 10, 2005 7:55 am
Location: France, Alsace

Post by AmigaIrr »

can anyone help me please ???
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

IrrlichtDevice *irrDevice = createDevice(EDT_SOFTWARE,
dimension2d<s32>(512, 384),
16,
false,
false,
0);

is missing an argument, at least with Irrlicht 0.7.1

try

IrrlichtDevice *irrDevice = createDevice(EDT_SOFTWARE,
dimension2d<s32>(512, 384),
16,
false,
false,
false,
0);
AmigaIrr
Posts: 94
Joined: Mon Jan 10, 2005 7:55 am
Location: France, Alsace

Post by AmigaIrr »

the problem is : EDT_DIRECTX8

that don't work

i try to recompile irrlcht.dll with support of DX, but i can't get it
(is no output : irrlicht.dll in source directory)
AmigaIrr
Posts: 94
Joined: Mon Jan 10, 2005 7:55 am
Location: France, Alsace

Post by AmigaIrr »

compiler errors :

Irrlicht.dll

CZipReader.o(.text+0x1052):CZipReader.cpp: undefined reference to `inflateInit2_'
CZipReader.o(.text+0x10e6):CZipReader.cpp: undefined reference to `inflate'

CZipReader.o(.text+0x10f0):CZipReader.cpp: undefined reference to `inflateEnd'

CZipReader.o(.text+0x10fb):CZipReader.cpp: undefined reference to `inflateEnd'

CImageLoaderJPG.o(.text+0x23f):CImageLoaderJPG.cpp: undefined reference to `jpeg_std_error'
CImageLoaderJPG.o(.text+0x263):CImageLoaderJPG.cpp: undefined reference to `jpeg_CreateDecompress'
CImageLoaderJPG.o(.text+0x2b1):CImageLoaderJPG.cpp: undefined reference to `jpeg_resync_to_restart'
CImageLoaderJPG.o(.text+0x2d9):CImageLoaderJPG.cpp: undefined reference to `jpeg_read_header'
CImageLoaderJPG.o(.text+0x2e1):CImageLoaderJPG.cpp: undefined reference to `jpeg_start_decompress'
CImageLoaderJPG.o(.text+0x3d4):CImageLoaderJPG.cpp: undefined reference to `jpeg_read_scanlines'
CImageLoaderJPG.o(.text+0x425):CImageLoaderJPG.cpp: undefined reference to `jpeg_finish_decompress'

CImageLoaderJPG.o(.text+0x432):CImageLoaderJPG.cpp: undefined reference to `jpeg_destroy_decompress'

dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
dllwrap.exe: c++ exited with status 1

make.exe: *** [Irrlicht.dll] Error 1

Execution terminated
Post Reply