News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Patch: Template for a Direct/X application

Started by MortenMacFly, February 22, 2006, 12:31:10 PM

Previous topic - Next topic

MortenMacFly

I've written a template for a Direct/X application using MS VCTK2003 or GCC (can be chosen). I've uploaded this to BerliOS as patch no. 853. I would be glad if someone else than me could give this a try. It works for me... but I might have missed something. With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

...dammed. How do I upload a ZIP file to BerliOS? It seems not possible. I've attached the "patch" to this post.

[attachment deleted by admin]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Michael

This is good :). I have just a small question. I have always thought that you have to use M$ Toolkit to fully compile DirectX. You could use GCC, but then you cannot build all. I am not sure about that anyway. And Dev-C++ has a package DirectX. So I think that I was wrong, or?

Thank you very much.

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

MortenMacFly

Quote from: Michael on February 22, 2006, 12:48:28 PM
And Dev-C++ has a package DirectX. So I think that I was wrong, or?
Yes, you are right. There are two ways: The first: You use the Visual C++ Toolkit 2003 with the MS platform SDK and MS Direct/X SDK. The second: You use the Direct/X DevPack (it's Direct/X 9 I'm using) with the GCC compiler. The DevPack brings all header, libs and DLL files for Direct/X. The system libs are from GCC then. Then you can compile your DX applications with GCC.
Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Michael

Quote from: MortenMacFly on February 22, 2006, 12:55:43 PM
The DevPack brings all header, libs and DLL files for Direct/X. The system libs are from GCC then. Then you can compile your DX applications with GCC.

Ok, I understand, thank you :). Anyway, I suppose that there is a way to compile DirectX directly as the people of the DevPack have done.

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

mandrav

Quote from: Michael on February 22, 2006, 02:02:42 PM
I suppose that there is a way to compile DirectX directly

lol :lol:

No, there is no way to recompile DirectX. Unless you 're working for Microsoft ;)
You can simply use some tools to create gcc import libraries (.a) from the directx dlls.
Be patient!
This bug will be fixed soon...

Michael

Quote from: mandrav on February 22, 2006, 02:16:19 PM
Quote from: Michael on February 22, 2006, 02:02:42 PM
I suppose that there is a way to compile DirectX directly

lol :lol:

No, there is no way to recompile DirectX. Unless you 're working for Microsoft ;)
You can simply use some tools to create gcc import libraries (.a) from the directx dlls.

Ah, ok. It was too good to be true :D. Anyway, I appreciate the possibility to create gcc import libraries so that I can use gcc instead of M$ Toolkit :).

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

knue

I think there was a copyright issue with the gcc directX headers provided by that devpak.
The original headers were just changed until it worked with gcc. But this is not allowed. That's why this devpak was taken from all official download servers. You can only find this devpak with hard googling.