Buenas,
Estoy intentando instalar PAlib para utilizarlo con un Gentoo x86_64. Instalando devkitarm y libnds (la precompilada) puedo programar sin problemas usando solo la libnds.
El problema es que palib viene con libnds ya, y no se compila, me da unos errores raros.
Total que pruebo a ver si aplastando la version de libnds con mi precompilada funciona, y no lo hace.
Por ejemplo al compilar un ejemplo de PAlib (el hello world)
~/Documentos/workspace/devkitpro/PAlibExamples/Text/Normal/HelloWorld $ make
main.c
In file included from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/PA9.h:17,
from /home/txukie/Documentos/workspace/devkitpro/PAlibExamples/Text/Normal/HelloWorld/source/main.c:3:
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_IO.h:6: error: expected ')' before '*' token
In file included from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/PA9.h:18,
from /home/txukie/Documentos/workspace/devkitpro/PAlibExamples/Text/Normal/HelloWorld/source/main.c:3:
/home/txukie/Documentos/workspace/devkitpro/libnds/include/gbfs.h:96: error: expected declaration specifiers or '...' before 'size_t'
/home/txukie/Documentos/workspace/devkitpro/libnds/include/gbfs.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gbfs_count_objs'
In file included from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/PA9.h:36,
from /home/txukie/Documentos/workspace/devkitpro/PAlibExamples/Text/Normal/HelloWorld/source/main.c:3:
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_SpriteDual.h: In function 'PA_DualCreate16bitSpriteEx':
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_SpriteDual.h:235: warning: implicit declaration of function 'malloc'
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_SpriteDual.h:235: warning: incompatible implicit declaration of built-in function 'malloc'
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_SpriteDual.h:247: warning: implicit declaration of function 'free'
In file included from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_Sound.h:15,
from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/PA9.h:37,
from /home/txukie/Documentos/workspace/devkitpro/PAlibExamples/Text/Normal/HelloWorld/source/main.c:3:
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_FS.h: In function 'PA_Malloc':
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_FS.h:190: warning: incompatible implicit declaration of built-in function 'malloc'
In file included from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/PA9.h:70,
from /home/txukie/Documentos/workspace/devkitpro/PAlibExamples/Text/Normal/HelloWorld/source/main.c:3:
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_IA.h: In function 'PA_InitAstar':
/home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_IA.h:19: warning: incompatible implicit declaration of built-in function 'malloc'
In file included from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/arm9/PA_Wifi.h:11,
from /home/txukie/Documentos/workspace/devkitpro/PAlib/include/nds/PA9.h:75,
from /home/txukie/Documentos/workspace/devkitpro/PAlibExamples/Text/Normal/HelloWorld/source/main.c:3:
/home/txukie/Documentos/workspace/devkitpro/libnds/include/sys/socket.h: At top level:
/home/txukie/Documentos/workspace/devkitpro/libnds/include/sys/socket.h:112: error: expected declaration specifiers or '...' before 'fd_set'
/home/txukie/Documentos/workspace/devkitpro/libnds/include/sys/socket.h:112: error: expected declaration specifiers or '...' before 'fd_set'
/home/txukie/Documentos/workspace/devkitpro/libnds/include/sys/socket.h:112: error: expected declaration specifiers or '...' before 'fd_set'
/home/txukie/Documentos/workspace/devkitpro/libnds/include/sys/socket.h:112: warning: 'struct timeval' declared inside parameter list
/home/txukie/Documentos/workspace/devkitpro/libnds/include/sys/socket.h:112: warning: its scope is only this definition or declaration, which is probably not what you want
make[1]: *** [main.o] Error 1
make: *** [build] Error 2
Alguien sabe si se puede usar PAlib en un linux x86_64 sin problemas? Y si es asi cual es el metodo a utilizar?