DC DEV LINUX DISTRO
- Neoblast
- DC Developer
- Posts: 315
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Sat Dec 01, 2007 8:51 am
- Has thanked: 5 times
- Been thanked: 1 time
DC DEV LINUX DISTRO
Since many people have contacted me due to the fact that they could not set up the toolchain and compile environment on linux, I think it could be a good idea to make a linux or mini linux distribution ( maybe livecd or not ) prepared to compile dc stuff just as is, with everything included...
What do you think guys?
What do you think guys?
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
Re: DC DEV LINUX DISTRO
A remaster of an Ubuntu LiveCD would probably be the easiest bet. I think you'd need to build .deb packages of the toolchain so the LiveCD builder will include them, but it probably wouldn't be that hard.
I think this idea came up before, and it seemed like a good idea, but LiveCDs were very difficult to build or modify at the time. It probably stands a better chance of working now.
I think this idea came up before, and it seemed like a good idea, but LiveCDs were very difficult to build or modify at the time. It probably stands a better chance of working now.
-
- Somewhat Dumb Knight
- Posts: 3653
- Joined: Tue Oct 12, 2004 2:26 pm
- Has thanked: 0
- Been thanked: 0
Re: DC DEV LINUX DISTRO
If someone made a deb of the things needed, I could easily make an Ubuntu LiveCD for this purpose and host it myself. I don't know exactly what is useful (last time I fooled with it I just downloaded that pack in the forums) so I don't know what to compile where.
Any takers?
Any takers?
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
Re: DC DEV LINUX DISTRO
I could probably give some of it a go, but I'm not sure what packages we'd actually need.
At a bare minimum, we're going to need at least SH-4 binutils, GCC and newlib, ARM binutils and GCC, dc-tool serial, and dc-tool IP. On top of that, we also need KOS, and probably some other tools (MC's scrambler, and IP.BIN builder, for example).
I wouldn't have a clue what to do about debuggers, IDEs, or any of the other tools on the Windows CD images.
At a bare minimum, we're going to need at least SH-4 binutils, GCC and newlib, ARM binutils and GCC, dc-tool serial, and dc-tool IP. On top of that, we also need KOS, and probably some other tools (MC's scrambler, and IP.BIN builder, for example).
I wouldn't have a clue what to do about debuggers, IDEs, or any of the other tools on the Windows CD images.
- emptythought
- DC Developer
- Posts: 2015
- Joined: Wed Jan 30, 2002 9:14 am
- Location: UNITED STATES NRN
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: DC DEV LINUX DISTRO
dc-chain has Insight and GDB implemented in them now so check that out. FYI, Insight will also compile GDB.
I'd put a C version of my CodeBlocks configurator up but I don't know the language well enough yet. CodeBlocks 8.02 uses XML to save the compiler settings and stuff and would need an XML library but like I said, C is still a new language to me. If anyone wants it to create a C version, I can upload my CodeBlocks wizard script and all the info needed to automate the process of manually adding the DC compiler.
The only other useful stuff (off the top of my head) is bmp2vmu which converts bitmaps into VMU save icons and eyecatchs (I could try to get speud to release a linux version), all of my DC tools from my site, emulators, Bin Checker (a linux version is available), and a couple other things.
Also, if you'd like, I could upload just the third party libraries that aren't in KOS so the .dep has the same libraries as the dev ISO.
I'd put a C version of my CodeBlocks configurator up but I don't know the language well enough yet. CodeBlocks 8.02 uses XML to save the compiler settings and stuff and would need an XML library but like I said, C is still a new language to me. If anyone wants it to create a C version, I can upload my CodeBlocks wizard script and all the info needed to automate the process of manually adding the DC compiler.
The only other useful stuff (off the top of my head) is bmp2vmu which converts bitmaps into VMU save icons and eyecatchs (I could try to get speud to release a linux version), all of my DC tools from my site, emulators, Bin Checker (a linux version is available), and a couple other things.
Also, if you'd like, I could upload just the third party libraries that aren't in KOS so the .dep has the same libraries as the dev ISO.
- henzenmann
- Insane DCEmu
- Posts: 186
- Joined: Wed Jul 12, 2006 4:58 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: DC DEV LINUX DISTRO
I also have tried to build .debs for dc-chain. I have added "DESTDIR" capability to the Makefile, left the config/build sections in debian/rules empty and put all the actual calls to "make" into the install section of debian/rules.
It always fails when building the first-pass sh-elf-gcc because it seems to use the System's "as" instead of the freshly built one. This might be because of the DESTDIR stuff. One may have to split the packages up in order to get that bootstrapping process working (or look at other Debian crosscompiler packages as a reference). I will see if I can get it to work later today.
An easier solution would be to just create binary tarballs (like we had before) and convert them via "alien".
It always fails when building the first-pass sh-elf-gcc because it seems to use the System's "as" instead of the freshly built one. This might be because of the DESTDIR stuff. One may have to split the packages up in order to get that bootstrapping process working (or look at other Debian crosscompiler packages as a reference). I will see if I can get it to work later today.
An easier solution would be to just create binary tarballs (like we had before) and convert them via "alien".
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
Re: DC DEV LINUX DISTRO
For Linux, the CodeBlocks IDE configuration tool would probably be better written in Python or something similar. It has a built-in XML library, and is a hell of a lot simpler to do this kind of stuff in.
Depending on how the CodeBlocks config files work, it might be possible to just include a pre-configured setup as a separate CodeBlocks DC Support package, with hard-coded paths to the compilers installed by the DC compilers package.
Depending on how the CodeBlocks config files work, it might be possible to just include a pre-configured setup as a separate CodeBlocks DC Support package, with hard-coded paths to the compilers installed by the DC compilers package.
- emptythought
- DC Developer
- Posts: 2015
- Joined: Wed Jan 30, 2002 9:14 am
- Location: UNITED STATES NRN
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: DC DEV LINUX DISTRO
You mean just make a .deb or something, including the CodeBlocks config file pre-configured with the DC compiler settings and CodeBlocks? I don't understand 100%.Depending on how the CodeBlocks config files work, it might be possible to just include a pre-configured setup as a separate CodeBlocks DC Support package, with hard-coded paths to the compilers installed by the DC compilers package.
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
Re: DC DEV LINUX DISTRO
Yeah, pretty much. We'll know in advance where all the toolchain files are, so we can just pre-configure everything.
- emptythought
- DC Developer
- Posts: 2015
- Joined: Wed Jan 30, 2002 9:14 am
- Location: UNITED STATES NRN
- Has thanked: 0
- Been thanked: 0
- Contact:
Re: DC DEV LINUX DISTRO
Here's a freshly pre-configured default.conf.BlackAura wrote:Yeah, pretty much. We'll know in advance where all the toolchain files are, so we can just pre-configure everything.
dcscripts.zip has the DC project files but I forgot to change them to look for "Dreamcast sh-elf" rather than "Dreamcast sh-elf (dependent)." On Windows, they go in C:\Program Files\CodeBlocks\share\CodeBlocks\templates\wizard but I can't find the template folder on Linux. Also on Windows C:\Program Files\CodeBlocks\share\CodeBlocks\templates\wizard\config.script needs to be edited so the DC scripts are registered.
Code: Select all
//
// project wizards
//
RegisterWizard(wizProject, _T("dreamcast"), _T("Dreamcast application"), _T("Dreamcast"));
RegisterWizard(wizProject, _T("empty"), _T("Empty project"), _T("Console"));
- Attachments
-
- dcscripts.zip
- (13.7 KiB) Downloaded 150 times
-
- default.zip
- (4.23 KiB) Downloaded 145 times
- Neoblast
- DC Developer
- Posts: 315
- Joined: Sat Dec 01, 2007 8:51 am
- Has thanked: 5 times
- Been thanked: 1 time
Re: DC DEV LINUX DISTRO
The perfect linux distro to make this is slax
www.slax.org
Pretty, "easy" to use and customisable...
www.slax.org
Pretty, "easy" to use and customisable...