Homebrew Compiling SnemulDS?

Gryphon93

Well-Known Member
OP
Member
Joined
Nov 30, 2008
Messages
145
Trophies
1
XP
262
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
1
XP
262
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
1
Age
37
Website
www.nintendo-gamers.net
XP
425
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
1
XP
262
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
1
XP
262
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
1
Age
37
Website
www.nintendo-gamers.net
XP
425
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
1
Age
37
Website
www.nintendo-gamers.net
XP
425
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
1
Age
37
Website
www.nintendo-gamers.net
XP
425
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
  • Xdqwerty @ Xdqwerty:
    @Kirbydogs, I miss Miis
    +1
  • Xdqwerty @ Xdqwerty:
    Also the Batman the brave and the bold ds game is just so fun
  • False_Hope @ False_Hope:
    huh I haven't played it
  • False_Hope @ False_Hope:
    most of my time is spent in monster hunter- something stupid like over 7k hours
  • Xdqwerty @ Xdqwerty:
    @False_Hope, I should play monster hunter games
  • False_Hope @ False_Hope:
    I have/make a bunch of cheats for them if you ever feel like progression is going a bit too slow or if you're having trouble getting an item just ask
  • Xdqwerty @ Xdqwerty:
    @False_Hope, I prefer playing games in their vanilla state first
  • False_Hope @ False_Hope:
    fair enough
  • Xdqwerty @ Xdqwerty:
    @False_Hope, closest thing to monster hunter I ever played is Phantasy Star Zero
  • False_Hope @ False_Hope:
    huh that reminds me of final fantasy explores
  • Xdqwerty @ Xdqwerty:
    "I'll be the roundabout
    The words will make you out 'n' out
    I spent the day your way
    Call it morning driving through the sound of
    In and out the valley"
  • BigOnYa @ BigOnYa:
    Yes
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, exactly
  • False_Hope @ False_Hope:
    poetry?
  • Xdqwerty @ Xdqwerty:
    @False_Hope, it's a song
  • False_Hope @ False_Hope:
    oh huh
  • False_Hope @ False_Hope:
    I read it like a poem
  • Xdqwerty @ Xdqwerty:
    @False_Hope, it might sound familiar to you
  • False_Hope @ False_Hope:
    hmm okay I'll check it out
  • False_Hope @ False_Hope:
    here's a poem:
    Silver and gold
    A godlike hold
    Feeble minded fiend for these
    They are like a disease
    People fall and collapse over them, they fold into despair
    Into a state of disrepair
    Crumbled they fall
    A fallen kingdom destroyed, it was greed all in all
    +1
  • False_Hope @ False_Hope:
    oh yeah it's familiar
    +1
  • K @ klonoa02:
    hello
  • K @ klonoa02:
    anyone knows how I can abort the emuMMC creation process on Hekate? my SD card is false and it will take forever to finish this process
    K @ klonoa02: anyone knows how I can abort the emuMMC creation process on Hekate? my SD card is false and it...