Wiki feedback

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.
User avatar
bogglez
Moderator
Moderator
Posts: 567
Joined: Sun Apr 20, 2014 9:45 am

Re: Wiki feedback

Post by bogglez » Sat Jun 10, 2017 9:20 am

Added the guide "Romdisk Swapping" in the "General" section: http://dcemulation.org/?title=Romdisk_Swapping
Wiki & tutorials: http://dcemulation.org/?title=Development
Wiki feedback: viewtopic.php?f=29&t=103940
My libgl playground (not for production): https://bitbucket.org/bogglez/libgl15
My lxdream fork (with small fixes): https://bitbucket.org/bogglez/lxdream
AtariOwl
DCEmu Freak
DCEmu Freak
Posts: 91
Joined: Fri May 23, 2008 5:57 am

Re: Wiki feedback

Post by AtariOwl » Wed May 16, 2018 5:08 am

Hi

Trying to install it all again after my HD crash.

Ran through the script, but the kos make is not happening

Code: Select all

jve MINGW32 /opt/toolchains/dc/kos
$ make
for i in utils kernel addons ; do make -C $i || exit -1; done
make[1]: Entering directory '/opt/toolchains/dc/kos/utils'
for i in genromfs wav2adpcm vqenc scramble dcbumpgen; do make -C $i; done
make[2]: Entering directory '/opt/toolchains/dc/kos/utils/genromfs'
cc -O2 -Wall    -c -o genromfs.o genromfs.c
genromfs.c:83:10: fatal error: netinet/in.h: No such file or directory
 #include <netinet/in.h> /* Consts & structs defined by the internet system */
          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [<builtin>: genromfs.o] Error 1
make[2]: Leaving directory '/opt/toolchains/dc/kos/utils/genromfs'
make[2]: Entering directory '/opt/toolchains/dc/kos/utils/wav2adpcm'
cc -O2 -Wall     wav2adpcm.c   -o wav2adpcm
make[2]: Leaving directory '/opt/toolchains/dc/kos/utils/wav2adpcm'
make[2]: Entering directory '/opt/toolchains/dc/kos/utils/vqenc'
cc -O2 -Wall -DINLINE=inline -I/usr/local/include    -c -o vqenc.o vqenc.c
vqenc.c: In function 'create_downscaled_map':
vqenc.c:575:44: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=]
         printf("create_downscaled_map(%d %lx)\n", res, (uintptr_t)oneup);
                                          ~~^           ~~~~~~~~~~~~~~~~
                                          %x
vqenc.c:575:44: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=]
         printf("create_downscaled_map(%d %lx)\n", res, (uintptr_t)oneup);
                                          ~~^           ~~~~~~~~~~~~~~~~
                                          %x
cc -O2 -Wall -DINLINE=inline -I/usr/local/include    -c -o get_image.o get_image.c
cc -O2 -Wall -DINLINE=inline -I/usr/local/include    -c -o get_image_jpg.o get_image_jpg.c
cc -O2 -Wall -DINLINE=inline -I/usr/local/include    -c -o get_image_png.o get_image_png.c
cc -O2 -Wall -DINLINE=inline -I/usr/local/include    -c -o readpng.o readpng.c
cc -o vqenc vqenc.o get_image.o get_image_jpg.o get_image_png.o readpng.o -lpng -ljpeg -lz -lm -L/usr/local/lib
make[2]: Leaving directory '/opt/toolchains/dc/kos/utils/vqenc'
make[2]: Entering directory '/opt/toolchains/dc/kos/utils/scramble'
cc -o scramble scramble.c
make[2]: Leaving directory '/opt/toolchains/dc/kos/utils/scramble'
make[2]: Entering directory '/opt/toolchains/dc/kos/utils/dcbumpgen'
cc -O2 -Wall -DINLINE=inline -I/usr/local/include   -c -o dcbumpgen.o dcbumpgen.c
cc -O2 -Wall -DINLINE=inline -I/usr/local/include   -c -o get_image.o get_image.c
cc -O2 -Wall -DINLINE=inline -I/usr/local/include   -c -o get_image_jpg.o get_image_jpg.c
cc -O2 -Wall -DINLINE=inline -I/usr/local/include   -c -o get_image_png.o get_image_png.c
cc -O2 -Wall -DINLINE=inline -I/usr/local/include   -c -o readpng.o readpng.c
cc -o dcbumpgen dcbumpgen.o get_image.o get_image_jpg.o get_image_png.o readpng.o -s -lpng -ljpeg -lm -lz -L/usr/local/lib
make[2]: Leaving directory '/opt/toolchains/dc/kos/utils/dcbumpgen'
make[1]: Leaving directory '/opt/toolchains/dc/kos/utils'
make[1]: Entering directory '/opt/toolchains/dc/kos/kernel'
Makefile:28: warning: overriding recipe for target 'clean'
/opt/toolchains/dc/kos/Makefile.prefab:19: warning: ignoring old recipe for target 'clean'
make -C  arch
make[2]: Entering directory '/opt/toolchains/dc/kos/kernel/arch'
make -C dreamcast
make[3]: Entering directory '/opt/toolchains/dc/kos/kernel/arch/dreamcast'
make -C  fs
make[4]: Entering directory '/opt/toolchains/dc/kos/kernel/arch/dreamcast/fs'
kos-cc  -c fs_iso9660.c -o fs_iso9660.o
/opt/toolchains/dc/kos/utils/gnu_wrappers/kos-cc: line 50: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc: No such file or directory
make[4]: *** [/opt/toolchains/dc/kos/Makefile.rules:13: fs_iso9660.o] Error 127
make[4]: Leaving directory '/opt/toolchains/dc/kos/kernel/arch/dreamcast/fs'
make[3]: *** [/opt/toolchains/dc/kos/Makefile.rules:45: _dir_fs] Error 2
make[3]: Leaving directory '/opt/toolchains/dc/kos/kernel/arch/dreamcast'
make[2]: *** [Makefile:8: all] Error 2
make[2]: Leaving directory '/opt/toolchains/dc/kos/kernel/arch'
make[1]: *** [/opt/toolchains/dc/kos/Makefile.rules:45: _dir_arch] Error 2
make[1]: Leaving directory '/opt/toolchains/dc/kos/kernel'
make: *** [Makefile:27: all] Error 255

