Author Topic: Patch: Template for a Direct/X application  (Read 9708 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Patch: Template for a Direct/X application
« on: February 22, 2006, 12:31:10 pm »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Patch: Template for a Direct/X application
« Reply #1 on: February 22, 2006, 12:47:58 pm »
...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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Patch: Template for a Direct/X application
« Reply #2 on: February 22, 2006, 12:48:28 pm »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Patch: Template for a Direct/X application
« Reply #3 on: February 22, 2006, 12:55:43 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Patch: Template for a Direct/X application
« Reply #4 on: February 22, 2006, 02:02:42 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

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Patch: Template for a Direct/X application
« Reply #5 on: February 22, 2006, 02:16:19 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...

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Patch: Template for a Direct/X application
« Reply #6 on: February 22, 2006, 02:24:08 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

knue

  • Guest
Re: Patch: Template for a Direct/X application
« Reply #7 on: April 12, 2006, 12:12:17 am »
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.