compiling dll with codeblocks+MSVCtoolkit in 10 screenshots!

A forum to store posts deemed exceptionally wise and useful
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

It's got find and replace functions; use the search menu, or the 2 magnifying glass icons.

the only thing it's lacking of is a debugger (which GCC has with GDB), but for the rest, it's a great free alternative. And you can compile DX apps without going thru all the hassle you have to with DEVC++.

good look with your math work!
EDITED: Just found out I got you wrong!!! :oops: :oops:
I'm talking about normal search and replace functions while you need "search in files"...oops!

but I'm sure it will be implemented in any future version. Let's say it's 90% perfect as it is right now, hehehehe :wink:
Guest

Post by Guest »

hey!

your tut worked perfectly for me, even with the new sdk (2005 - april). i just had to change the following:

add d3d9.lib to the library list
add C:\DXSDK\lib\x86 or something like this to your library path

do the same for d3d8. i compiled without dx8 and the dll has only a size of 700kb, thats fantastic!! the original one has 1,3! lets see how small the file is without opengl! :D
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

hehehe, great! I thought you'd also like this tutorial. So now you can join Cmoibenlepro and me on the farewell we're giving Relo :wink:

Codeblocks works great and the fact that it allows adding lib folders is sweet. I can't believe we went thru all that hassle to get Relo working! (and It worked ok).

thnx for reporting GFX :D
cmoibenlepro
Posts: 237
Joined: Thu May 27, 2004 3:18 pm
Location: Canada

Post by cmoibenlepro »

Sorry but I "needed" to do this :wink:

____________________________________
|___________________________________|
|.....................................................|
|.........................................................|
|.........................................................|
|...........................RIP.......................|
|.........................RELO IDE....................|
|.........................................................|
|....................... 2004 - 2005 ................|
|.........................................................|
|............We will always remember.........|
|................. this good old friend.............|
|.........................................................|
|____________________________________|
*************************************
....*************************************
........*************************************
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

AMEN..... :D may its code evolve and become part of the matrix

long live the new king! :wink:
Guest

Post by Guest »

i can't access screenshots ...
afecelis, can you check your screenshots ?

thanks
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

just checked and they're loading fine.

Anyone else having this prob?

Perhaps try a different web borwser. Evertything should load fine.
Chris
Posts: 18
Joined: Wed Jan 26, 2005 11:17 pm
Location: England
Contact:

Post by Chris »

I believe I may have gotten Code::Blocks to compile with the MS Toolkit 2003 with the latest Developer SDK, my only problem now is with the new DX9 SDK, it seems to be missing the DX8 support files.


When I get it sorted I'll post a tutorial.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

Ok, gonna sound a little stupid here, but...
Downloaded msvc 3 (the one in your link on the first post)
and codeblocks. Both installed fine.
Downloaded allllll those 25 meg files and followed the instructions.
My dos window won't cd to the proper folder. :( and when I just try to force the bat file thru the dos window...(E:\direct\nameofbatfile> c:\directsdk) I get an error message telling me that my folder isn't a bat file. :? (duuh, no kidding) How in the world do I extract these files? I'm using winXP home.
sp1 (they can keep sp2)
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

which DOS window? and which bat file, MikeR?

the only bat file you need to run is the one that comes with the toolkit in oredr to add system paths accordingly, but it's done by simply double clicking on the bat file (vcvars32.bat).

Also remember to add ";C:\PROGRAM FILES\MICROSOFT VISUAL C++ TOOLKIT 2003\BIN\" to your system variables in "path"

check the screenie:
Image

this way your system will find and run the compiler from anywhere.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

I was following the instructions that came with the sdk. That batch file.
Anyway, I got the newer sdk and got it installed. Now, it's telling me that there is no d3d8.h file in the irrlicht source folder. :?
Why are things so complicated when attempting to compile with directX?
I have the following sdks installed:

microsoft platform sdk
ms visual studio 2003 sdk
ms visual studio 2003 .net sdk
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
latentdisposition
Posts: 29
Joined: Mon Jun 27, 2005 1:17 pm

Post by latentdisposition »

You need the DirectX SDK. If you are only interested in what you need to compile, GFXstyLER posted a stripped-down version of the SDK for download (about 7 megs as I recall as opposed to 150).


http://irrlicht.sourceforge.net/phpBB2/ ... php?t=7195
"The creation of something new is not accomplished by the intellect but by the play instinct acting from inner necessity. The creative mind plays with the objects it loves."

Carl Jung
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

latent is right. If you check the tutorial you'll see we're using the sdk's "include" and "lib" folders for the dll to get compiled properly so download GFX's stripped down version; in the end all you need is those 2 folders.

let me know if you could get it, otherwise I'll upload my stripped version of the sdk, although mine, zipped, is around 17mb, 64mb unzipped.

cheers.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

All I get are cab files. I started a thread in "offtopic" about it.
I fought Dev-Dpp till I got it to work, I'll tackle this too. Just having to learn a whole bunch of things in the process. (learning can be fun, but it can be balding too)

Edit to add: did a search of my computer using the search function and d3d9.h was not found.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
darkraven
Posts: 29
Joined: Sat Mar 06, 2004 5:54 am
Location: Florida
Contact:

Post by darkraven »

Hi there, I'm trying to compile irrlicht using your instructions through code::blocks and I'm using MSVC toolkit as the compiler and the newest dxsdk and I get a compile error

fatal error C1083: Cannot open include file: 'D3dx8core.h': No such file or directory

I did a search and there is no D3dx8core.h file. Am I doing something wrong or is there a work around for this.

Thanks

Michael
Post Reply