Homebrew Compiling SnemulDS?

Gryphon93

Well-Known Member
OP
Member
Joined
Nov 30, 2008
Messages
145
Trophies
0
XP
251
Country
I've tried to compile SnemulDS for a while now, but I haven't got it to work. I get 2 errors, and I don't know how to solve them. I'm using the latest DevKitPro (downloaded today, 26/10 - 2009), and I get errors about a header-file called "registers_alt.h". I've read about others that haven't been able to compile SnemulDS, but noone has found out a way to fix it. I thought maybe some of you guys here knew how to fix the problem, so I decided to post this here. Well, here is the compile-log:

C:\snemulds>make
make -C src
make[1]: Entering directory `/c/snemulds/src'
make -C arm7
make[2]: Entering directory `/c/snemulds/src/arm7'
apu.cpp
arm-eabi-g++ -MMD -MP -MF /c/snemulds/src/arm7/bin/apu.d -Wall -Os -mcpu=arm7tdm
i -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -mthumb-interwork -I/c/Progr
ammering/devkitPro/libnds/include -I/c/snemulds/src/arm7/bin -DARM7 -fno-excepti
ons -fno-rtti -c /c/snemulds/src/arm7/source/apu.cpp -o apu.o
In file included from c:/snemulds/src/arm7/source/pocketspc.h:2,
from c:/snemulds/src/arm7/source/apu.cpp:1:
c:/Programmering/devkitPro/libnds/include/nds/registers_alt.h:39:2: warning: #wa
rning "header provided for assistance in porting to new register names, do not u
se for release code"
c:/Programmering/devkitPro/libnds/include/nds/registers_alt.h:233:1: warning: "R
EG_SIOCNT" redefined
In file included from c:/Programmering/devkitPro/libnds/include/nds/arm7/audio.h
:43,
from c:/Programmering/devkitPro/libnds/include/nds.h:209,
from c:/snemulds/src/arm7/source/pocketspc.h:1,
from c:/snemulds/src/arm7/source/apu.cpp:1:
c:/Programmering/devkitPro/libnds/include/nds/arm7/serial.h:47:1: warning: this
is the location of the previous definition
In file included from c:/snemulds/src/arm7/source/pocketspc.h:2,
from c:/snemulds/src/arm7/source/apu.cpp:1:
c:/Programmering/devkitPro/libnds/include/nds/registers_alt.h:239:1: warning: "R
EG_RCNT" redefined
In file included from c:/Programmering/devkitPro/libnds/include/nds/arm7/audio.h
:43,
from c:/Programmering/devkitPro/libnds/include/nds.h:209,
from c:/snemulds/src/arm7/source/pocketspc.h:1,
from c:/snemulds/src/arm7/source/apu.cpp:1:
c:/Programmering/devkitPro/libnds/include/nds/arm7/serial.h:42:1: warning: this
is the location of the previous definition
c:/snemulds/src/arm7/source/apu.h:59: error: previous declaration of 'u32 APU_ST
ATE [16]' with 'C++' linkage
c:/snemulds/src/arm7/source/apu.cpp:35: error: conflicts with new declaration wi
th 'C' linkage
make[3]: *** [apu.o] Error 1
make[2]: *** [bin] Error 2
make[2]: Leaving directory `/c/snemulds/src/arm7'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/snemulds/src'
make: *** [all] Error 2

C:\snemulds>
 

Gryphon93

Well-Known Member
OP
Member
Joined
Nov 30, 2008
Messages
145
Trophies
0
XP
251
Country
Thanks, but please, explain a bit better, thank you
smile.gif
 

Ben_j

Well-Known Member
Member
Joined
Nov 13, 2005
Messages
696
Trophies
0
Age
35
Website
www.nintendo-gamers.net
XP
385
Country
France
Here's what I get when I compile SNEmulDS 0.4 :

Code:
D:\NDS_Dev\SNEmulDSv04-src\SNEmulDS>make
make -C src
make[1]: Entering directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src'
make -C arm7
make[2]: Entering directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7'
apu.cpp
arm-eabi-g++ -MMD -MP -MF /d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/bin/apu.d
-g -Wall -Os -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ffast-math -m
thumb-interworkÂÂ-I/c/devkitPro/libnds/include -I/d/NDS_Dev/SNEmulDSv04-src/SNEm
ulDS/src/arm7/bin -DARM7 -fno-exceptions -fno-rtti -c /d/NDS_Dev/SNEmulDSv04-src
/SNEmulDS/src/arm7/source/apu.cpp -o apu.o
In file included from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/pocket
spc.h:2,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/apu.cp
p:1:
c:/devkitPro/libnds/include/nds/registers_alt.h:39:2: warning: #warning "header
provided for assistance in porting to new register names, do not use for release
code"
c:/devkitPro/libnds/include/nds/registers_alt.h:233:1: warning: "REG_SIOCNT" red
efined
In file included from c:/devkitPro/libnds/include/nds/arm7/audio.h:43,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from c:/devkitPro/libnds/include/nds.h:209,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/pocket
spc.h:1,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/apu.cp
p:1:
c:/devkitPro/libnds/include/nds/arm7/serial.h:47:1: warning: this is the locatio
n of the previous definition
In file included from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/pocket
spc.h:2,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/apu.cp
p:1:
c:/devkitPro/libnds/include/nds/registers_alt.h:239:1: warning: "REG_RCNT" redef
ined
In file included from c:/devkitPro/libnds/include/nds/arm7/audio.h:43,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from c:/devkitPro/libnds/include/nds.h:209,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/pocket
spc.h:1,
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ from d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/apu.cp
p:1:
c:/devkitPro/libnds/include/nds/arm7/serial.h:42:1: warning: this is the locatio
n of the previous definition
d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/apu.h:53: error: previous de
claration of 'u32 APU_STATE [16]' with 'C++' linkage
d:/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7/source/apu.cpp:47: error: conflicts
with new declaration with 'C' linkage
make[3]: *** [apu.o] Error 1
make[2]: *** [bin] Error 2
make[2]: Leaving directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src'
make: *** [all] Error 2
 

Gryphon93

Well-Known Member
OP
Member
Joined
Nov 30, 2008
Messages
145
Trophies
0
XP
251
Country
I'm using the latest source from the SVN (v.0.5). I have still not managed to compile it, but I hope I will soon. I think I'll ask my brother for some help.
 

Gryphon93

Well-Known Member
OP
Member
Joined
Nov 30, 2008
Messages
145
Trophies
0
XP
251
Country
I want to make the sound and graphics better. I want to play Harvest Moon without bugs x). For now I just want to know how to compile the source, then I'm going to do some testing just to get to know the emulator a bit better, then I'll try to actually improve something. Since no one is doing it, I thought I would give it try (though I'm not a professional programmer, especially not in C/C++-programming, but I'm learning). I don't have any experience programming emulators, so it'll be quite a challenge.
 

Ben_j

Well-Known Member
Member
Joined
Nov 13, 2005
Messages
696
Trophies
0
Age
35
Website
www.nintendo-gamers.net
XP
385
Country
France
Ok, here's what I got from a member on the DSdev.org forums :

QUOTE said:
Compiles fine with devkitarm r20 and old libfat and libnds versions.

That's what I thought, my libnds is too recent
smile.gif


Ultralex said:
what do you want to change in snemul (Moonshell2 version would be good
tongue.gif
)

That's what I want to do. If I'm right, only 3 lines added to the code should be enough.

I'm gonna take a look at the sources of the Moonshell version of Nester
 

Ben_j

Well-Known Member
Member
Joined
Nov 13, 2005
Messages
696
Trophies
0
Age
35
Website
www.nintendo-gamers.net
XP
385
Country
France
new errors, with devkitARM r20 :

Code:
D:\NDS_Dev\SNEmulDSv04-src\SNEmulDS>make 
make -C src 
make[1]: Entering directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src' 
make -C arm7 
make[2]: Entering directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7' 
[color=red]make[3]: *** No rule to make target `apu.o', needed by `../bin/pocketspc.elf'.[/color] 
Stop. 
make[2]: *** [bin] Error 2 
make[2]: Leaving directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src/arm7' 
make[1]: *** [all] Error 2 
make[1]: Leaving directory `/d/NDS_Dev/SNEmulDSv04-src/SNEmulDS/src' 
make: *** [all] Error 2

I have this with both new libnds & libfat and old versions
 

Ben_j

Well-Known Member
Member
Joined
Nov 13, 2005
Messages
696
Trophies
0
Age
35
Website
www.nintendo-gamers.net
XP
385
Country
France
Normmatt said:
here is my setup, with the latest svn (0.5) -> http://normmatt.com/devkitPro.rar


Tried with your config :

CODEBuilding file: ../SNES_global.c
Invoking: GCC C Compiler
arm-eabi-gcc -DNDS -I"C:\devkitPro\libnds\include" -I"C:\devkitPro\devkitARM\arm
-eabi\include" -O2 -Wall -c -fmessage-length=0 -fsigned-char -ffast-math -fomit-
frame-pointer -marm -mcpu=arm9tdmi -mtune=arm9tdmi -DARM9 -MMD -MP -MF"SNES_glob
al.d" -MT"SNES_global.d" -o"SNES_global.o" "../SNES_global.c"
/bin/sh: arm-eabi-gcc: command not found
make[3]: *** [SNES_global.o] Error 127
make[3]: Leaving directory `/c/devkitPro/SNEmulDS/branches/alekmaul/src/arm9/Rel
ease'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/c/devkitPro/SNEmulDS/branches/alekmaul/src/arm9'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/devkitPro/SNEmulDS/branches/alekmaul/src'
make: *** [all] Error 2
I'm getting mad. My PATH var is good.

