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 

Problems compiling LUAPLAYER

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Ricardo J. Pérez García



Joined: 20 Jun 2006
Posts: 1

PostPosted: Tue Jun 20, 2006 11:09 pm    Post subject: Problems compiling LUAPLAYER Reply with quote

(I'm following the steps in the page: http://wiki.ps2dev.org/psp:lua_player:compiling)

All its goes fine...
but when it's trying to "make install" in LuaPlayer directory the compiler finds a problem:

sio.cpp:175: error: invalid conversion from 'int (*)(PspIoDrvFileArg*, u32, long long int, int)' to 'SceOff (*)(PspIoDrvFileArg*, SceOff, int)'

then stop the install process

Can anyone help me to solve this problem?

Ricardo
Back to top
View user's profile Send private message
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Wed Jun 21, 2006 6:45 am    Post subject: Reply with quote

install the PSPSDK
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sat Jun 24, 2006 3:56 am    Post subject: Reply with quote

romero126 wrote:
install the PSPSDK

...idiot...

Anyway,
The reason that is happening is because your trying to compile a version between .12 and .16, as these are not compilable by the recent SDK. I have made a compilable version of .16, if you want, I can give you a link.
Back to top
View user's profile Send private message AIM Address
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Sat Jun 24, 2006 7:19 am    Post subject: Reply with quote

Actually its a quite intuitive answer.

sio.cpp:175: error: invalid conversion from 'int (*)(PspIoDrvFileArg*, u32, long long int, int)' to 'SceOff (*)(PspIoDrvFileArg*, SceOff, int)'

SIO.CPP is not in the LUAplayer Source files. Which means they have to be the SDK especially if it is useing the SCE function name type's. The fact that I never hinted at a version compatibility is because, I dont often touch the SDK to compile my own versions of LUAPlayer since it already comes in a handy little binary.

Also he never explained what version he was trying to install which leads to the assumption that he is trying to use the latest version of LUAPlayer.
Back to top
View user's profile Send private message
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Jun 25, 2006 12:56 am    Post subject: Reply with quote

romero126 wrote:

SIO.CPP is not in the LUAplayer Source files. Which means they have to be the SDK especially if it is useing the SCE function name type's. The fact that I never hinted at a version compatibility is because, I dont often touch the SDK to compile my own versions of LUAPlayer since it already comes in a handy little binary.

ACTUALLY, it is. In LuaPlayer .18+, it was moved to a different folder (as a module I think). In LuaPlayer .16 and below, it is in /src

Dont believe me? Check it.

And that error is the FIRST error you get when compiling LuaPlayer .12-.16 without a modified source code.
Back to top
View user's profile Send private message AIM Address
makai



Joined: 26 Jun 2007
Posts: 7

PostPosted: Tue Jun 26, 2007 7:54 pm    Post subject: Compilable LUA source Reply with quote

Hey youresam! Any chance you could post that link with the compilable LUA source? Or at least give a hint how to change sio.cpp so it will compile?

Thanks a lot!
Back to top
View user's profile Send private message
xpack



Joined: 26 Jun 2007
Posts: 9

PostPosted: Wed Jun 27, 2007 6:28 am    Post subject: Reply with quote

youresam- is your compilable Luaplayer .16 the one with the netlib included with it. If not could you post a link with it.
Back to top
View user's profile Send private message
xpack



Joined: 26 Jun 2007
Posts: 9

PostPosted: Wed Jun 27, 2007 6:36 am    Post subject: Reply with quote

From Insert_Witty_Name
Quote:


Open up the sio.cpp mate and change this code:


Code:
static int io_lseek(PspIoDrvFileArg *arg, u32 unk, long long ofs, int whence)
{
   return 0;
}


To this:


Code:
static SceOff io_lseek(PspIoDrvFileArg *arg, SceOff ofs, int whence)
{
   return 0;
}
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