forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling LuaPlayer for windows

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
sweetlilmre



Joined: 01 Oct 2005
Posts: 27

PostPosted: Sun Oct 02, 2005 9:57 pm    Post subject: Compiling LuaPlayer for windows Reply with quote

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)
Back to top
View user's profile Send private message
sweetlilmre



Joined: 01 Oct 2005
Posts: 27

PostPosted: Mon Oct 03, 2005 5:35 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Zenurb



Joined: 30 Sep 2005
Posts: 106
Location: United Kingdom

PostPosted: Mon Oct 03, 2005 8:06 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
LuMo



Joined: 21 Aug 2005
Posts: 410
Location: Austria

PostPosted: Mon Oct 03, 2005 8:59 pm    Post subject: Reply with quote

i added opengl to my cygwin enviroment, still gettin errors :-/
_________________
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group