Compiling LuaPlayer for windows

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

Moderators: Shine, Insert_witty_name

Post Reply
sweetlilmre
Posts: 27
Joined: Sat Oct 01, 2005 7:24 pm

Compiling LuaPlayer for windows

Post by sweetlilmre »

Hi,

After much head bashing, I've finally managed to get somewhere with compiling the Windows LuaPlayer under cygwin.

My method was as follows:
Get and unpack the mikmod 3.0.3 src distro:
make: mmio
make: playercode
cp include/* /usr/local/include
cp lib/* /usr/local/lib

Get GLUT bin distro
put the .h file in /usr/local/GL
rename the lib to .a and put in /usr/local/lib

Now I get the following errors:
$ make -f Makefile.windows
gcc -o luaplayer.exe \
src/graphics.c src/sound.c src/luaplayer.c src/luacontrols.c src/luagraphics.c src/luasound.c src/luasystem.c src/utility.c \
src/emulator/emulator.c src/emulator/framebuffer.c src/emulator/windows/
windows.c \
-I/usr/local/pspdev/psp/sdk/sdk/include -I/usr/local/pspdev/psp/sdk/include -Isrc -L/usr/local/lib -lglut32 -lglu32 -llua -llualib -lopengl32 -lpng -lkernel32
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cc7BnoCM.o:luasystem.c:(.text+0x840)
: undefined reference to `_sceKernelUtilsMd5Digest'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cciXPLRB.o:windows.c:(.text+0x1c): undefined reference to `___glutInitWithExit@12'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cciXPLRB.o:windows.c:(.text+0x3c): undefined reference to `___glutCreateWindowWithExit@8'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cciXPLRB.o:windows.c:(.text+0x5c): undefined reference to `___glutCreateMenuWithExit@8'
collect2: ld returned 1 exit status

This looks like an environment or define issue, but I can't figure it out.
Any help would be greatly appreciated.
Thanks
-(e)
sweetlilmre
Posts: 27
Joined: Sat Oct 01, 2005 7:24 pm

Post by sweetlilmre »

Hi,

I was being an idiot and hadn't d/ld the cygwin openGL package...
If anyone wants instructions on how to compile, PM me and I'll do a tut.
Thanks
-(e)
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

sweetlilmre wrote:Hi,

I was being an idiot and hadn't d/ld the cygwin openGL package...
If anyone wants instructions on how to compile, PM me and I'll do a tut.
Thanks
-(e)
A tutorial would be nice, if not, a list of pre-requisites or dependancies, maybe someone could set up a windows nightly build.
Proud Dvorak User
US 1.5 PSP (Original)
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

i added opengl to my cygwin enviroment, still gettin errors :-/
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Post Reply