Hello!!! I'm trying to compile this old source code for Beup Live! Kinda sorta picking up where @FailSandwich left off (they also seemingly gave up in the compiling phase in teh thread below)
Uhm i'm getting compiler errors for what i'm assuming is code trying to call now depreciated functions? Soo my best guess is I probably need libnds from 2006 to make this thing work, if someone could point me in the right direction or like help me out if I'm doing something horribly wrong it would be greatly appreciated! (plz )
Heres the thread with the source code im trying to compile !
/threads/does-anyone-have-v0-6-of-the-old-beup-live-msn-client-or-better-yet-the-v0-6-source-code.579352/post-9375905
! I'm on Windows 10 using Msys2 with the latest version of devkitPro to compile !
*cough* @HtheB *cough*
Uhm i'm getting compiler errors for what i'm assuming is code trying to call now depreciated functions? Soo my best guess is I probably need libnds from 2006 to make this thing work, if someone could point me in the right direction or like help me out if I'm doing something horribly wrong it would be greatly appreciated! (plz )
Heres the thread with the source code im trying to compile !
/threads/does-anyone-have-v0-6-of-the-old-beup-live-msn-client-or-better-yet-the-v0-6-source-code.579352/post-9375905
! I'm on Windows 10 using Msys2 with the latest version of devkitPro to compile !
Code:
make -f make-ds
make[1]: Entering directory '/home/[XXXX]/Desktop/Projects/Misc/beup/source2006'
make[1]: Warning: File 'make-ds' has modification time 20738 s in the future
arm-eabi-gcc -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi \
-fomit-frame-pointer -ffast-math -mthumb-interwork \
-I/opt/devkitpro/devkitARM/include -DARM7 -c arm7.c -oarm7.o
arm7.c: In function 'startSound':
arm7.c:31:116: error: 'SOUND_8BIT' undeclared (first use in this function)
31 | SCHANNEL_CR(channel) = SCHANNEL_ENABLE | SOUND_ONE_SHOT | SOUND_VOL(vol) | SOUND
_PAN(pan) | (format==1?SOUND_8BIT:SOUND_16BIT);
|
^~~~~~~~~~
arm7.c:31:116: note: each undeclared identifier is reported only once for each function it appears i
n
arm7.c:31:127: error: 'SOUND_16BIT' undeclared (first use in this function)
31 | SCHANNEL_CR(channel) = SCHANNEL_ENABLE | SOUND_ONE_SHOT | SOUND_VOL(vol) | SOUND
_PAN(pan) | (format==1?SOUND_8BIT:SOUND_16BIT);
|
^~~~~~~~~~~
arm7.c: In function 'VblankHandler':
arm7.c:53:25: error: 'IPC' undeclared (first use in this function)
53 | uint8 ct[sizeof(IPC->curtime)];
| ^~~
arm7.c:65:41: error: too few arguments to function 'touchReadXY'
65 | touchPosition tempPos = touchReadXY();
| ^~~~~~~~~~~
In file included from C:/devkitPro/devkitARM/arm-none-eabi/include/nds.h:297,
from arm7.c:16:
C:/devkitPro/devkitARM/arm-none-eabi/include/nds/arm7/touch.h:61:6: note: declared here
61 | void touchReadXY(touchPosition *touchPos);
| ^~~~~~~~~~~
arm7.c:67:29: error: 'touchPosition' has no member named 'x'; did you mean 'px'?
67 | x = tempPos.x;
| ^
| px
arm7.c:68:29: error: 'touchPosition' has no member named 'y'; did you mean 'py'?
68 | y = tempPos.y;
| ^
| py
arm7.c:109:9: error: unknown type name 'TransferSound'
109 | TransferSound *snd = IPC->soundData;
| ^~~~~~~~~~~~~
arm7.c:114:32: error: request for member 'count' in something not a structure or union
114 | for (i=0; i<snd->count; i++) {
| ^~
arm7.c:118:47: error: request for member 'data' in something not a structure or union
118 | startSound(snd->data[i].rate, snd->data[i].data, snd->data[i
].len, chan, snd->data[i].vol, snd->data[i].pan, snd->data[i].format);
| ^~
arm7.c:118:66: error: request for member 'data' in something not a structure or union
118 | startSound(snd->data[i].rate, snd->data[i].data, snd->data[i
].len, chan, snd->data[i].vol, snd->data[i].pan, snd->data[i].format);
| ^~
arm7.c:118:85: error: request for member 'data' in something not a structure or union
118 | startSound(snd->data[i].rate, snd->data[i].data, snd->data[i
].len, chan, snd->data[i].vol, snd->data[i].pan, snd->data[i].format);
| ^~
arm7.c:118:109: error: request for member 'data' in something not a structure or union
118 | startSound(snd->data[i].rate, snd->data[i].data, snd->data[i
].len, chan, snd->data[i].vol, snd->data[i].pan, snd->data[i].format);
|
^~
arm7.c:118:127: error: request for member 'data' in something not a structure or union
118 | startSound(snd->data[i].rate, snd->data[i].data, snd->data[i
].len, chan, snd->data[i].vol, snd->data[i].pan, snd->data[i].format);
|
^~
arm7.c:118:145: error: request for member 'data' in something not a structure or union
118 | startSound(snd->data[i].rate, snd->data[i].data, snd->data[i
].len, chan, snd->data[i].vol, snd->data[i].pan, snd->data[i].format);
|
^~
arm7.c:53:15: warning: unused variable 'ct' [-Wunused-variable]
53 | uint8 ct[sizeof(IPC->curtime)];
| ^~
arm7.c: In function 'main':
arm7.c:145:9: error: implicit declaration of function 'powerON'; did you mean 'powerOn'? [-Wimplicit
-function-declaration]
145 | powerON(POWER_SOUND);
| ^~~~~~~
| powerOn
arm7.c:147:9: error: 'SOUND_CR' undeclared (first use in this function); did you mean 'SOUND_VOL'?
147 | SOUND_CR = SOUND_ENABLE | SOUND_VOL(0x7F);
| ^~~~~~~~
| SOUND_VOL
arm7.c:148:9: error: 'IPC' undeclared (first use in this function)
148 | IPC->soundData = 0;
| ^~~
make[1]: *** [make-ds:31: arm7.bin] Error 1
make[1]: Leaving directory '/home/[XXXX]/Desktop/Projects/Misc/beup/source2006'
make: *** [makefile:2: all] Error 2
Post automatically merged:
*cough* @HtheB *cough*
Last edited by SomeKindOfBug,