gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > can't get anything to compile with devkit arm

#148258 - zxcvbnm - Fri Jan 04, 2008 12:20 am

I'm new to this and I have devkit arm and palib.
I tried the hello world compile test, but it didn't work and broght this up:






C:\devkitPro\PAlibExamples\Text\Normal\Text>make clean
clean ...Text

C:\devkitPro\PAlibExamples\Text\Normal\Text>make
main.c
arm-eabi-g++ -mthumb-interwork -mno-fpu -L/c/devkitPro/PAlib/lib -specs=ds_arm9.
specs main.o -Lc:/devkitPro/PAlib//lib -lpa9 -L/c/devkitPro/libnds/lib -lfat -ln
ds9 -ldswifi9 -o build.elf
c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.1.2/../../../../arm-eabi/lib/ds
_arm9_crt0.o: In function `CIDLoop':
ds_arm9_crt0.s:(.init+0x2ac): undefined reference to `initSystem'
collect2: ld returned 1 exit status
make[1]: *** [/c/devkitPro/PAlibExamples/Text/Normal/Text/Text.elf] Error 1
make: *** [build] Error 2

C:\devkitPro\PAlibExamples\Text\Normal\Text>pause
Press any key to continue . . .

What happend?

#148261 - wintermute - Fri Jan 04, 2008 12:28 am

PAlib broke your devkitARM install.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#148274 - Legolas - Fri Jan 04, 2008 4:01 am

Ok, so:
-Uninstall PAlib and devkitARM, then reinstall devkitARM.
-Reinstall PAlib, but NOT in devkitPro directory (install it eg. c:\PA\)
-Delete the "libnds" folder in the PAlib installation directory
-Edit \PAlib\lib\arm9\PA_3D.c. Replace all calls to glViewPort to glViewport (case sensitive!)
-Edit \PAlib\include\nds\arm9\PA_3DSprites.h and change all occurrences of "textures" and "activeTexture" in "glGetGlobals()->textures" and "glGetGlobals()->activeTexture"
-In the same way, edit \PAlib\lib\arm9\PA\3DSprites.c and change all occurrences of "textures" and "activeTexture" in "glGetGlobals()->textures" and "glGetGlobals()->activeTexture"
-Rebuild all

Now it *should* work without trashing your devkitARM
_________________
My homepage!

#148301 - zxcvbnm - Fri Jan 04, 2008 2:45 pm

I'll try this later and see if it works.