Homebrew Compiling SnemulDS?

Gryphon93

Well-Known Member
OP
Member
Joined
Nov 30, 2008
Messages
145
Trophies
0
XP
252
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
252
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
36
Website
www.nintendo-gamers.net
XP
395
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
252
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
252
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
36
Website
www.nintendo-gamers.net
XP
395
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
36
Website
www.nintendo-gamers.net
XP
395
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
36
Website
www.nintendo-gamers.net
XP
395
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
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    Fish wire
  • Xdqwerty @ Xdqwerty:
    What's going on?
  • Xdqwerty @ Xdqwerty:
    I'm a fuckin stupid, a stupid, a stupid, a stupid, a stupid, a stupid, a stupid,
  • K3Nv2 @ K3Nv2:
    It's okay we're all stupid on the inside
  • Xdqwerty @ Xdqwerty:
    My damn brain forgets everything
  • Xdqwerty @ Xdqwerty:
    I know nothing about anything
  • BakerMan @ BakerMan:
    hell, i'm stupid on the outside
  • Xdqwerty @ Xdqwerty:
    The only things in my mind are useless stuff
  • K3Nv2 @ K3Nv2:
    @Xdqwerty Use Google to your advantages 90% of the time it has answers for hardware and software
  • Xdqwerty @ Xdqwerty:
    But that stuff should be in my mind, not on the internet
  • K3Nv2 @ K3Nv2:
    No it really shouldn't none of us know everything
    +1
  • Xdqwerty @ Xdqwerty:
    I'll maybe slam my head until i become smarter
  • Xdqwerty @ Xdqwerty:
    Good night
  • wolffangalchemist @ wolffangalchemist:
    as a child i ate crayons, i feel like i have come a long way since then.
    +1
  • K3Nv2 @ K3Nv2:
    I shoved rocks in my ear
  • BakerMan @ BakerMan:
    ngl i find it hilarious when a new twitch streamer blows up
  • BakerMan @ BakerMan:
    bc then all the memes are about them, for better (like caseoh) or for worse (like kai cenat)
  • K3Nv2 @ K3Nv2:
    I like it when they get canceled over flashing a tit
  • BakerMan @ BakerMan:
    some guy got banned forever for saying "l ratio" or smth, and a woman gets it on stream and gets banned for a week
  • BakerMan @ BakerMan:
    like what the fuck
  • K3Nv2 @ K3Nv2:
    We need to ban man nipples from being on the internet but female ones should be fine
    +1
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    pokimane gets naked, "AWOOOGA!", case gets naked, and he gets a taste of his own medicine lmao
  • BakerMan @ BakerMan:
    actually, it still may be an "AWOOOGA!" from his chat remembering some of the messages he gets
    BakerMan @ BakerMan: actually, it still may be an "AWOOOGA!" from his chat remembering some of the messages he gets