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.
DarkWhoppy
Posts: 386 Joined: Thu Sep 25, 2003 12:43 pm
Contact:
Post
by DarkWhoppy » Fri Oct 17, 2003 2:02 am
I get this error when compiling with DX8.
cc1plus.exe C:\Dev-Cpp\Engine\Irrlicht Engine\cc1plus.exe
[Warning] -fvtable-thunks is no longer supported
puh
Posts: 356 Joined: Tue Aug 26, 2003 3:53 pm
Post
by puh » Fri Oct 17, 2003 7:04 am
Irrlicht in DevC++ still handles only OGL mode.
niko
Site Admin
Posts: 1759 Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:
Post
by niko » Fri Oct 17, 2003 8:22 am
But since version 0.4.1, the code shoult automaticly detect if you are trying to compile DirectX with g++, and disables it unasked. But I don't know if cc1plus.exe is a gcc compiler.
DarkWhoppy
Posts: 386 Joined: Thu Sep 25, 2003 12:43 pm
Contact:
Post
by DarkWhoppy » Fri Oct 17, 2003 8:36 pm
Its what I came with Dev-C++ when I installed.
I'll just use OpenGL until I find away around that...
Guest
Post
by Guest » Sun Nov 02, 2003 11:46 am
I can compile demos with Dev-C++, but I have a crash when running demos with video::DIRECTX8 instead of video::OPENGL or video::SOFTWARE.
I would like to know if version 0.4.1 is smart enough to use video::DIREXT8 with Dev-C++ ?
Guest
Post
by Guest » Sun Nov 02, 2003 11:51 am
1) cc1plus is a part of gcc
2) when compiling, I used version 0.4 and I failed to use DX8 with Dev-C++. Does version 0.4.1 solve this problem ?
3) If I remember well, -fvtable-thunks must be used for accessing COM objects like DX8 interfaces.
Guest
Post
by Guest » Sun Nov 02, 2003 12:22 pm
ok, -fvtable-thunks seems to be deprecated in gcc 3.x and you must use the latest Dev-C++ with gcc 3.x.
hlide
Post
by hlide » Sun Nov 02, 2003 2:25 pm
Hi,
Using version 0.4.1, you must launch Dev-C++ and check if you have downloaded the Directx package for Dev-C++. Just open Irrlicht.dev and make some modifications or additions :
1) in IrrCompileConfig.h, modify lines 23-26 as following :
#if defined(_WIN32)
// && !defined(__GNUC__)
#define _IRR_COMPILE_WITH_DIRECTX_8_
#endif
2) "Tab Project > Project options (Alt-P) > Tab Paremeters > Link editor" : just add "-ld3d8 -ld3dx8d"
Also, I advise you to add optimizations flags too, if you want to be able to have 200fps instead of 70 fps ( software/opengl )
DarkWhoppy
Posts: 386 Joined: Thu Sep 25, 2003 12:43 pm
Contact:
Post
by DarkWhoppy » Tue Nov 04, 2003 2:51 am
I get a few... hundred errors when I compile for some reason. I did everything right =/ . Maybe there should be a download some where with it already compiled that way for DX.
koko775
Posts: 5 Joined: Mon Nov 03, 2003 2:48 am
Post
by koko775 » Tue Nov 04, 2003 3:03 am
it might be that it's having trouble finding or isn't playing nice with the directX header files.
DarkWhoppy
Posts: 386 Joined: Thu Sep 25, 2003 12:43 pm
Contact:
Post
by DarkWhoppy » Wed Nov 05, 2003 11:05 pm
15 C:\DEV-CPP\include\d3dx8mesh.h
In file included from C:/DEV-CPP/include/d3dx8mesh.h
240 C:\DEV-CPP\include\dxfile.h
stray '\32' in program
2 C:\DEV-CPP\include\dxfile.h:240
[Warning] no newline at end of file
There're my errors.
DarkWhoppy
Posts: 386 Joined: Thu Sep 25, 2003 12:43 pm
Contact:
Post
by DarkWhoppy » Wed Nov 05, 2003 11:13 pm
I removed that little square which was a "stray '\32' " but... no DLL ?? I'm suppose to get a DLL when done compiling right?:?
Burnt
Post
by Burnt » Thu Nov 06, 2003 1:55 am
I just followed his exact instructions and produced a .dll just fine. extract a brand new source.zip and try again.
DarkWhoppy
Posts: 386 Joined: Thu Sep 25, 2003 12:43 pm
Contact:
Post
by DarkWhoppy » Thu Nov 06, 2003 2:43 am
Still not workin...(no DLL after done compiling) I tried twice and i'm using Dev-C++ v4.9.8.4
Could you upload one to a server for me to download? That'll be greatly appreciated.
voltare
Post
by voltare » Thu Nov 06, 2003 4:43 pm
according to a dev-c++ forum i'm on, dev-c++ and directx don't get along well witth each other......