KOS Examples not Building

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
Kegak
DCEmu Newbie
DCEmu Newbie
Posts: 2
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Thu Apr 18, 2024 11:26 pm
Has thanked: 1 time
Been thanked: 0

KOS Examples not Building

Post by Kegak »

I'm trying to get into dreamcast development and I'm having an issue where all the KOS examples are not building, the specific error is:
make[3]: Entering directory '/opt/toolchains/dc/kos/examples/dreamcast/kgl/basic/vq'
rm -f vq-example.elf
/opt/toolchains/dc/kos/utils/vqenc/vqenc -t -v fruit.jpg
make[3]: /opt/toolchains/dc/kos/utils/vqenc/vqenc: No such file or directory
make[3]: *** [Makefile:23: fruit.vq] Error 127
make[3]: Leaving directory '/opt/toolchains/dc/kos/examples/dreamcast/kgl/basic/vq'
make[2]: *** [Makefile:16: _dir_vq] Error 2
make[2]: Leaving directory '/opt/toolchains/dc/kos/examples/dreamcast/kgl/basic'
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/opt/toolchains/dc/kos/examples/dreamcast/kgl'
/bin/sh: 1: exit: Illegal number: -1
make: *** [Makefile:16: all] Error 2
Any help would be greatly appreciated!
TapamN
DC Developer
DC Developer
Posts: 108
Joined: Sun Oct 04, 2009 11:13 am
Has thanked: 2 times
Been thanked: 90 times

Re: KOS Examples not Building

Post by TapamN »

It looks like it's trying to use vqenc, but it hasn't been built yet. Go to the /opt/toolchains/dc/kos/utils/vqenc/ directory and build vqenc.
These users thanked the author TapamN for the post:
Kegak
Kegak
DCEmu Newbie
DCEmu Newbie
Posts: 2
Joined: Thu Apr 18, 2024 11:26 pm
Has thanked: 1 time
Been thanked: 0

Re: KOS Examples not Building

Post by Kegak »

TapamN wrote: Fri Apr 19, 2024 7:25 am It looks like it's trying to use vqenc, but it hasn't been built yet. Go to the /opt/toolchains/dc/kos/utils/vqenc/ directory and build vqenc.
Tried this and got this error:

Code: Select all

cc -O2 -Wall -DINLINE=inline -I/usr/local/include    -c -o get_image_png.o get_image_png.c
get_image_png.c:11:10: fatal error: png.h: No such file or directory
   11 | #include <png.h>
      |          ^~~~~~~
compilation terminated.
make: *** [<builtin>: get_image_png.o] Error 1
So it looks like I need to download png.h, but I'm unsure how to go about that

EDIT: Looks like I fixed it with:

Code: Select all

sudo apt-get install libxtst-dev libpng++-dev
Thanks for your help!
Post Reply