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.

DS development > Problem installing PAlib and libnds on Linux

#168853 - Sepho - Sat May 30, 2009 11:19 am

Hi everybody!

I've Arch Linux, and I installed devkitarm, libnds, dswifi and libfat at the AUR package.

Well, when I try to compile the PAlib examples, it works and compile without any problem. I'va installed the 1.3.2-1 libnds and 080823 PAlib version. So to have both installed and configured on my computer. For this task, I read the manual of the PAlib homepage.

The devkitarm, libnds and PAlib folders are under /mnt/data/NDS/devkitPro

After unzip all files into their respective directories, I've modified the ~/.bashrc file to add the env variables:
DEVKITPRO=/mnt/data/NDS/devkitPro
DEVKITARM=$DEVKITPRO/devkitARM
PAPATH=$DEVKITPRO/PAlib/lib

And then run source ~/.bashrc to update de variables with the new paths.

If I try to compile any of the PAlib examples, it works and compile without any error, but when I try to compile any of libnds examples I've downloaded I've got this error:

Code:

[sepho@arch hello_world]$ make
main.cpp
arm-eabi-g++ -MMD -MP -MF /mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/include -I/mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/build -I/mnt/datos/PFC/NDS/devkitPRO/libnds/include -I/mnt/datos/PFC/NDS/devkitPRO/libnds/include -I/mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/source/main.cpp -o main.o
/mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/source/main.cpp: In function 'int main()':
/mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/source/main.cpp:38: error: 'touchRead' was not declared in this scope
/mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/source/main.cpp:42: error: 'struct touchPosition' has no member named 'rawx'
/mnt/datos/PFC/NDS/devkitPRO/ejemplos_libnds/hello_world/source/main.cpp:43: error: 'struct touchPosition' has no member named 'rawy'
make[1]: *** [main.o] Error 1
make: *** [build] Error 2



If PAlib is wrote with libnds... Why PAlib compiles, but libnds show errors? :S

Thanks and sorry for my english :(

#168882 - wintermute - Mon Jun 01, 2009 4:58 pm

Unfortunately because installing PAlib broke your toolchain install.

http://wiki.devkitpro.org/index.php/PAlib
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#168889 - Sepho - Mon Jun 01, 2009 7:27 pm

wintermute wrote:
Unfortunately because installing PAlib broke your toolchain install.

http://wiki.devkitpro.org/index.php/PAlib


Problem solved. The problem was the examples I'm try to compile are the lastest version of examples, and the version of libnds I've installed is the 2007 version.

#168892 - Lazy1 - Mon Jun 01, 2009 8:12 pm

By solved you meant uninstalling PAlib?

#168895 - dantheman - Mon Jun 01, 2009 9:24 pm

As far as I know, the latest PAlib version claimed that it finally stopped breaking standard devkitARM installations. Of course now that devkitARM has recently been updated I'm not sure if that holds true anymore.

#168899 - Sepho - Mon Jun 01, 2009 10:38 pm

Lazy1 wrote:
By solved you meant uninstalling PAlib?


No, I have both. Libnds and palib.