Issues with compiling a program with KallistiOS

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
User avatar
assortedkingdede
DCEmu Newbie
DCEmu Newbie
Posts: 8
Joined: Wed May 20, 2020 9:08 pm
Has liked: 1 time
Been liked: 0

Issues with compiling a program with KallistiOS

Post by assortedkingdede » Sat May 23, 2020 5:22 pm

I have been having trouble getting KallistiOS to compile, here is the text from the command terminal:

Owner@Owner-PC /usr/local/dc/kos/examples/dreamcast/sound/hello-mp3
$ make
rm -f mp3test.elf romdisk.o mp3test.o
rm -f romdisk.o romdisk.img
/usr/local/dc/kos/utils/genromfs/genromfs -f romdisk.img -d romdisk -v
0 rom 5ec9650a [0xffffffff, 0xffffffff] 37777777777, sz 0, at 0x0
1 . [0xbc26d2f8, 0xf011c ] 0040755, sz 0, at 0x20
1 .. [0xbc26d2f8, 0xf010f ] 0040755, sz 0, at 0x40 [link to 0x20 ]
1 .keepme [0xbc26d2f8, 0xf011d ] 0100755, sz 0, at 0x60
1 test.mp3 [0xbc26d2f8, 0x60465 ] 0100755, sz 5160750, at 0x80
/usr/local/dc/kos/utils/bin2o/bin2o romdisk.img romdisk romdisk.o
/usr/local/dc/kos/utils/bin2o/bin2o: line 18: /opt/toolchains/dc/sh-elf/bin/sh-elf-as: No such file or directory
make: *** [Makefile:20: romdisk.o] Error 1

I have traced the error back to bin2o but I cannot figure out why it is happening (I'm a noob at C programming).
Any information will help, Thanks!
User avatar
SiZiOUS
DC Developer
DC Developer
Posts: 393
Joined: Fri Mar 05, 2004 2:22 pm
Location: France
Has liked: 17 times
Been liked: 11 times
Contact:

Re: Issues with compiling a program with KallistiOS

Post by SiZiOUS » Mon May 25, 2020 4:06 pm

This sounds like a toolchain misconfiguration issue. Since you are on Windows 10, you have 3 options: If you are ready to dig on your issue, I think you have a PATH issue. You may check your environ.sh file vs. the path where your sh-elf toolchain is installed (default is in /opt/toolchains/dc/sh-elf).
User avatar
assortedkingdede
DCEmu Newbie
DCEmu Newbie
Posts: 8
Joined: Wed May 20, 2020 9:08 pm
Has liked: 1 time
Been liked: 0

Re: Issues with compiling a program with KallistiOS

Post by assortedkingdede » Mon May 25, 2020 9:05 pm

SiZiOUS wrote:
Mon May 25, 2020 4:06 pm
This sounds like a toolchain misconfiguration issue. Since you are on Windows 10, you have 3 options: If you are ready to dig on your issue, I think you have a PATH issue. You may check your environ.sh file vs. the path where your sh-elf toolchain is installed (default is in /opt/toolchains/dc/sh-elf).
I started to setup DreamSDK but the setup program does not recognize the installation of Git even though the command prompt says otherwise. Any info will help, Thanks!
User avatar
SiZiOUS
DC Developer
DC Developer
Posts: 393
Joined: Fri Mar 05, 2004 2:22 pm
Location: France
Has liked: 17 times
Been liked: 11 times
Contact:

Re: Issues with compiling a program with KallistiOS

Post by SiZiOUS » Tue May 26, 2020 3:56 pm

DreamSDK R3 will be easier on these points. For R2, the current release, you have to install:
- Git
- SVN
- Python 2.7 32-bit (not 64-bit and not another version)

When installing all of these components please be sure to check the ‘Add in PATH’ option, i.e. you may check your installation after by opening a command-prompt and the following commands:
- git --version
- svn --version
- python --version

All of these commands should return something. If this is the case then the DreamSDK R2 package will install.
These users liked the author SiZiOUS for the post:
assortedkingdede
User avatar
assortedkingdede
DCEmu Newbie
DCEmu Newbie
Posts: 8
Joined: Wed May 20, 2020 9:08 pm
Has liked: 1 time
Been liked: 0

Re: Issues with compiling a program with KallistiOS

Post by assortedkingdede » Tue May 26, 2020 6:50 pm

SiZiOUS wrote:
Tue May 26, 2020 3:56 pm
DreamSDK R3 will be easier on these points. For R2, the current release, you have to install:
- Git
- SVN
- Python 2.7 32-bit (not 64-bit and not another version)

When installing all of these components please be sure to check the ‘Add in PATH’ option, i.e. you may check your installation after by opening a command-prompt and the following commands:
- git --version
- svn --version
- python --version

All of these commands should return something. If this is the case then the DreamSDK R2 package will install.
Git is the only install DreamSDK won't recognize even after checking the command prompt (The command prompt responded with "git version 2.26.2.windows.1" and python and svn also work.
User avatar
assortedkingdede
DCEmu Newbie
DCEmu Newbie
Posts: 8
Joined: Wed May 20, 2020 9:08 pm
Has liked: 1 time
Been liked: 0

Re: Issues with compiling a program with KallistiOS

Post by assortedkingdede » Tue May 26, 2020 8:30 pm

SiZiOUS wrote:
Tue May 26, 2020 3:56 pm
DreamSDK R3 will be easier on these points. For R2, the current release, you have to install:
- Git
- SVN
- Python 2.7 32-bit (not 64-bit and not another version)

When installing all of these components please be sure to check the ‘Add in PATH’ option, i.e. you may check your installation after by opening a command-prompt and the following commands:
- git --version
- svn --version
- python --version

All of these commands should return something. If this is the case then the DreamSDK R2 package will install.
Nvm Just relized that you were talking about creating a new pakage of DreamSDK that works better, Thanks for the Help!
User avatar
SiZiOUS
DC Developer
DC Developer
Posts: 393
Joined: Fri Mar 05, 2004 2:22 pm
Location: France
Has liked: 17 times
Been liked: 11 times
Contact:

Re: Issues with compiling a program with KallistiOS

Post by SiZiOUS » Wed May 27, 2020 12:58 am

Yes DreamSDK R3 is currently in beta stage but will be so much better in all ways.

For the current release (R2), may you try the following:
DreamSDK-R2-Setup.exe /LOG="C:\FileName.log"

Then post the content of the log file here (strip confidential information if any)
User avatar
assortedkingdede
DCEmu Newbie
DCEmu Newbie
Posts: 8
Joined: Wed May 20, 2020 9:08 pm
Has liked: 1 time
Been liked: 0

Re: Issues with compiling a program with KallistiOS

Post by assortedkingdede » Wed May 27, 2020 10:06 am

SiZiOUS wrote:
Wed May 27, 2020 12:58 am
Yes DreamSDK R3 is currently in beta stage but will be so much better in all ways.

For the current release (R2), may you try the following:
DreamSDK-R2-Setup.exe /LOG="C:\FileName.log"

Then post the content of the log file here (strip confidential information if any)
How should I try this?
User avatar
BB Hood
Insane DCEmu
Insane DCEmu
Posts: 174
Joined: Fri Mar 30, 2007 12:09 am
Has liked: 17 times
Been liked: 5 times

Re: Issues with compiling a program with KallistiOS

Post by BB Hood » Wed May 27, 2020 1:55 pm

You will execute the command[ DreamSDK-R2-Setup.exe /LOG="C:\FileName.log" ] through a commandline.
These users liked the author BB Hood for the post:
Ian Robinson
Post Reply