How exactly do I go about compiling it. I read something about a make command, but I have no idea on how to implement it within a specified folder.
Edit: Alright I just need to know how to set the directory now. I type in cd (Whatever directory) and then I get the no such file or directory error. Is there certain syntax?
Edit 2: I now get this output.
[email protected] /c/source
$ make
make -C arm7
make[1]: Entering directory `/c/source/arm7'
main.c
arm-none-eabi-gcc -MMD -MP -MF /c/source/arm7/build/main.d -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I/c/source/arm7/include -I/c/source/arm7/build -I/c/devkitPro/libnds/include -I/c/source/arm7/build -DARM7 -c /c/source/arm7/source/main.c -o main.o
c:/source/arm7/source/main.c: In function 'gbaMode':
c:/source/arm7/source/main.c:18:55: error: 'PM_SOUND_PWR' undeclared (first use in this function)
writePowerManagement(0, PM_BACKLIGHT_BOTTOM | PM_SOUND_PWR);
^
c:/source/arm7/source/main.c:18:55: note: each undeclared identifier is reported only once for each function it appears in
c:/source/arm7/source/main.c: In function 'startSound':
c:/source/arm7/source/main.c:73:112: error: 'SOUND_8BIT' undeclared (first use in this function)
SCHANNEL_CR(channel) = SCHANNEL_ENABLE | SOUND_ONE_SHOT | SOUND_VOL(vol) | SOUND_PAN(pan) | (format==1?SOUND_8BIT:SOUND_16BIT);
^
c:/source/arm7/source/main.c:73:123: error: 'SOUND_16BIT' undeclared (first use in this function)
SCHANNEL_CR(channel) = SCHANNEL_ENABLE | SOUND_ONE_SHOT | SOUND_VOL(vol) | SOUND_PAN(pan) | (format==1?SOUND_8BIT:SOUND_16BIT);
^
c:/source/arm7/source/main.c: In function 'VcountHandler':
c:/source/arm7/source/main.c:98:19: error: too few arguments to function 'touchReadXY'
tempPos = touchReadXY();
^
In file included from c:/devkitPro/libnds/include/nds.h:289:0,
from c:/source/arm7/source/main.c:1:
c:/devkitPro/libnds/include/nds/arm7/touch.h:61:6: note: declared here
void touchReadXY(touchPosition *touchPos);
^
c:/source/arm7/source/main.c:99:21: error: 'touchPosition {aka struct touchPosition}' has no member named 'x'
if ( tempPos.x == 0 || tempPos.y == 0 )
^
c:/source/arm7/source/main.c:99:39: error: 'touchPosition {aka struct touchPosition}' has no member named 'y'
if ( tempPos.x == 0 || tempPos.y == 0 )
^
c:/source/arm7/source/main.c:106:24: error: 'touchPosition {aka struct touchPosition}' has no member named 'x'
x = tempPos.x;
^
c:/source/arm7/source/main.c:107:24: error: 'touchPosition {aka struct touchPosition}' has no member named 'y'
y = tempPos.y;
^
c:/source/arm7/source/main.c:134:13: error: 'IPC' undeclared (first use in this function)
IPC->mailBusy = 1;
^
c:/source/arm7/source/main.c: In function 'VblankHandler':
c:/source/arm7/source/main.c:158:58: error: 'PM_SOUND_PWR' undeclared (first use in this function)
writePowerManagement(0, PM_BACKLIGHT_BOTTOM| PM_SOUND_PWR);
^
c:/source/arm7/source/main.c:166:5: error: unknown type name 'TransferSound'
TransferSound *snd = IPC->soundData;
^
c:/source/arm7/source/main.c:166:26: error: 'IPC' undeclared (first use in this function)
TransferSound *snd = IPC->soundData;
^
c:/source/arm7/source/main.c:171:24: error: request for member 'count' in something not a structure or union
for (i=0; i<snd->count; i++)
^
c:/source/arm7/source/main.c:176:31: error: request for member 'data' in something not a structure or union
startSound(snd->data
.rate, snd->data.data, snd->data.len, chan, snd->data.vol, snd->data.pan, snd->data.format);
^
c:/source/arm7/source/main.c:176:50: error: request for member 'data' in something not a structure or union
startSound(snd->data.rate, snd->data.data, snd->data.len, chan, snd->data.vol, snd->data.pan, snd->data.format);
^
c:/source/arm7/source/main.c:176:69: error: request for member 'data' in something not a structure or union
startSound(snd->data.rate, snd->data.data, snd->data.len, chan, snd->data.vol, snd->data.pan, snd->data.format);
^
c:/source/arm7/source/main.c:176:93: error: request for member 'data' in something not a structure or union
startSound(snd->data.rate, snd->data.data, snd->data.len, chan, snd->data.vol, snd->data.pan, snd->data.format);
^
c:/source/arm7/source/main.c:176:111: error: request for member 'data' in something not a structure or union
startSound(snd->data.rate, snd->data.data, snd->data.len, chan, snd->data.vol, snd->data.pan, snd->data.format);
^
c:/source/arm7/source/main.c:176:129: error: request for member 'data' in something not a structure or union
startSound(snd->data.rate, snd->data.data, snd->data.len, chan, snd->data.vol, snd->data.pan, snd->data.format);
^
c:/source/arm7/source/main.c: In function 'main':
c:/source/arm7/source/main.c:187:34: error: 'IPC' undeclared (first use in this function)
rtcGetTimeAndDate((uint8 *)&(IPC->time.rtc.year)); // thanks tepples, a good interim soloution ;-)
^
c:/source/arm7/source/main.c:195:5: warning: implicit declaration of function 'powerON' [-Wimplicit-function-declaration]
powerON(POWER_SOUND);
^
c:/source/arm7/source/main.c:196:5: error: 'SOUND_CR' undeclared (first use in this function)
SOUND_CR = SOUND_ENABLE | SOUND_VOL(0x7F);
^
make[2]: *** [main.o] Error 1
make[1]: *** [build] Error 2
make[1]: Leaving directory `/c/source/arm7'
make: *** [arm7/source.elf] Error 2
[email protected] /c/source
$
Does it have something to do with setting the PATH?