Luaplayer compiling probelm

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
xpack
Posts: 9
Joined: Tue Jun 26, 2007 8:20 am

Luaplayer compiling probelm

Post by xpack »

I got the psp-sdk from 6-6-07 and when trying to compile Luaplayer.20 I get this error

Code: Select all

src/lua3d.cpp: In function 'void lua3D_init(lua_State*)':
src/lua3d.cpp:355: error: 'GU_COLOR_RES1' was not declared in this scope
src/lua3d.cpp:356: error: 'GU_COLOR_RES2' was not declared in this scope
src/lua3d.cpp:357: error: 'GU_COLOR_RES3' was not declared in this scope
make: *** [src/lua3d.o] Error 1
But when I try to compile Luaplayer16 I get this error

Code: Select all

src/luaplayer.cpp: In function 'int runScript(const char*, bool)':
src/luaplayer.cpp:24: error: 'luaopen_loadlib' was not declared in this scope
make: *** [src/luaplayer.o] Error 1
Does anybody know how to fix this
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Those constants were removed from pspgu at some point; I took them out of luaplayer so it should compile now.
xpack
Posts: 9
Joined: Tue Jun 26, 2007 8:20 am

Post by xpack »

Was it changed in the svn version or the luaplayer.org one
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

SVN. You can also just edit lua3d.cpp yourself and remove the lines with GU_COLOR_RES.
xpack
Posts: 9
Joined: Tue Jun 26, 2007 8:20 am

Post by xpack »

Okay thanks, got Luplayer 20 compiled.
Post Reply