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 

compiler issues

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



Joined: 06 Mar 2009
Posts: 1

PostPosted: Fri Mar 06, 2009 9:14 am    Post subject: compiler issues Reply with quote

i'm new to programming lua on the psp and was wondering if anyone could help with my problem. I know i coded it correctly (helloworld app) because it works on the windows player, and when i try to comple a standalone app it gives me this:
Code:

C:\Users\Owner\Desktop\a>make
psp-g++ -I. -IC:/pspsdk/psp/sdk/include -G0 -Wall -O0 -fno-strict-aliasing -mno-
explicit-relocs  -IC:/pspsdk/psp/include/freetype2  -I. -IC:/pspsdk/psp/sdk/incl
ude -G0 -Wall -O0 -fno-strict-aliasing -mno-explicit-relocs  -IC:/pspsdk/psp/inc
lude/freetype2  -fno-exceptions -fno-rtti -D_PSP_FW_VERSION=150   -c -o src/soun
d.o src/sound.cpp
src/sound.cpp:10: error: expected initializer before '*' token
src/sound.cpp: In function 'void initMikmod()':
src/sound.cpp:26: error: '_mm_RegisterErrorHandler' was not declared in this sco
pe
src/sound.cpp:35: error: 'musichandle' was not declared in this scope
c:/pspsdk/lib/gcc/../../psp/include/mikmod.h:225: error: too few arguments to fu
nction 'BOOL MikMod_Init(CHAR*)'
src/sound.cpp:36: error: at this point in file
src/sound.cpp: In function 'void unloadMikmod()':
src/sound.cpp:42: error: 'musichandle' was not declared in this scope
src/sound.cpp:42: error: 'MikMod_FreeSong' was not declared in this scope
src/sound.cpp: In function 'void loadAndPlayMusicFile(char*, BOOL)':
src/sound.cpp:51: error: 'musichandle' was not declared in this scope
src/sound.cpp:53: error: 'musichandle' was not declared in this scope
src/sound.cpp:53: error: 'MikMod_LoadSong' was not declared in this scope
src/sound.cpp: In function 'void stopAndUnloadMusic()':
src/sound.cpp:60: error: 'musichandle' was not declared in this scope
src/sound.cpp:60: error: 'MikMod_FreeSong' was not declared in this scope
src/sound.cpp: In function 'void musicPause()':
src/sound.cpp:67: error: 'MP_HandleTick' was not declared in this scope
src/sound.cpp: In function 'void musicResume()':
src/sound.cpp:71: error: 'musichandle' was not declared in this scope
src/sound.cpp: In function 'Sound* loadSound(char*)':
src/sound.cpp:77: error: 'WAV_LoadFN' was not declared in this scope
src/sound.cpp: In function 'void unloadSound(Sound*)':
src/sound.cpp:81: error: 'WAV_Free' was not declared in this scope
src/sound.cpp: In function 'Voice playSound(Sound*)':
src/sound.cpp:87: error: 'MikMod_PlaySample' was not declared in this scope
make: *** [src/sound.o] Error 1


Is this a compiler error or coding error on my part?(no sounds used in app, tutorial i used at http://www.evilmana.com/tutorials/lua_tutorial_list.php only up to button imput)
Back to top
View user's profile Send private message
slasher2661996



Joined: 22 Feb 2009
Posts: 91
Location: Melbourne Australia ZOMG

PostPosted: Mon Mar 09, 2009 5:42 pm    Post subject: Reply with quote

You don't compile Lua apps.
Drop the index.lua or system.lua in the same folder as the EBOOT.
.:-Slasher-:.
Back to top
View user's profile Send private message
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