Issues with compiling a program with KallistiOS
- assortedkingdede
- DCEmu Newbie
- Posts: 8
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Wed May 20, 2020 9:08 pm
- Has thanked: 1 time
- Been thanked: 0
Issues with compiling a program with KallistiOS
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!
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!
- SiZiOUS
- DC Developer
- Posts: 404
- Joined: Fri Mar 05, 2004 2:22 pm
- Location: France
- Has thanked: 27 times
- Been thanked: 19 times
- Contact:
Re: Issues with compiling a program with KallistiOS
This sounds like a toolchain misconfiguration issue. Since you are on Windows 10, you have 3 options:
- Use Windows Subsystem for Linux (WSL).
- Use a Docker image.
- Use DreamSDK.
- assortedkingdede
- DCEmu Newbie
- Posts: 8
- Joined: Wed May 20, 2020 9:08 pm
- Has thanked: 1 time
- Been thanked: 0
Re: Issues with compiling a program with KallistiOS
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!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).
- Use Windows Subsystem for Linux (WSL).
- Use a Docker image.
- Use DreamSDK.
- SiZiOUS
- DC Developer
- Posts: 404
- Joined: Fri Mar 05, 2004 2:22 pm
- Location: France
- Has thanked: 27 times
- Been thanked: 19 times
- Contact:
Re: Issues with compiling a program with KallistiOS
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
- 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 thanked the author SiZiOUS for the post:
- assortedkingdede
- assortedkingdede
- DCEmu Newbie
- Posts: 8
- Joined: Wed May 20, 2020 9:08 pm
- Has thanked: 1 time
- Been thanked: 0
Re: Issues with compiling a program with KallistiOS
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.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.
- assortedkingdede
- DCEmu Newbie
- Posts: 8
- Joined: Wed May 20, 2020 9:08 pm
- Has thanked: 1 time
- Been thanked: 0
Re: Issues with compiling a program with KallistiOS
Nvm Just relized that you were talking about creating a new pakage of DreamSDK that works better, Thanks for the Help!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.
- SiZiOUS
- DC Developer
- Posts: 404
- Joined: Fri Mar 05, 2004 2:22 pm
- Location: France
- Has thanked: 27 times
- Been thanked: 19 times
- Contact:
Re: Issues with compiling a program with KallistiOS
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)
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)
- assortedkingdede
- DCEmu Newbie
- Posts: 8
- Joined: Wed May 20, 2020 9:08 pm
- Has thanked: 1 time
- Been thanked: 0
Re: Issues with compiling a program with KallistiOS
How should I try this?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)
- BB Hood
- DC Developer
- Posts: 189
- Joined: Fri Mar 30, 2007 12:09 am
- Has thanked: 41 times
- Been thanked: 10 times
Re: Issues with compiling a program with KallistiOS
You will execute the command[ DreamSDK-R2-Setup.exe /LOG="C:\FileName.log" ] through a commandline.
- These users thanked the author BB Hood for the post:
- Ian Robinson