Homebrew Help with using libnds and devkitARM

Morgawr

Well-Known Member
OP
Member
Joined
Dec 18, 2008
Messages
330
Trophies
0
Age
34
Website
Visit site
XP
158
Country
Italy
I can't get it to work on my codeblocks IDE (using ubuntu linux)... I don't get it, I followed a couple of guides but my code won't compile.. I'm afraid I'm missing some linked libraries or something but.. can somebody please help me? my code is:

CODE#define ARM9
#include

int main() {
ÂÂÂÂ/*ÂÂTurn on the 2D graphics core. */
ÂÂÂÂ//powerOn(POWER_ALL_2D);

ÂÂÂÂreturn 0;
}

and when I try to build it says:
Code:
-------------- Build: Debug in Test ---------------

Compiling: main.cpp
Linking console executable: bin/Debug/Test
/usr/local/lib/devkitpro_r24/devkitARM/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/bin/ld: /usr/local/lib/devkitpro_r24/devkitARM/arm-eabi/lib/be/libc.a(lib_a-errno.o): compiled for a big endian system and target is little endian
/usr/local/lib/devkitpro_r24/devkitARM/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/bin/ld: failed to merge target specific data of file /usr/local/lib/devkitpro_r24/devkitARM/arm-eabi/lib/be/libc.a(lib_a-errno.o)
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 0 warnings

what is the problem? I really don't get it.. I know my code does nothing, but still wtf is going on? is there a different way I should build it? How do I make it a .nds file? I tried looking on google and on a couple of forums but I could get no answer to my questions, hopefully someone here will help me
biggrin.gif



edit:

ps: if I try to uncomment that powerOn line I get this:

Code:
/usr/local/lib/devkitpro_r24/libnds/lib/libnds9.a(interrupts.o)||In function `irqInit':|
/usr/local/lib/devkitpro_r24/libbk/arm9/../source/common/interrupts.c|82|undefined reference to `__irq_vector'|
/usr/local/lib/devkitpro_r24/libnds/lib/libnds9.a(interrupts.o)||In function `irqInitHandler':|
/usr/local/lib/devkitpro_r24/libbk/arm9/../source/common/interrupts.c|95|undefined reference to `__irq_vector'|
/usr/local/lib/devkitpro_r24/libnds/lib/libnds9.a(interruptDispatcher.o)||In function `IntrRet':|
/usr/local/lib/devkitpro_r24/libbk/arm9/../source/common/interruptDispatcher.s|116|undefined reference to `__irq_flags'|
||=== Build finished: 3 errors, 0 warnings ===|
 

Morgawr

Well-Known Member
OP
Member
Joined
Dec 18, 2008
Messages
330
Trophies
0
Age
34
Website
Visit site
XP
158
Country
Italy
sleight said:
Remove or rename the DvkitARM folder in DevkitPro
Then download this and extract the new DevkitARM in the Devkitpro folder
devkitARM r20

why should I download the v20 when there's a v24 with lots of new and improved stuff?

also I found out the problem in thefirst part, but when I do the powerOn the other problem is still there D:
 

Morgawr

Well-Known Member
OP
Member
Joined
Dec 18, 2008
Messages
330
Trophies
0
Age
34
Website
Visit site
XP
158
Country
Italy
sleight said:
I read somewehre that the latest devkitARM isn't compatible with PaLib

I don't have PALib installed and I don't plan to using it... at least yet, I wanted to start learning nds programming with libnds and devkitARM since it's a lower level of language... é_è
 

sleight

Well-Known Member
Newcomer
Joined
Nov 23, 2008
Messages
73
Trophies
0
XP
63
Country
Gambia, The
Morgawr said:
sleight said:
I read somewehre that the latest devkitARM isn't compatible with PaLib

I don't have PALib installed and I don't plan to using it... at least yet, I wanted to start learning nds programming with libnds and devkitARM since it's a lower level of language... é_è

well programming languages are equal in their amount of needed skills.. because it's the same thing over and over again but with other expressions
just like learning vocabulary
but some languages got more opportunities.. others less
 

Morgawr

Well-Known Member
OP
Member
Joined
Dec 18, 2008
Messages
330
Trophies
0
Age
34
Website
Visit site
XP
158
Country
Italy
sleight said:
Morgawr said:
sleight said:
I read somewehre that the latest devkitARM isn't compatible with PaLib

I don't have PALib installed and I don't plan to using it... at least yet, I wanted to start learning nds programming with libnds and devkitARM since it's a lower level of language... é_è

well programming languages are equal in their amount of needed skills.. because it's the same thing over and over again but with other expressions
just like learning vocabulary
but some languages got more opportunities.. others less

I agree but as far as I knew, PALib is based on libnds and devkitARM so it's just a "collection" of useful API... or something like that which raises the level of the syntax, taking it farther from machine code... however that is not my main problem.. which I solved using makefiles >.<

I had to modify and use a makefile from the examples to compile and build my code but now it seems it's working... ^^'

I think we can lock this topic
biggrin.gif
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • 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
    +1
  • Spider2190 @ Spider2190:
    Heya
  • Spider2190 @ Spider2190:
    How are you doing, @Xdqwerty
    ?
  • Psionic Roshambo @ Psionic Roshambo:
    Dolphin porn??? This man has my vote!!! Lol
    Psionic Roshambo @ Psionic Roshambo: Dolphin porn??? This man has my vote!!! Lol