Hey everyone. I've written a very basic Dreamcast game which draws a red triangle to the screen on a blue background which can be moved by the user until they press start (I am using DreamSDK with Code::Blocks on Windows XP SP3). Right now everything is saved inside of main.cpp which I want to turn into main.elf so I can then morph it into main.bin, and then scramble it to 1st_run.bin (Diskjuggler will make IP.bin). I've been able to build the example projects in KallistiOS, but don't know the process for my own files.
Any advice is appreciated.
Convert source .cpp file to Elf with DreamSDK?
- VKNIGHT20
- core
- Posts: 119
- Dreamcast Games you play Online: PSO, Quake 3, Chu Chu Rocket, 4x4 evolution, Worms, IGP, NFL 2k2, NCAA 2k2, NBA 2k1, WSB 2k2.
- Location: US of A
- Contact:
- VKNIGHT20
- core
- Posts: 119
- Dreamcast Games you play Online: PSO, Quake 3, Chu Chu Rocket, 4x4 evolution, Worms, IGP, NFL 2k2, NCAA 2k2, NBA 2k1, WSB 2k2.
- Location: US of A
- Contact:
Re: Convert source .cpp file to Elf with DreamSDK?
Wicked, thanks bro. I saw that tool on DcEmulation but I had no idea what it did. Do you know if it is possible to be built on Windows XP? Last version of Meson for XP is 0.44.1, and the DreamSDK shell wont recognize 'meson' as a command even though cmd will. Was wondering if that's an issue with my older Meson version, or DreamSDK not liking XP.
John 3:16
- Ian Micheal
- Developer
- Posts: 6277
- Location: USA
- Contact:
Re: Convert source .cpp file to Elf with DreamSDK?
If you on winxp you could use bootdreams it convert a elf to bin and make a cdi as well.. sorry thought you was on linux..
- VKNIGHT20
- core
- Posts: 119
- Dreamcast Games you play Online: PSO, Quake 3, Chu Chu Rocket, 4x4 evolution, Worms, IGP, NFL 2k2, NCAA 2k2, NBA 2k1, WSB 2k2.
- Location: US of A
- Contact:
Re: Convert source .cpp file to Elf with DreamSDK?
Yes I was actually able to use bootdreams to convert elf to bin just fine, and burn it to my dreamcast with regards to the bundled KallistiOS example programs (I believe I ran the 'png' example program). It's just translating my .cpp source files into .Elf (Or possibly straight into .Bin) where I am finding issues. Will mkdcdisk actually do this if I can fix my Meson issues (Because after looking at it that does not appear to be one of its' functions)? Or is there another program that can accomplish this so I won't have to mess with Meson? Thanks for the previous responses btw
John 3:16
- ateam
- Metallic
- Posts: 816
Re: Convert source .cpp file to Elf with DreamSDK?
You have to compile your C++ code into an ELF (executable). You can do this from CodeBlock's build menu on the top. It works like any other IDE.
Find me on...
• DreamcastForever.com
• GitHub
• Reddit
• SegaXtreme
• Twitter
• YouTube
• Discord: derek.ateam
• DreamcastForever.com
• GitHub
• SegaXtreme
• YouTube
• Discord: derek.ateam
- VKNIGHT20
- core
- Posts: 119
- Dreamcast Games you play Online: PSO, Quake 3, Chu Chu Rocket, 4x4 evolution, Worms, IGP, NFL 2k2, NCAA 2k2, NBA 2k1, WSB 2k2.
- Location: US of A
- Contact:
Re: Convert source .cpp file to Elf with DreamSDK?
Just realized I'm an idiot. I wasn't creating it as a Dreamcast Project in Code::Blocks (Was making it a console application)! Now I see my project elf files in both debug, and release. Thanks for the help.
John 3:16
-
- Similar Topics
- Replies
- Views
- Last post
-
- 39 Replies
- 21341 Views
-
Last post by MoeFoh
-
- 58 Replies
- 76688 Views
-
Last post by Ian Micheal
-
- 1 Replies
- 2333 Views
-
Last post by dubcity
-
- 14 Replies
- 24344 Views
-
Last post by |darc|
-
- 15 Replies
- 27115 Views
-
Last post by megavolt85