building C++ Compiler on Cygwin for sh4 --> little pb !
-
- DCEmu Newbie
- Posts: 5
- https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
- Joined: Tue Dec 17, 2002 1:59 pm
- Has thanked: 0
- Been thanked: 0
building C++ Compiler on Cygwin for sh4 --> little pb !
hi,it's my first post on this board and sorry for my bad english, i'm french !
I tried to build a cgcc c/c++ compiler ( http://www.hangar-eleven.de/en/devdc-gcc-sh4-xgcc.html ) but the following file is missing :
sh-elf-g++.exe
can anyone send me this file ?? and "vqenc.exe" of Kos 1.1.9 ??
thanx
I tried to build a cgcc c/c++ compiler ( http://www.hangar-eleven.de/en/devdc-gcc-sh4-xgcc.html ) but the following file is missing :
sh-elf-g++.exe
can anyone send me this file ?? and "vqenc.exe" of Kos 1.1.9 ??
thanx
??? Just a little new'b ! ???
-
- Damn Dirty Ape
- Posts: 5031
- Joined: Thu Nov 07, 2002 11:11 pm
- Location: Saugerties, NY
- Has thanked: 0
- Been thanked: 0
-
- Damn Dirty Ape
- Posts: 5031
- Joined: Thu Nov 07, 2002 11:11 pm
- Location: Saugerties, NY
- Has thanked: 0
- Been thanked: 0
-
- Damn Dirty Ape
- Posts: 5031
- Joined: Thu Nov 07, 2002 11:11 pm
- Location: Saugerties, NY
- Has thanked: 0
- Been thanked: 0
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
do you have your environ file set up like this
# Build architecture
export KOS_ARCH="dreamcast"
# Compiler base strings
export KOS_CC_BASE="/usr/local/dc/sh-elf"
export KOS_CC_PREFIX="sh-elf"
# KOS base paths
export KOS_BASE="/usr/local/dc/kos"
export KOS_INCS="${KOS_BASE}/include"
# Make utility
export KOS_MAKE="make"
# Load utility
export KOS_LOADER="dc-tool -x"
# Genromfs utility
export KOS_GENROMFS="${KOS_BASE}/utils/genromfs/genromfs"
# SH-4 GCC paths
export KOS_CC="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-gcc"
export KOS_CCPLUS="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-g++"
export KOS_AS="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-as"
export KOS_AR="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ar"
export KOS_OBJCOPY="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-objcopy"
export KOS_LD="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ld"
export KOS_STRIP="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-strip"
export KOS_CFLAGS="-Wall -g -ml -m4-single-only -O2 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls"
export KOS_CPPFLAGS="-fno-operator-names -fno-rtti -fno-exceptions"
export KOS_AFLAGS="-little"
export KOS_LDFLAGS="-ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000"
# ARM7 GCC paths
export DC_ARM7BASE="/usr/local/dc/arm-elf"
export DC_ARM7CC="${DC_ARM7BASE}/bin/arm-elf-gcc"
export DC_ARM7AS="${DC_ARM7BASE}/bin/arm-elf-as"
export DC_ARM7AR="${DC_ARM7BASE}/bin/arm-elf-ar"
export DC_ARM7OBJCOPY="${DC_ARM7BASE}/bin/arm-elf-objcopy"
export DC_ARM7LD="${DC_ARM7BASE}/bin/arm-elf-ld"
export DC_ARM7CFLAGS="-mcpu=arm7 -Wall -O3"
export DC_ARM7AFLAGS="-marm7"
# Build architecture
export KOS_ARCH="dreamcast"
# Compiler base strings
export KOS_CC_BASE="/usr/local/dc/sh-elf"
export KOS_CC_PREFIX="sh-elf"
# KOS base paths
export KOS_BASE="/usr/local/dc/kos"
export KOS_INCS="${KOS_BASE}/include"
# Make utility
export KOS_MAKE="make"
# Load utility
export KOS_LOADER="dc-tool -x"
# Genromfs utility
export KOS_GENROMFS="${KOS_BASE}/utils/genromfs/genromfs"
# SH-4 GCC paths
export KOS_CC="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-gcc"
export KOS_CCPLUS="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-g++"
export KOS_AS="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-as"
export KOS_AR="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ar"
export KOS_OBJCOPY="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-objcopy"
export KOS_LD="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-ld"
export KOS_STRIP="${KOS_CC_BASE}/bin/${KOS_CC_PREFIX}-strip"
export KOS_CFLAGS="-Wall -g -ml -m4-single-only -O2 -fno-builtin -fno-strict-aliasing -fomit-frame-pointer -fno-optimize-sibling-calls"
export KOS_CPPFLAGS="-fno-operator-names -fno-rtti -fno-exceptions"
export KOS_AFLAGS="-little"
export KOS_LDFLAGS="-ml -m4-single-only -nostartfiles -nostdlib -Wl,-Ttext=0x8c010000"
# ARM7 GCC paths
export DC_ARM7BASE="/usr/local/dc/arm-elf"
export DC_ARM7CC="${DC_ARM7BASE}/bin/arm-elf-gcc"
export DC_ARM7AS="${DC_ARM7BASE}/bin/arm-elf-as"
export DC_ARM7AR="${DC_ARM7BASE}/bin/arm-elf-ar"
export DC_ARM7OBJCOPY="${DC_ARM7BASE}/bin/arm-elf-objcopy"
export DC_ARM7LD="${DC_ARM7BASE}/bin/arm-elf-ld"
export DC_ARM7CFLAGS="-mcpu=arm7 -Wall -O3"
export DC_ARM7AFLAGS="-marm7"
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
-
- DCEmu Newbie
- Posts: 5
- Joined: Tue Dec 17, 2002 1:59 pm
- Has thanked: 0
- Been thanked: 0
my environ-dc.sh file si the same that your file (and kos, sh-elf, arm-elf directories are in usr/local/dc/)
when i have compliled the cgcc c/c++ compiler, the dos command freeze (called "rm") after a long time (4hours ?). Next time, after configuring kos, i write "make", and kos complile genromfs and wav2adpcm utils and next, stop because of vgenc ("collect2: Id returned 1 exit status...")
my e-mail adress is : gilbert.vaillant@voila.fr
thanx a lot![Smile :)](./images/smilies/icon_e_smile.gif)
when i have compliled the cgcc c/c++ compiler, the dos command freeze (called "rm") after a long time (4hours ?). Next time, after configuring kos, i write "make", and kos complile genromfs and wav2adpcm utils and next, stop because of vgenc ("collect2: Id returned 1 exit status...")
my e-mail adress is : gilbert.vaillant@voila.fr
thanx a lot
![Smile :)](./images/smilies/icon_e_smile.gif)
??? Just a little new'b ! ???
-
- DCEmu Newbie
- Posts: 5
- Joined: Tue Dec 17, 2002 1:59 pm
- Has thanked: 0
- Been thanked: 0
can you check if all needed files are in this list for a cgcc c/c++ compiler :
D:\Program_Files\DC_Dev\Cygwin\usr\local\dc\sh-elf\bin
. <REP> 12/12/02 20:39 .
.. <REP> 12/12/02 20:39 ..
LIST TXT 0 18/12/02 18:22 list.txt
SH-ELF~1 EXE 1 054 161 12/12/02 20:39 sh-elf-size.exe
SH-ELF~2 EXE 1 640 025 12/12/02 20:40 sh-elf-objdump.exe
SH-ELF~3 EXE 1 107 677 12/12/02 20:40 sh-elf-ar.exe
SH-ELF~4 EXE 1 051 339 12/12/02 20:40 sh-elf-strings.exe
SH-ELF~5 EXE 1 107 677 12/12/02 20:40 sh-elf-ranlib.exe
SH-ELF~6 EXE 1 595 066 12/12/02 20:40 sh-elf-objcopy.exe
SH-ELF~7 EXE 1 183 436 12/12/02 20:40 sh-elf-addr2line.exe
SH-ELF~8 EXE 563 766 12/12/02 20:40 sh-elf-readelf.exe
SH-ELF~9 EXE 1 209 380 12/12/02 20:40 sh-elf-nm.exe
SH-EL~10 EXE 1 595 066 12/12/02 20:41 sh-elf-strip.exe
SH-EL~11 EXE 186 030 12/12/02 20:41 sh-elf-c++filt.exe
SH-EL~12 EXE 1 634 696 12/12/02 20:42 sh-elf-as.exe
SH-EL~13 EXE 272 806 12/12/02 20:42 sh-elf-gasp.exe
SH-EL~14 EXE 1 413 893 12/12/02 20:42 sh-elf-gprof.exe
SH-EL~15 EXE 1 641 135 12/12/02 20:43 sh-elf-ld.exe
GCOV EXE 81 393 13/12/02 23:07 gcov.exe
GCCBUG 15 327 13/12/02 23:07 gccbug
SH-EL~16 EXE 211 027 13/12/02 23:09 sh-elf-cpp.exe
SH-EL~17 EXE 208 433 13/12/02 23:10 sh-elf-gcc.exe
Thanks Reaper2k2
D:\Program_Files\DC_Dev\Cygwin\usr\local\dc\sh-elf\bin
. <REP> 12/12/02 20:39 .
.. <REP> 12/12/02 20:39 ..
LIST TXT 0 18/12/02 18:22 list.txt
SH-ELF~1 EXE 1 054 161 12/12/02 20:39 sh-elf-size.exe
SH-ELF~2 EXE 1 640 025 12/12/02 20:40 sh-elf-objdump.exe
SH-ELF~3 EXE 1 107 677 12/12/02 20:40 sh-elf-ar.exe
SH-ELF~4 EXE 1 051 339 12/12/02 20:40 sh-elf-strings.exe
SH-ELF~5 EXE 1 107 677 12/12/02 20:40 sh-elf-ranlib.exe
SH-ELF~6 EXE 1 595 066 12/12/02 20:40 sh-elf-objcopy.exe
SH-ELF~7 EXE 1 183 436 12/12/02 20:40 sh-elf-addr2line.exe
SH-ELF~8 EXE 563 766 12/12/02 20:40 sh-elf-readelf.exe
SH-ELF~9 EXE 1 209 380 12/12/02 20:40 sh-elf-nm.exe
SH-EL~10 EXE 1 595 066 12/12/02 20:41 sh-elf-strip.exe
SH-EL~11 EXE 186 030 12/12/02 20:41 sh-elf-c++filt.exe
SH-EL~12 EXE 1 634 696 12/12/02 20:42 sh-elf-as.exe
SH-EL~13 EXE 272 806 12/12/02 20:42 sh-elf-gasp.exe
SH-EL~14 EXE 1 413 893 12/12/02 20:42 sh-elf-gprof.exe
SH-EL~15 EXE 1 641 135 12/12/02 20:43 sh-elf-ld.exe
GCOV EXE 81 393 13/12/02 23:07 gcov.exe
GCCBUG 15 327 13/12/02 23:07 gccbug
SH-EL~16 EXE 211 027 13/12/02 23:09 sh-elf-cpp.exe
SH-EL~17 EXE 208 433 13/12/02 23:10 sh-elf-gcc.exe
Thanks Reaper2k2
??? Just a little new'b ! ???
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
use kos 1.18 i get the same error for kos1.19 im looking into it
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
-
- DCEmu Newbie
- Posts: 5
- Joined: Tue Dec 17, 2002 1:59 pm
- Has thanked: 0
- Been thanked: 0
Try this for kos Reaper2k2 :
Build error for SDL addon
I downloaded the source package (tar.gz) and got this error when compiling
the source
---------
/usr/local/dc/sh-elf/bin/sh-elf-ar rcs /usr/local/dc/kos-1.1.9/lib/libkosh.a
builtin.o chdir.o kosh.o input.o
make[2]: Leaving directory `/usr/local/dc/kos-1.1.9/addons/libkosh'
make -C SDL
make[2]: Entering directory `/usr/local/dc/kos-1.1.9/addons/SDL'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `/usr/local/dc/kos-1.1.9/addons/SDL'
make[1]: *** [build-sdl] Error 2
make[1]: Leaving directory `/usr/local/dc/kos-1.1.9/addons'
make: *** [build-addons] Error 2
---------
I then moved out the SDL files from the "/addons/SDL/base/" directory to the
/addons/SDL/ directory and compiled again, this time with no errors.
/Viktor
And for me, what do i need to do ?
Build error for SDL addon
I downloaded the source package (tar.gz) and got this error when compiling
the source
---------
/usr/local/dc/sh-elf/bin/sh-elf-ar rcs /usr/local/dc/kos-1.1.9/lib/libkosh.a
builtin.o chdir.o kosh.o input.o
make[2]: Leaving directory `/usr/local/dc/kos-1.1.9/addons/libkosh'
make -C SDL
make[2]: Entering directory `/usr/local/dc/kos-1.1.9/addons/SDL'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `/usr/local/dc/kos-1.1.9/addons/SDL'
make[1]: *** [build-sdl] Error 2
make[1]: Leaving directory `/usr/local/dc/kos-1.1.9/addons'
make: *** [build-addons] Error 2
---------
I then moved out the SDL files from the "/addons/SDL/base/" directory to the
/addons/SDL/ directory and compiled again, this time with no errors.
/Viktor
And for me, what do i need to do ?
??? Just a little new'b ! ???
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
Well i use cvs to update kos plus ive got many other addon libs that are not included in kos 1.19 so ive gone back to my modded version
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
-
- DCEmu Newbie
- Posts: 5
- Joined: Tue Dec 17, 2002 1:59 pm
- Has thanked: 0
- Been thanked: 0
-
- DC Developer
- Posts: 9951
- Joined: Sun Dec 30, 2001 9:02 am
- Has thanked: 0
- Been thanked: 1 time
I couldn't get vqenc to compile either - it looks like it's looking for something from libjpeg, but for some reason it can't find it. It'll load the library, but it just won't find the functions, and that's with a freshly compiled version of libjpeg.
I might try compiling it using some other C compiler and seeing what I get. It might be a cygwin problem or something.
I might try compiling it using some other C compiler and seeing what I get. It might be a cygwin problem or something.
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
THINK one of us need to email dan potter and tell him because this version of kos 1.19 is not compiling
i did get it to compiling by making the header it asked for but it was a fake header just to get it to compile and the lib will not work after any way
i did get it to compiling by making the header it asked for but it was a fake header just to get it to compile and the lib will not work after any way
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
-
- DC Developer
- Posts: 2648
- Joined: Sun Mar 24, 2002 7:48 pm
- Has thanked: 0
- Been thanked: 0
- Contact:
YES but most people that start out will not do that and be stumped it need to be fixed or a note put out some think
im using kos1.18 and ill stay with that its cvs 1.18 so just before he updated its basicly is kos1.19
even all the make files in my dir say kos1.19
IM sort of taking a little break but not YA know ! lol
im using kos1.18 and ill stay with that its cvs 1.18 so just before he updated its basicly is kos1.19
even all the make files in my dir say kos1.19
IM sort of taking a little break but not YA know ! lol
http://homebrew.dcemulation.com/dcgames/ *homebrew webbrowser games *
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?
http://r2k2gate.topcities.com *dev site and my releases*
![Image](http://www.geocities.com/reapersthebest/SIGC64.jpg.txt)
Im' a Commodorian are you?