Posted: Thu Jul 10, 2008 9:20 am
Just thought i'd say that i realy appreciate the work of providing these IrrDX downloads, very useful! Keep up the good work!
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
i really need this thank you garrittg. i realized that open renderer has quite a few problems especially material and light.garrittg wrote:here is a precompiled DX9/DX8 compatible v1.4.2 Irrlicht.dll and libIrrlicht.a. this was compiled using the newest CodeBlocks and MingW 5.1.4. the DLL again ended up a bit bigger than normal, so in addition to NDEBUG i also added the compiler options -s (strip all symbols) and -Os (optimize generated code for size). it is UPXd. all this resulted in a significantly smaller DLL. i ran the hello world GCC exe provided and it ran. i am not yet able to test it on the rest of the samples.
http://www.gprogs.com/irrlicht.mod/IrrDX_v1_4_2.zip
you must define this in the IrrCompileConfig.h file !!!Nate_D wrote:Under the C++ compiler tab and the compiler tab I added:
-D_IRR_COMPILE_WITH_DIRECTX_8_=1
-D_IRR_COMPILE_WITH_DIRECTX_9_=1
Code: Select all
Errors:
C:\irrlicht-1.5\source\Irrlicht\COpenGLDriver.cpp In member function `bool irr::video::COpenGLDriver::initDriver(irr::SIrrlichtCreationParameters)':
72 C:\irrlicht-1.5\source\Irrlicht\COpenGLDriver.cpp [Warning] 'PixelFormat' might be used uninitialized in this function
C:\irrlicht-1.5\source\Irrlicht\CImageLoaderPNG.cpp In member function `virtual irr::video::IImage* irr::video::CImageLoaderPng::loadImage(irr::io::IReadFile*) const':
93 C:\irrlicht-1.5\source\Irrlicht\CImageLoaderPNG.cpp [Warning] variable 'image' might be clobbered by `longjmp' or `vfork'
93 C:\irrlicht-1.5\source\Irrlicht\CImageLoaderPNG.cpp In static member function `static irr::u32 irr::os::Timer::getRealTime()':
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp [Warning] 'affinityMask' might be used uninitialized in this function
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp In static member function `static void irr::os::Timer::initVirtualTimer()':
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp [Warning] 'affinityMask' might be used uninitialized in this function
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp In static member function `static void irr::os::Timer::initTimer()':
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp [Warning] 'affinityMask' might be used uninitialized in this function
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp In static member function `static void irr::os::Timer::tick()':
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp [Warning] 'affinityMask' might be used uninitialized in this function
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp In static member function `static void irr::os::Timer::setTime(irr::u32)':
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp [Warning] 'affinityMask' might be used uninitialized in this function
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp In static member function `static void irr::os::Timer::startTimer()':
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp [Warning] 'affinityMask' might be used uninitialized in this function
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp In static member function `static void irr::os::Timer::setSpeed(irr::f32)':
103 C:\irrlicht-1.5\source\Irrlicht\os.cpp [Warning] 'affinityMask' might be used uninitialized in this function
Thanks for the reply sir, but the main problem is during linking, there is an error that prevent DevCPP to make it DLL...hybrid wrote:Warning just means "Hmm, not sure if this should be as is". But you can still work with it, it's pretty safe
Code: Select all
C:\irrlicht-1.5\source\Irrlicht\Makefile.win [Build Error] [../../bin/DevCPP/Irrlicht.dll] Error 255
I'm still getting an error sir, here's the error:bitplane wrote:I think that "error 255" just means the command line is too long. Try using this to do the last step.
You may also want to try a nightly build.
Code: Select all
C:\Dev-Cpp\bin>dllwrap.exe --output-def C:\irrlicht-1.5\bin\Win32-gcc\libIrrlich
t.def --driver-name c++ --implib C:\irrlicht-1.5\bin\Win32-gcc\libIrrlicht.a C:\
irrlicht-1.5\bin\DevCPP\Obj\*.o -L"C:\Dev-Cpp\lib" -lkernel32 -luser32 -lgdi32
-lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -l
odbccp32 -lglu32 -lopengl32 -o C:\irrlicht-1.5\bin\Win32-gcc\Irrlicht.dll
dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
C:\irrlicht-1.5\bin\DevCPP\Obj\CIrrDeviceWin32.o(.text+0xa7b):CIrrDeviceWin32.cp
p: undefined reference to `joyGetPosEx@8'
C:\irrlicht-1.5\bin\DevCPP\Obj\CIrrDeviceWin32.o(.text+0x4b76):CIrrDeviceWin32.c
pp: undefined reference to `joyGetNumDevs@0'
C:\irrlicht-1.5\bin\DevCPP\Obj\CIrrDeviceWin32.o(.text+0x50a8):CIrrDeviceWin32.c
pp: undefined reference to `joyGetPosEx@8'
C:\irrlicht-1.5\bin\DevCPP\Obj\CIrrDeviceWin32.o(.text+0x524e):CIrrDeviceWin32.c
pp: undefined reference to `joyGetDevCapsA@12'
collect2: ld returned 1 exit status
dllwrap.exe: c++ exited with status 1