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
405
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
405
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
405
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
405
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
  • NinStar @ NinStar:
    there is a plugin that display them on the wii u menu, pretty sure it is enabled by default
  • crafthp434 @ crafthp434:
    so like it doesnt exist
  • crafthp434 @ crafthp434:
    yeah
    ?
  • NinStar @ NinStar:
    it doesn't exist, at least not for aroma
  • crafthp434 @ crafthp434:
    ohhhhh
  • NinStar @ NinStar:
    on tiramisu you can access it by opening mii maker
  • crafthp434 @ crafthp434:
    okay
  • NinStar @ NinStar:
    I don't have a wii u anymore to test it myself, but if homebrews are not visible on the wii u menu I think you can press L + R + minus to open the plugin menu, there should be an option called "homebrews on wii u menu" or something similar
  • crafthp434 @ crafthp434:
    nope
  • crafthp434 @ crafthp434:
    it is L+dpad down+ select
  • crafthp434 @ crafthp434:
    but homebrew is appearing in the home menu btw
  • NinStar @ NinStar:
    yes, now I remember it
  • NinStar @ NinStar:
    then it is working, I also don't like that they did this but it is the only option you have if you are using aroma
  • crafthp434 @ crafthp434:
    i just didint know the homebrew launcher didint exist in aroma
  • crafthp434 @ crafthp434:
    thanks btw
  • Xdqwerty @ Xdqwerty:
    Im downloading fallout 3 goty edition
    +1
  • BigOnYa @ BigOnYa:
    I'm downloading more ram for my hamster pc
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    New hamster PC, with anal operation and BT connectivity!
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, How do I make enemies respawn on gdevelop after
    the player dies?
  • Psionic Roshambo @ Psionic Roshambo:
    Carrying a PC or phone is so old school!
  • Psionic Roshambo @ Psionic Roshambo:
    Squeeze your cheeks twice to answer calls!
  • BigOnYa @ BigOnYa:
    @Xdqwerty you can use a "spawner" function on any object.
    +1
  • BigOnYa @ BigOnYa:
    Or when your player dies, you can say in code, if enemy exists, do nothing, but if enemy does not exist, then create enemy at certain spot. (This would be a pain tho for lots of emeies)
    +1
  • BigOnYa @ BigOnYa:
    Easiest, simple way would be just restart scene, but player would restart from beginning.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, thx in advance
    Xdqwerty @ Xdqwerty: @BigOnYa, thx in advance