Homebrew Help with using libnds and devkitARM

Morgawr

Well-Known Member
OP
Member
Joined
Dec 18, 2008
Messages
330
Trophies
0
Age
32
Website
Visit site
XP
138
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
32
Website
Visit site
XP
138
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
32
Website
Visit site
XP
138
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
32
Website
Visit site
XP
138
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
 

You may also like...

General chit-chat
Help Users
  • No one is chatting at the moment.
    Veho @ Veho: https://i.imgur.com/B6xTZgn.jpg