Hmm i vaguely remember this before
AtariOwl
DCEmu Freak
DCEmu Freak
Posts: 91
Joined: Fri May 23, 2008 5:57 am

Re: Wiki feedback

Post by AtariOwl » Wed May 16, 2018 10:29 am

Ahaaaa found it.. sorry to be a pest i shall push on
AtariOwl
DCEmu Freak
DCEmu Freak
Posts: 91
Joined: Fri May 23, 2008 5:57 am

Re: Wiki feedback

Post by AtariOwl » Thu May 17, 2018 4:46 am

No... i'm back where i was earlier and this time the places i found the genromfs files are missing :(

Hmmm it seems like a whole chunk is missing

Code: Select all

/opt/toolchains/dc/kos/utils/gnu_wrappers/kos-cc: line 50: /opt/toolchains/dc/sh-elf/bin/sh-elf-gcc: No such file or directory
There should be an sh-elf directory in /opt/toolchains/dc?

There's nothing there but kos and kos-ports

OK stepping through its going wrong at the sh download.sh part

OK thats done now its the make for make erase=1 that fails

Code: Select all

$ make erase=1
patch -N -d gcc-4.7.3 -p1 < /opt/toolchains/dc/kos/utils/dc-chain/patches/gcc-4.7.3-kos.diff
make: *** [Makefile:108: /opt/toolchains/dc/kos/utils/dc-chain/patches/gcc-4.7.3-kos.diff] Error 127

nymus
DC Developer
DC Developer
Posts: 945
Joined: Tue Feb 11, 2003 4:12 pm
Location: In a Dream

Re: Wiki feedback

Post by nymus » Sat May 19, 2018 7:53 pm

Getting errors in building genromfs means that you were already compiling kos. You would have had the tools already built to do this so are you getting errors rebuilding them?

I personally prefer to install my dc tools in my home directory for permissions and system separation. Also, what did you mean by you "found it" referring to the genromfs include error? (almost) Everyithing in the utils directory is meant to compile against your host includes (you probably know this, but I always get errors here because I'm on an OS X Lion MacBook using macports libraries)
behold the mind
inspired by Dreamcast
AtariOwl
DCEmu Freak
DCEmu Freak
Posts: 91
Joined: Fri May 23, 2008 5:57 am

Re: Wiki feedback

Post by AtariOwl » Sun May 20, 2018 6:28 pm

Sorry by found it i just mean i had found the previous time i had the same issues. It was a muc more successful effort last time

Then i started working backwards to see just how early it failed.
The answer... very early


essentially nothing built
nymus
DC Developer
DC Developer
Posts: 945
Joined: Tue Feb 11, 2003 4:12 pm
Location: In a Dream

Re: Wiki feedback

Post by nymus » Sun May 20, 2018 9:13 pm

Coincidentally, the top of page 4 in this thread shows you encountered the same genromfs error before. Assuming you resolved that one and are now having trouble building the tools, it might help to know which stage is failing and the compiler error. I'm not using Windows so I can't be as useful as others, but it just occurred to me that this could be a great way to make use of the new Linux environment built into Windows 10!

All the best getting this sorted out.
behold the mind
inspired by Dreamcast
AtariOwl
DCEmu Freak
DCEmu Freak
Posts: 91
Joined: Fri May 23, 2008 5:57 am

Re: Wiki feedback

Post by AtariOwl » Mon May 21, 2018 5:47 pm

Yes that was what i was referring to about found it

i have now started working through the installation by hand
the download.sh failed and so i had to do that individually, then run unpach.sh then the make erase=1 failed
and at that pint i had to go away

for a few days

its frustrating
Post Reply