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)
Compiling LuaPlayer for windows
Moderators: Shine, Insert_witty_name
-
- Posts: 27
- Joined: Sat Oct 01, 2005 7:24 pm
A tutorial would be nice, if not, a list of pre-requisites or dependancies, maybe someone could set up a windows nightly build.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)
Proud Dvorak User
US 1.5 PSP (Original)
US 1.5 PSP (Original)