[fixed] Revision 1309 doesn't compile with MinGW - Win32

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.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

lol, you were right.
I also installed a fresh copy of the March SDK and I found it.
I also found a very interesting thing. In the environment variables:
Name: DXSDK_DIR
Value: D:\Program Files\Microsoft DirectX SDK (March 2008)\
And of course I didn't put that there myself.

So I guess I could use that. Please tell me how/what should I modify so MinGW would know where the SDK is. (Also searching myself)
Edit: Didn't found it myself.. Let's try google..

Thanks.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

MasterGod wrote:Please tell me how/what should I modify so MinGW would know where the SDK is.
Again: Edit the Makefile.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

That's one of the weirdest thing I've ever had to deal with.
All I did (after many attempts) was to just copy the Include directory of the DirectX SDK and add the path to that directory in Irrlicht's Makefile and it worked.
I never had to do that :shock: , very weird IMO, but it works :wink:

Thanks you guys for helping me, it was very important for me to fix this problem, so thanks again!

P.S

Code: Select all

mingw32-make NDEBUG=1 all_win32
What does the 'all_win32' means?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
wyrmmage
Posts: 204
Joined: Sun Mar 16, 2008 3:12 am
Contact:

Post by wyrmmage »

take a look at the makeFile, it'll tell you a lot about what those commands do :)
Here's the relevant lines, I believe:

Code: Select all

# Builds Irrlicht as dll (Irrlicht.dll) into ../../bin/Win32-gcc
all_win32 win32: sharedlib_win32
right below it are the lines

Code: Select all

sharedlib_win32: $(IRRLICHT_DLL)
which means that you can build Irrlicht as a .dll (that's the all_win32), which calls sharedlib_win32. At least, I think that's what it does... I never was very good with MakeFiles O.o

-wyrmmage
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Why don't you use a project file, there's no need to use a Makefile in your setting. Otherwise you'll have to adjust the Makefile to your local needs.
Copying header files to include paths known to the Makefile is one way, a better way would've been to add the additional path.
The all_win32 means it's the all target for win32 systems. The name was arbitarily chosen, resembling the typical all default (which was already reserved for the linux part of the Makefile). Another possible target is staticlib_win32 (or win32, or sharedlib_win32, but those do the same as all_win32).
Post Reply