Homebrew Trying to compile Beup Live MSN client for the DS

SomeKindOfBug

New Member
OP
Newbie
Joined
Sep 14, 2024
Messages
2
Trophies
0
XP
20
Country
Canada
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 !

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,
  • Like
Reactions: bonkmaykr

SomeKindOfBug

New Member
OP
Newbie
Joined
Sep 14, 2024
Messages
2
Trophies
0
XP
20
Country
Canada
UPDATE:
I downgraded libnds, and it fixed the issues I had in the output I left in the post but now I'm running into different compiler errors and idk how to fix them this time there's not clear answer
I'm just thinking that this whole thing compiled flawlessly without tweaking any code back in 2006, so it'd be best to get my compile tools in the state that they might've been in back then before I try messing with the code to make it work with modern compile tools
Again if anyone can help me/point me in the right direction would be super duper appreciated this has been haunting me for like a week, THANKS!! :ha:
 
  • Like
Reactions: bonkmaykr

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    Im downloading playnite
  • MucharSol @ MucharSol:
    guys how would I know if the screen ribbons for my N3DSXL are damaged
  • K3Nv2 @ K3Nv2:
    Just upchucked my dinner and passed out for two hours I thought my therapy days of seeing psi and bigonya kiss were over
    +1
  • BigOnYa @ BigOnYa:
    I bet its morning sickness...ancientboi gonna be so happy to be a daddy.
    +1
  • K3Nv2 @ K3Nv2:
    And you a grandfather
    +1
  • K3Nv2 @ K3Nv2:
    I forgot I owned a 7950 gpu I bet it can still do decent switch emulation
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, No device I have can run switch games
  • K3Nv2 @ K3Nv2:
    I keep forgetting
  • Xdqwerty @ Xdqwerty:
    I dont have any switch game-running device bc im stupid
  • Xdqwerty @ Xdqwerty:
    im so jealous of y'all
  • Xdqwerty @ Xdqwerty:
    good night
    +1
  • K3Nv2 @ K3Nv2:
    @BigOnYa, is a 3.5 chest freezer big enough to store a wife in
  • BigOnYa @ BigOnYa:
    Depends, if just married- yes, if been married for years- no
  • K3Nv2 @ K3Nv2:
    https://www.walmart.com/ip/835682709 kind of want it for the extra space and 115 is a good deal
    +1
  • BigOnYa @ BigOnYa:
    Yea not bad, they are nice to have. I use mine alot. We buy Costco portions of meat, then brake down to small portions n freeze.
  • K3Nv2 @ K3Nv2:
    Doesn't even look big enough to store a pizza in though
  • BigOnYa @ BigOnYa:
    20.60 x 22.20 x 33.50 Inches, size of a dishwasher, or newlywed wife.
  • K3Nv2 @ K3Nv2:
    Maybe if you live in Africa and buy her for two pigs
    +1
  • K3Nv2 @ K3Nv2:
    I got ancientboi for a calf that way
  • BigOnYa @ BigOnYa:
    Good deal. His SS will pay for that calf in no time.
  • K3Nv2 @ K3Nv2:
    His last SS idea didn't pan out we won
  • BigOnYa @ BigOnYa:
    I still can't play Switch games on my tablet. I was hoping the CPU fairy would of snuck in my house overnight and upgraded me, but nope.
  • K3Nv2 @ K3Nv2:
    Turns out Vizio got sued by Nintendo over that
  • K3Nv2 @ K3Nv2:
    Neato got approved to use Affirm now I can play switch games
    K3Nv2 @ K3Nv2: Neato got approved to use Affirm now I can play switch games