EDIT : ... not ^^'

Still can't compile 0.5... but I succesfuly compiled the 0.4 \o/ (with shitloads of warnings everywhere)

EDIT bis : fuck, I'm at work, my DS is out of battery and I don't have the charger. I can't test anything
frown.gif
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Real Jdbye @ The Real Jdbye:
    we didn't see your question, how should we know?
    +1
  • K3N1 @ K3N1:
    Well that's one question answered with another question
  • K3N1 @ K3N1:
    Neat looks like ps2 got maxed out https://youtu.be/nKoRvWKojz0
  • Psionic Roshambo @ Psionic Roshambo:
    Cool but I had a 500GB drive in mine and never ran out of space the average PS2 was less than 1GB lol
  • SylverReZ @ SylverReZ:
    Hey.
  • SylverReZ @ SylverReZ:
    @Asia81, She needs some milk.
  • K3N1 @ K3N1:
    @Psionic Roshambo, its nice for those complete sets
    +1
  • K3N1 @ K3N1:
    I just put a SSD in mine so meh
  • K3N1 @ K3N1:
    Have you asked in the Ryujinx reddit or tried it on yuzu to see if it's the emulator at fault
  • Halbour @ Halbour:
    im. not. going. to. reddit
  • K3N1 @ K3N1:
    Have you tried it on yuzu
  • Halbour @ Halbour:
    and its the emulator- both to be precise
  • Halbour @ Halbour:
    pc games work fine
  • K3N1 @ K3N1:
    That's the only place where others are probably more knowledgeable on why
  • Halbour @ Halbour:
    oh
  • Halbour @ Halbour:
    well i wont go to reddit 'cuse its really toxic but tbf I asked there and someone told me to exit steam
  • K3N1 @ K3N1:
    I've gotten pretty solid answers from other subreddits tbh
  • K3N1 @ K3N1:
    Ye it's possible another app is connecting via bt causing disconnection
  • Halbour @ Halbour:
    well yeah its only some
  • K3N1 @ K3N1:
    Every site has it's handful of toxicity
  • Halbour @ Halbour:
    well but on gbatemp its not as bad
  • Halbour @ Halbour:
    well im off to check that lol
  • K3N1 @ K3N1:
    Sometimes you gotta get the Bs out to feel clear
    K3N1 @ K3N1: Sometimes you gotta get the Bs out to feel clear