Home | Forums | What's new | Resources | |
How do I get the KPIT Compiler? |
slinga - Dec 21, 2003 |
slinga | Dec 21, 2003 | |||
Hey guys, I submitted my email for request to download the KPIT compiler from: http://www.kpitgnutools.com/..., a while ago. I still haven't heard from them back. If it's free software, why do they have to preapprove everybody who downloads it? Is this even the right place to get the compiler? Also what does Antime mean when he refers to "tool chain" on his site? I'm asking all this stuff because I have the rough outline of my guide to newbs done, but I was waiting to get the KPIT compiler before I started to write up the technical stuff. A lot of the devers have said that the Sega compiler should be avoided so I wanted to have the guide explaining how to install and use the new KPIT compiler (something which obviously I have no idea how to do yet). Thanks in advance. |
slinga | Dec 22, 2003 | |||
Thanks for your fast responses. I got a reply on my school email address last night (favor university addresses over yahoo addresses??) with the login information. I'm not sure which file I need to download though, is it "GNUSH v0303 Windows Tool Chain (COFF) - 2nd Rel.", "GNUSH v0304 Windows Tool Chain (COFF)" or something else? (I'm assuming SH stands for the same thing as SH in SH2 could be completely wrong though, oh well time for guess and check...) |
antime | Dec 22, 2003 | |||
v0304 is the latest release as of writing so I suggest you get that one. If you intend to use the SGL or SBL libraries get the COFF version. Don't download the GNUH8 toolchain, it's for Renesas' H8 series microcontrollers. |
slinga | Dec 24, 2003 | |||||||
Hey guys, I've been at it for a while, I'm still stuck. I installed “GNUSH v0304 Windows Tool Chain (COFF)” to D:\satprog\GNUSHv0304-COFF. I then installed SGL302j to d:\satprog\GNUSHv0304-COFF\sh-coff\sgl. I then modified the gnu bat file so it's now as follows:
When I try and compile code in the SGL\Samples directory, I get an error saying there's no targets to make. If I try to manually specify it to compile (sh-coff-gcc), I messages saying that there are errors in the SGL header files.
For all it's bloatware visual studio's looking mighty sweet right now...any idea what I'm doing wrong? If it's giving me errors in the header file, I'm guessing I set up the paths correctly, I'm guessing I'm missing a step somewhere. |
antime | Dec 25, 2003 | |||
Try installing ExCyber's cleaned SGL version, the old one has several DOS-isms that don't work anymore (the default makefile must be named "Makefile", try "make -f MAKEFILE" instead, and C spec states that source files must end in a newline which is why you get the errors in the header files. There's probably a compiler switch to get rid of the error, check the docs.) Finally, I'd strongly advise against installing the libs under the compiler's directories. That's one of the things that's bound to give you troubles sooner or later. |
slinga | Dec 27, 2003 | |||||||
Hey Antime, I'm still at it. I've installed ExCyber's SGL to D:\satprog\sgl, and I have the compiler in D:\satprog\GNUSHv0304-COFF. I modified the compiler's environment variables, and it seems to working. I also made the modifications that Takashi said to in the makefile in the Common directory. When I try to make something the Common directory I get this output:
The *.o file is created, but no sl.bin. If I try to make something in another directory I get this error:
Any idea what I'm doing wrong? Thanks in advance, and sorry for bugging you so much. No wait I think I got it...needed to modify the makefile.template file...seems to be creating a .bin now... Edit #2: Still lost. It's definitely a problem with my makefiles though. |
ExCyber | Dec 27, 2003 | ||||
Oops? I dunno, I thought I wrapped all those paths in informative #ifdef / #error bits, but maybe one slipped through somehow; the release was slightly in haste. Make sure that SGLDIR/SGLIDR/SGLLDR are set correctly in the main Makefile.template. edit: D'oh! Didn't see your edit. What's the output from a build process now? |
slinga | Dec 27, 2003 | ||||
I made a new directory, D:\satprog\myproj. In myProj I copied over the common directory from the samples directory, and modified the makefile. I also copied over the makefile.template file, and made some changes to it. I then copied over one of the directories from the samples folder, and modified it to run a simple test code, it works fine now. Hopefully my results will be repeatable tomorrow
I'll hopefully have the first portion of the guide (installing KPIT Compiler + SGL) ready by tomorrow. |