Irrlicht->Dev-C++->DX8 problem

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.
Hlide

Post by Hlide »

As I stated beforehand, you may need to make a modification ( see my previous post ). For DLL, you must also need to add them in your project, just try to play around with the settings and find out where dll files are defined for ypur project. You should be really more careful ( if it doesn't find your dll, it is because your output makefile doesn't acknowledge it, so you must add them in the settings )
nop
Posts: 4
Joined: Sun Nov 16, 2003 4:00 pm

Post by nop »

I don't know if the other libs i posted here were useful, anyway here are the DirectX8-enhanced libs that i use with Dev-C++ :

http://lebrodeldenop.free.fr/irrlicht/0.4.2/0.4.2.zip
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Yeah, they're useful...(I just downloaded'em) (been along time since someone replied to this thread :lol: )
Monkey
Posts: 6
Joined: Mon Jan 12, 2004 10:22 pm

Post by Monkey »

Hi !

I also can't compile the engine at my pc (Win2K Prof. + DevCpp 4.9.8.5 + MingW + Gcc 3.3.1). It brakes while linking and shows this message:

------------------------------------------------------------------------------------
dllwrap.exe --output-def libIrrlicht.def --driver-name c++ --implib libIrrlicht.a CAnimatedMeshMD2.o CAnimatedMeshMS3D.o CAnimatedMeshSceneNode.o CBillboardSceneNode.o CBspTree.o CBspTreeSceneNode.o CCameraMayaSceneNode.o CCameraSceneNode.o CColorConverter.o CDirectX8Texture.o CFileList.o CFileSystem.o CFPSCounter.o CGUIButton.o CGUICheckbox.o CGUIEnvironment.o CGUIFileOpenDialog.o CGUIFont.o CGUIImage.o CGUIListBox.o CGUIMeshViewer.o CGUIScrollBar.o CGUISkin.o CGUIStaticText.o CGUIWindow.o CIrrDeviceWin32.o CLightSceneNode.o CLimitReadFile.o CMemoryReadFile.o CMeshSceneNode.o COctTreeSceneNode.o COpenGLTexture.o CQ3LevelMesh.o CReadFile.o CSceneManager.o CSceneNodeAnimatorFlyCircle.o CSceneNodeAnimatorRotation.o CSoftwareTexture.o CStaticMeshOBJ.o CTestSceneNode.o CTRFlat.o CTRFlatWire.o CTRGouraud.o CTRGouraudWire.o CTRTextureFlat.o CTRTextureFlatWire.o CTRTextureGouraud.o CTRTextureGouraudWire.o CVideoDirectX8.o CVideoNull.o CVideoOpenGL.o CVideoSoftware.o CZBuffer.o CZipReader.o Irrlicht.o os.o CCameraFPSSceneNode.o CGeometryCreator.o CSceneNodeAnimatorFlyStraight.o CSceneNodeAnimatorTexture.o CDefaultMeshFormatLoader.o CSkyBoxSceneNode.o CShadowVolumeSceneNode.o C3DSMeshFileLoader.o CSceneCollisionManager.o CIrrDeviceStub.o CParticleSystemSceneNode.o CParticleFadeOutAffector.o CParticleBoxEmitter.o CParticlePointEmitter.o CParticleGravityAffector.o CDummyTransformationSceneNode.o CGUIInOutFader.o CIrrDeviceLinux.o CMeshManipulator.o CMetaTriangleSelector.o COctTreeTriangleSelector.o CSceneNodeAnimatorCollisionResponse.o CSceneNodeAnimatorDelete.o CTriangleBBSelector.o CTriangleSelector.o CVideoModeList.o CWaterSurfaceSceneNode.o CGUIMessageBox.o CGUIModalScreen.o CEmptySceneNode.o CImage.o CImageLoaderBmp.o CImageLoaderJPG.o CImageLoaderPCX.o CImageLoaderPSD.o CImageLoaderTGA.o CLogger.o CTerrainSceneNode.o -L"F:/Coding/MinGW/lib" -L"F:/Coding/FMode/api/lib" -L"F:/Coding/IrrLicht/lib/DevCpp" -L"F:/Coding/MinGW/lib/jpeglib" -L"F:/Coding/MinGW/lib/zlib" -L"jpeglib" -L"zlib" --no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 -lz -ld3d8 -ld3dx8d -o Irrlicht.dll

Die eingegebene Zeile ist zu lang.
---------------------------------------------------------------------------------


mingw32-make.exe: *** [Irrlicht.dll] Error 255

Does anyone have suggestions for solving this problem ?


Greetings, Thomas
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Whoa, alot of errors there. . . did you go by the Dev-C++ tutorial??
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

Monkey wrote:Die eingegebene Zeile ist zu lang.
This is the infamous "The input line is too long" error. I had to make a batch procedure like this:
DLLWRAPDX.BAT:

Code: Select all

dllwrap.exe --output-def ../bin/DevCpp/libIrrlicht.def --driver-name c++ --implib ../bin/DevCpp/libIrrlicht.a *.o -L"C:/Programmi/Dev-Cpp/lib" -L"jpeglib" -L"zlib" --no-export-all-symbols --add-stdcall-alias -lgdi32 -lglu32 -lopengl32 -ld3d8 -ld3dx8d -ljpeg -lz  -o ../bin/DevCpp/Irrlicht.dll
Now, I must first compile from Dev-C++ interface, then launch dllwrapdx.bat from a console box.



By the way, I compiled the engine to work with DX8 in Dev-C++ and all is OK... but a small issue: addAmbientLight does nothing at all. :roll:
Guest

Post by Guest »

Meanwhile I've managed it with a modified MAKEFILE, in which all the objects given to dllwrap are replaced by a *.o (@madinitaly: I had read your thread due to this, thanks ...)

Now the Irrlicht DLL has got a size of 1 MB ! And thats too much as the downloadable versions from NOP have only about 25 % of this size.

Any suggestions how to manage this ?

The configs I use now in the MAKEFILE are:

CXXFLAGS = -s $(CXXINCS)-D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DIRRLICHT_EXPORTS -mcpu=i686 -O3

CFLAGS = -s $(INCS)-D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_MBCS -D_USRDLL -DIRRLICHT_EXPORTS -mcpu=i686 -O3

$(BIN): $(LINKOBJ)
$(DLLWRAP) --output-def $(DEFFILE) --driver-name c++ --implib $(STATICLIB) Objects/*.o $(LIBS) -o $(BIN)

Greetings, Thomas
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Someone owuldn't happen to have an updated DLL with DX8 for Dev-C++ would ya? :roll:
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

Editing and compiling right now, see if i can upload it tonight somewhere.
The Robomaniac
Project Head / Lead Programmer
Centaur Force
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

DarkWhoppy wrote:Someone owuldn't happen to have an updated DLL with DX8 for Dev-C++ would ya? :roll:
I have one (the one in my project's page), but there are two flaws:
-DX8: setAmbientLight () has no effect at all.
-DX9: problem with mipmapping: can't create textures
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

Damn, beat me to it
The Robomaniac
Project Head / Lead Programmer
Centaur Force
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

Link link link? :lol:
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

Just click -> HERE <-
(And let me know if it works well eheh :wink: )
Post Reply