Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: trouble compiling under ms-win
From: Garrett (GaryD_at_AdFreeInternet.com)
Date: 2002-11-06


I am having trouble compiling under Windows (XP). I tried a couple of ways.

First I tried Felix Arends' instructions for "Setting up an SH-1 compiler
for Windows"

When I tried to build with the Sh-elf Tool Chain, it apparently wanted to
use perl (which I don't have) on a "genlang" file (which isn't there
either):

 C:\cygwin\home\Garrett\Rockbox\apps>make -f win32.mak
 perl -s ../tools/genlang -p=./lang build.lang
 process_begin: CreateProcess((null), perl -s ../tools/genlang -p=./lang
build.lang, ...) failed.
 make (e=2): The system cannot find the file specified.
 make: *** [lang.o] Error 2

So then I tried to build under Cygwin, following the README from cvs. I
built the tools, it made 5 .exe files:

 bmp2rb.exe convbdf.exe descramble.exe scramble.exe sh2d.exe

I made a build directory, did "exec ../tools/configure" and generated a
Makefile.

I appended the Sh-elf Tool Chain paths to the PATH:

 Garrett_at_GARRETTSTOSHIBA ~/Rockbox/build
 $
PATH=$PATH:/cygdrive/c/PROGRA~1/kpit/GNUSHV~1/Sh-elf/bin:/cygdrive/c/PROGRA~
1
 /kpit/GNUSHV~1/OtherU~1

So now my PATH looks like:

PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/W
INDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/PROGRA~1/kpit/GNUSHV~1/
Sh-elf/bin:/cygdrive/c/PROGRA~1/kpit/GNUSHV~1/OtherU~1

When I tried to build, it made a "drivers" directory and a ".deps" directory
with a lot of .d files. Then it complained about not being able to create
adc.o:

 Garrett_at_GARRETTSTOSHIBA ~/Rockbox/build
 $ make
 make -C ../firmware TARGET=-DARCHOS_RECORDER NODEBUG=1
OBJDIR="/home/Garrett/Rockbox/build" EXTRA_DEFINES="-DDISABLE_NOTHING"
 make[1]: Entering directory `/home/Garrett/Rockbox/firmware'
 Updating dependencies for usb.c
 Updating dependencies for thread.c
 Updating dependencies for system.c
 Updating dependencies for rolo.c
 Updating dependencies for powermgmt.c
 Updating dependencies for panic.c
 Updating dependencies for mpeg.c
 Updating dependencies for kernel.c
 Updating dependencies for id3.c
 Updating dependencies for hwcompat.c
 Updating dependencies for font.c
 Updating dependencies for debug.c
 Updating dependencies for backlight.c
 Updating dependencies for common/strtok.c
 Updating dependencies for common/strrchr.c
 Updating dependencies for common/strncpy.c
 Updating dependencies for common/strncmp.c
 Updating dependencies for common/strlen.c
 Updating dependencies for common/strcpy.c
 Updating dependencies for common/strcmp.c
 Updating dependencies for common/strchr.c
 Updating dependencies for common/strcat.c
 Updating dependencies for common/strcasecmp.c
 Updating dependencies for common/sprintf.c
 Updating dependencies for common/random.c
 Updating dependencies for common/qsort.c
 Updating dependencies for common/memset.c
 Updating dependencies for common/memcpy.c
 Updating dependencies for common/memcmp.c
 Updating dependencies for common/lists.c
 Updating dependencies for common/file.c
 Updating dependencies for common/errno.c
 Updating dependencies for common/disk.c
 Updating dependencies for common/dir.c
 Updating dependencies for common/ctype.c
 Updating dependencies for common/atoi.c
 Updating dependencies for drivers/serial.c
 Updating dependencies for drivers/rtc.c
 Updating dependencies for drivers/power.c
 Updating dependencies for drivers/mas.c
 Updating dependencies for drivers/led.c
 Updating dependencies for drivers/lcd.c
 Updating dependencies for drivers/lcd-recorder.c
 Updating dependencies for drivers/lcd-player.c
 Updating dependencies for drivers/i2c.c
 Updating dependencies for drivers/fat.c
 Updating dependencies for drivers/dac.c
 Updating dependencies for drivers/button.c
 Updating dependencies for drivers/ata.c
 Updating dependencies for drivers/adc.c
 make[1]: Leaving directory `/home/Garrett/Rockbox/firmware'
 make[1]: Entering directory `/home/Garrett/Rockbox/firmware'

sh-elf-gcc -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes -Iin
clude -I. -Icommon -Idrivers -DARCHOS_RECORDER -DDISABLE_NOTHING -fomit-fram
e-pointer -fschedule-insns -c drivers/adc.c -o
/home/Garrett/Rockbox/build/drivers/adc.o
 Assembler messages:
 FATAL: can't create /home/Garrett/Rockbox/build/drivers/adc.o: No such file
or directory
 make[1]: *** [/home/Garrett/Rockbox/build/drivers/adc.o] Error 1
 make[1]: Leaving directory `/home/Garrett/Rockbox/firmware'
 make: *** [firmware] Error 2

Thanks for any help!
-Garrett



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa