[DevC++] dll with directx 9.0c support available

A forum to store posts deemed exceptionally wise and useful

Postby JP » 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!
Image Image Image
User avatar
JP
 
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK

Postby Tarzan02 » Mon Jul 28, 2008 12:58 pm

high i've tried your solution and i've got an error on the linker:

La ligne entr‚e est trop longue.

mingw32-make.exe: *** [Default Profile/Irrlicht.exe] Error 255

Execution terminated

someone has an idea ??
Tarzan02
 
Posts: 93
Joined: Tue May 01, 2007 8:36 pm
Location: France

Postby garrittg » Tue Sep 23, 2008 1:49 am

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
garrittg
 
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA

Postby Virion » Sat Oct 11, 2008 6:19 am

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

i really need this thank you garrittg. i realized that open renderer has quite a few problems especially material and light.
User avatar
Virion
 
Posts: 2102
Joined: Mon Dec 18, 2006 5:04 am
Location: Malaysia

Postby garrittg » Tue Dec 16, 2008 11:22 pm

here is a precompiled DX9/DX8 compatible v1.5 Irrlicht.dll and libIrrlicht.a. this was compiled using CodeBlocks 8.02/MingW 5.1.4 and UPXd. 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_5.zip

enjoy :)

also, im curious about the post from yoquese. im leery of jumping to something different for DX8 since the current method is time-tested, but not requiring a seperate DLL is enticing. i may look into this in the future when i have a bit more time.
garrittg
 
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA

Postby Nate_D » Fri Mar 13, 2009 2:42 am

Hey, I am attempting to recompile irrlicht 1.3 with direct x support using Dev C++ but am having trouble doing so... I have included all of the header files from the direct x sdk and linked to all of the libraries. 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

Under the linker tab I added:
-ld3dx8d
-ld3dx9d

I have installed the DevC++ Direct X 9 devpack and it still does not seem to be working... It compiles just fine into a dll, but when I chose DirectX9 it says that it has not been compiled into the dll. can anybody see what I am doing wrong?
Nate_D
 
Posts: 64
Joined: Tue Mar 11, 2008 11:45 pm
Location: Calgary, Alberta

Postby Acki » Fri Mar 13, 2009 3:46 am

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
you must define this in the IrrCompileConfig.h file !!! ;)
and not =1, just uncoment the define(s) in IrrCompileConfig.h...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
User avatar
Acki
 
Posts: 3474
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)

Postby hybrid » Fri Mar 13, 2009 8:18 am

If those defines were not already enabled in IrrCompileConfig.h passing them on the command line as shown would be enough. However, with gcc you need a different define: -DIRR_COMPILE_WITH_DX9_DEV_PACK
If you also need DX8 (which is disabled by default) you should keep the DIRECTX_8 define as well.
hybrid
Admin
 
Posts: 13972
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Postby Nate_D » Fri Mar 13, 2009 10:04 pm

Thanks for the quick reply. Unfortunately none of these changes seems to have made a difference... I tried defining

#define _IRR_COMPILE_WITH_DIRECTX_9_
#define _IRR_COMPILE_WITH_DX9_DEV_PACK


in the irrcompileconfig file and when that didnèt work i tried defining it in the compiler options as
-D_IRR_COMPILE_WITH_DX9_DEV_PACK
-D_IRR_COMPILE_WITH_DIRECTX_9_

any suggestions?
Nate_D
 
Posts: 64
Joined: Tue Mar 11, 2008 11:45 pm
Location: Calgary, Alberta

Postby Nate_D » Fri Mar 13, 2009 10:29 pm

Okay got it to compile in debug mode by changing

#define _IRR_COMPILE_WITH_DIRECTX_9_

to

#define _IRR_COMPILE_WITH_DIRECT3D_9_

I cant seem to be able to get it to compile in release mode however when i change
-ld3dx9d
to
-ld3dx9

an error box comes up and says Id.exe has stopped working...
then in dev c++ it gives me compile errors saying

.drectve '/DEFAULTLIB:"uuid.lib" /DEFALUTLIB:"uuid.lib" 'unrecognized

any ideas?

----EDIT------
Oops checked the directx devpack in the devc++ package manager and it only has

lib\Definitions\d3dx8d.def
lib\Definitions\d3dx9d.def

I guess i needed a devpack with release mode.

found one on this site
http://www.dgrigoriadis.net/post/2004/06/26/DirectXDevPak-for-Dev-Cpp.aspx

thanks for the help...
Nate_D
 
Posts: 64
Joined: Tue Mar 11, 2008 11:45 pm
Location: Calgary, Alberta

Postby psydox » Fri Jul 24, 2009 6:53 pm

For the past few days, Dev-C++ and wxDevCPP is giving me a headache... There are errors when building the DLL,

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


Help here please ^_^
psydox
 
Posts: 9
Joined: Sun Mar 29, 2009 4:29 pm

Postby hybrid » Fri Jul 24, 2009 8:53 pm

Warning just means "Hmm, not sure if this should be as is". But you can still work with it, it's pretty safe :)
hybrid
Admin
 
Posts: 13972
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Postby psydox » Sat Jul 25, 2009 2:39 am

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 :)


Thanks for the reply sir, but the main problem is during linking, there is an error that prevent DevCPP to make it DLL...

Here is the error sir:
Code: Select all
 C:\irrlicht-1.5\source\Irrlicht\Makefile.win [Build Error]  [../../bin/DevCPP/Irrlicht.dll] Error 255
psydox
 
Posts: 9
Joined: Sun Mar 29, 2009 4:29 pm

Postby bitplane » Sat Jul 25, 2009 3:00 am

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.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
User avatar
bitplane
Admin
 
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England

Postby psydox » Sat Jul 25, 2009 3:22 am

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.


I'm still getting an error sir, here's the error:

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
psydox
 
Posts: 9
Joined: Sun Mar 29, 2009 4:29 pm

PreviousNext

Return to FAQs, Tutorials, Howtos, and external tool lists

Who is online

Users browsing this forum: No registered users and 0 guests