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 

libcdvd iop

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
kenshin



Joined: 09 Oct 2006
Posts: 3

PostPosted: Mon Oct 09, 2006 1:23 pm    Post subject: libcdvd iop Reply with quote

Hi, I downloded libcdvd 1.15 from ps2dev website but I had quite a headach trying to build it ... at least the iop part
I get these errors
Code:

cdvd_iop.c: In function `CDVD_init':
cdvd_iop.c:292: dereferencing pointer to incomplete type
cdvd_iop.c: In function `CDVD_open':
cdvd_iop.c:322: `O_RDONLY' undeclared (first use in this function)
cdvd_iop.c:322: (Each undeclared identifier is reported only once
cdvd_iop.c:322: for each function it appears in.)
cdvd_iop.c: In function `CDVD_lseek':
cdvd_iop.c:386: `SEEK_SET' undeclared (first use in this function)
cdvd_iop.c:390: `SEEK_CUR' undeclared (first use in this function)
cdvd_iop.c:394: `SEEK_END' undeclared (first use in this function)
cdvd_iop.c: In function `_start':
cdvd_iop.c:559: storage size of `param' isn't known
cdvd_iop.c:581: invalid use of undefined type `struct fileio_driver'
cdvd_iop.c:582: invalid use of undefined type `struct fileio_driver'
cdvd_iop.c:583: invalid use of undefined type `struct fileio_driver'
cdvd_iop.c:584: invalid use of undefined type `struct fileio_driver'
cdvd_iop.c:585: invalid use of undefined type `struct fileio_driver'
cdvd_iop.c:590: `FIO_INITIALIZE' undeclared (first use in this function)
cdvd_iop.c:591: `FIO_OPEN' undeclared (first use in this function)
cdvd_iop.c:592: `FIO_CLOSE' undeclared (first use in this function)
cdvd_iop.c:593: `FIO_READ' undeclared (first use in this function)
cdvd_iop.c:594: `FIO_WRITE' undeclared (first use in this function)
cdvd_iop.c:595: `FIO_SEEK' undeclared (first use in this function)
cdvd_iop.c: In function `FindPath':
cdvd_iop.c:1079: warning: assignment makes pointer from integer without a cast
cdvd_iop.c:1187: warning: assignment makes pointer from integer without a cast
cdvd_iop.c:1233: warning: assignment makes pointer from integer without a cast
cdvd_iop.c: In function `CDVD_GetDir_RPC':
cdvd_iop.c:1292: storage size of `dmaStruct' isn't known
cdvd_iop.c: In function `CDVDRpc_TrayReq':
cdvd_iop.c:1634: warning: passing arg 2 of `CdTrayReq' from incompatible pointer type
cdvd_iop.c: In function `_splitpath':
cdvd_iop.c:1758: warning: assignment makes pointer from integer without a cast
cdvd_iop.c:1762: warning: assignment makes pointer from integer without a cast
cdvd_iop.c: In function `TocEntryCompare':
cdvd_iop.c:1836: warning: assignment makes pointer from integer without a cast
cdvd_iop.c:1841: warning: assignment makes pointer from integer without a cast
cdvd_iop.c:1847: warning: assignment makes pointer from integer without a cast
/usr/local/ps2dev/ps2sdk/common/include/tamtypes.h: At top level:
cdvd_iop.c:162: storage size of `qd' isn't known
cdvd_iop.c:163: storage size of `sd0' isn't known
cdvd_iop.c:170: storage size of `file_driver' isn't known
make[1]: *** [cdvd_iop.o] Error 1
make[1]: Leaving directory `/home/kenshin/xbmc/ps2toolchain/libcdvd/iop'
make: *** [build-iop] Error 2


wich is normal as in the iop subdir of ps2sdk there's no kernel.h nor fileio.h
it complains about a fileio_driver structure that isn't defined exist anywhere in the ps2sdk tree --anywhere in $(PS2DEV) int fact --

from what I could understand it needs PS2Lib, But on ps2sdk replaces ps2lib, ps2drv, ps2ip, ps2hid and libhdd projects. Use ps2sdk instead of any of these projects."
Ps2dev website we can see "
so I'm wondering ....
how can possibly this lib be built ...?
Back to top
View user's profile Send private message MSN Messenger
dlanor



Joined: 28 Oct 2004
Posts: 269
Location: Stockholm, Sweden

PostPosted: Tue Oct 10, 2006 5:03 pm    Post subject: Re: libcdvd iop Reply with quote

kenshin wrote:
Hi, I downloded libcdvd 1.15 from ps2dev website but I had quite a headach trying to build it ... at least the iop part
I get these errors
----- snip ----- re: compilation error list

I'm not sure if the makefile you used is identical to mine, but if it is, then it contains references to $(PS2LIB) expecting to find those missing declarations there.

Quote:
wich is normal as in the iop subdir of ps2sdk there's no kernel.h nor fileio.h
it complains about a fileio_driver structure that isn't defined exist anywhere in the ps2sdk tree --anywhere in $(PS2DEV) int fact --
That is both right and wrong. It is right for a pure PS2SDK type of PS2DEV installation, which is clearly what you have. But it is wrong for a PS2DEV installation with legacy compatibility. This needs both PS2LIB and PS2SDK installed in parallel, since some components have not been rewritten to use PS2SDK.


Quote:
from what I could understand it needs PS2Lib, But on ps2sdk replaces ps2lib, ps2drv, ps2ip, ps2hid and libhdd projects. Use ps2sdk instead of any of these projects."
Such replacement is the general intent of PS2SDK, but that doesn't mean that it has been implemented so in all sources with older origins.


Quote:
so I'm wondering ....
how can possibly this lib be built ...?
One of the programs that uses this libcdvd is uLaunchELF, of which I am one of the developers. We have simply accepted the need to use PS2LIB for this component of the project. To us that is a minor concession, as it doesn't affect other parts of our project. We simply drop the compiled "cdvd.irx" into a folder of IOP modules to be embedded in the main ELF, and do all the rest of the project with PS2SDK.

For the long term, it would be better if this component too was fully adapted to PS2SDK, but it's a pretty big job with little in the way of direct motivation, so I don't expect it to get done anytime soon :(

Best regards: dlanor
Back to top
View user's profile Send private message
kenshin



Joined: 09 Oct 2006
Posts: 3

PostPosted: Tue Oct 10, 2006 5:15 pm    Post subject: Re: libcdvd iop Reply with quote

hi,
thnx for the reply.
I got the EE part compiled :) (it didn't complain at least, didn't check if there are missing symboles ... )
as for the iop part I was thinking of getting PS2LIB to test ... but it's nowhere to be found (sf project is closed I think, searched on sf.net and there's no PS2Lib project anymore). is there a cvs/svn repository where I can get it ?
Back to top
View user's profile Send private message MSN Messenger
dlanor



Joined: 28 Oct 2004
Posts: 269
Location: Stockholm, Sweden

PostPosted: Wed Oct 11, 2006 2:56 am    Post subject: Re: libcdvd iop Reply with quote

kenshin wrote:
hi,
thnx for the reply.
I got the EE part compiled :) (it didn't complain at least, didn't check if there are missing symboles ... )
Even so, you still can't make any real changes to the lib without full control over the IOP part too. If it were just a case of wanting the lib in its present state, then I or someone else could just email it or post it somewhere.


Quote:
as for the iop part I was thinking of getting PS2LIB to test ... but it's nowhere to be found (sf project is closed I think, searched on sf.net and there's no PS2Lib project anymore). is there a cvs/svn repository where I can get it ?
Ooops. It seems someone has been a bit hasty in purging these supposedly 'obsolete' things. That was clearly not a good idea when some stuff still in use depends on it. I thought it was still alive merely because PS2Lib is still listed as available in the projects list at 'ps2dev.org/ps2/projects', but as you say the sourceforge link is dead.

I don't think there's any separate CVS/SVN repository for PS2LIB available, and I don't really think there should be, as it's no longer under development. But someone should prepare a download package with the last stable PS2LIB state, for use with legacy projects like libcdvd.

Best regards: dlanor
Back to top
View user's profile Send private message
kenshin



Joined: 09 Oct 2006
Posts: 3

PostPosted: Wed Oct 11, 2006 1:06 pm    Post subject: libcdvd iop Reply with quote

thnx again,
yeah wel it can wait for the moment, I was thinking of using it with SMS, because it can't really read DATA CD/DVDs, . thought may be libcdvd will change somyhing.

anyways I'm not really into programming anything for the moment ... just exploring the possibilities, one in particular an XLibish/GTKish something for the PS2 dev comunity could possibly be a good thing. So I'm reviewing how X works (quit a lot of info to process).
Back to top
View user's profile Send private message MSN Messenger
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Mon Aug 25, 2008 2:00 am    Post subject: Reply with quote

I realize this is a long-dead thread, but its content is still valid, and my response is still important:

As there really was a need for PS2Lib for quite a few outdated sources, I've not only included it in my pre-built, Win32 PS2SDK, but I've also made it available as a standalone package, here:

http://ps2dev.org/ps2/Code/Miscellaneous_Code/PS2Lib

Hope it helps some people.
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Mon Aug 25, 2008 6:46 am    Post subject: Reply with quote

LBGSHI wrote:
I realize this is a long-dead thread, but its content is still valid, and my response is still important:

As there really was a need for PS2Lib for quite a few outdated sources, I've not only included it in my pre-built, Win32 PS2SDK, but I've also made it available as a standalone package, here:

http://ps2dev.org/ps2/Code/Miscellaneous_Code/PS2Lib

Hope it helps some people.

Tnx for bringing up this long-dead thread to life again. I wasn't aware ps2lib is not completely replaced by ps2sdk, so I just got a copy from the URL you gave us.
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 -> PS2 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