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 

trying to compile launchelf

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



Joined: 13 Jul 2005
Posts: 83

PostPosted: Wed Jan 04, 2006 11:33 am    Post subject: trying to compile launchelf Reply with quote

ok i am really new at this...so im sorry if this is something really simple.
i gathered that i need libcdvd and i searched the forum and found it.
i got the files from here: http://ps2dev.org/kb.x?T=996
but now i have to wonder where i put it?

im am doing all my compiling on a linux machine and i can compile the examples.

do i just put the contents of the zip in the ps2sdk folder? or do i put them in with the source to launchelf?

i am trying to compile the latest unofficial lauchelf(3.41r)

ps: which version do i want?
also are there any other things i need to add to make this compile?
Back to top
View user's profile Send private message AIM Address MSN Messenger
ubergeek42



Joined: 13 Jul 2005
Posts: 83

PostPosted: Sat Jan 07, 2006 12:49 pm    Post subject: Reply with quote

ok solved that problem...
(for those who want you know you put the libcdvd folder in the ps2dev folder...man im an idiot)

anyways now i have a new problem. i can't seem to find cd.h, well i found one in the svn
http://svn.ps2dev.org/filedetails.php?repname=ps2ware&path=%2Ftrunk%2Fps2menu%2Fps2menu%2Fcd.h&rev=0&sc=0
http://svn.ps2dev.org/filedetails.php?repname=ps2ware&path=%2Ftrunk%2Fps2menu%2Fps2menu%2Fcd.c&rev=0&sc=0

i put these 2 files in the folder with launchelf but now i get this when i try and compile.(this is just the revelant snippet, i think)

Code:
main.c: In function `loadCdModules':
main.c:507: warning: implicit declaration of function `cdInit'
main.c:507: `CDVD_INIT_INIT' undeclared (first use in this function)
main.c:507: (Each undeclared identifier is reported only once
main.c:507: for each function it appears in.)
main.c: In function `Reset':
main.c:838: `MC_TYPE_RESET' undeclared (first use in this function)
main.c: In function `main':
main.c:848: `CdvdDiscType_t' undeclared (first use in this function)
main.c:848: parse error before "cdmode"
main.c:934: `cdmode' undeclared (first use in this function)
main.c:934: warning: implicit declaration of function `cdGetDiscType'
main.c:935: `CDVD_TYPE_NODISK' undeclared (first use in this function)
make: *** [main.o] Error 1


this leads me to believe that cd.h and cd.c are part of a lib i can't find.
could somebody please point me in the right direction?

also where is the correct location for usb_mass, i put it in my ps2dev folder but i had to modify the makefile to know where to get the headers...(am i supposed to export another variable for it, if so what would it be called?)
Back to top
View user's profile Send private message AIM Address MSN Messenger
EP



Joined: 05 Nov 2005
Posts: 39

PostPosted: Sat Jan 07, 2006 3:51 pm    Post subject: Reply with quote

Sorry I really need to put together a tutorial on building uLaunchELF. Here is some info hope it helps:

packages utilized:
original LaunchELF_v3_41-src package
uLaunchELF source changes package
libcdvd (ver 1.15 located at ps2dev.org)
libito (ver 0.2.1 located at lukasz.dk)
ps2eth
ps2ftpd
ps2sdk
usb_mass

Note1: ps2dev9 and usbd IRX modules are included in the original LaunchELF source package.
Note2: libcdvd, ps2ftpd, and usb_mass IRX modules are included in the uLaunchELF source package.

Copy uLaunchELF's changed files over the original launchELF source files to get it to compile. Note: the makefiles are very important.

You will also need to update your sdk with dlanor's as well as some my own changes. Simply add our changed files to the ps2sdksrc and rebuild the sdk.

Oh and another thing dlanor and I have compiled everything with the older IOP compiler. I've now since moved on to the newer iop 3.2.2 compiler after fixing some issues and it's in the unreleased version 3.41s. I plan on releasing that version when I know dlanor can get a chance to test it.
Back to top
View user's profile Send private message
ubergeek42



Joined: 13 Jul 2005
Posts: 83

PostPosted: Mon Jan 09, 2006 11:57 am    Post subject: Reply with quote

hey thanks alot for the information..ill try it and let you know how it goes.
but first a few questions.

I add the ps2sdk folder from the ulaunchelf source to the ps2sdksrc and recompile, correct?
You say to copy uLaunchelfs files over the original ones. i am assuming that i copy all the files in the root directory and also the loader folder? or all of the files and folders?

if i get this working ill detail my steps and maybe put together a tutorial, as I think many people would like to compile this.
also a huge thank you and dlanor to updating this awesome piece of software and continuing to make it the best elf launcher ever.
Back to top
View user's profile Send private message AIM Address MSN Messenger
EP



Joined: 05 Nov 2005
Posts: 39

PostPosted: Tue Jan 10, 2006 8:46 am    Post subject: Reply with quote

ubergeek42 wrote:
I add the ps2sdk folder from the ulaunchelf source to the ps2sdksrc and recompile, correct?

Well not exactly you simply overwrite these ps2sdksrc files with the ones included in uLaunchELF's ps2sdk source package:

files from the memorycard folder go to:
ps2sdksrc\ee\rpc\memorycard\include\libmc.h
ps2sdksrc\ee\rpc\memorycard\src\libmc.c

files from the pad folder go to:
ps2sdksrc\ee\rpc\pad\include\libpad.h
ps2sdksrc\ee\rpc\pad\src\libpad.c

files from the padx folder go to:
ps2sdksrc\ee\rpc\padx\include\libpad.h
ps2sdksrc\ee\rpc\padx\src\libpadx.c

files from the apa folder go to:
ps2sdksrc\iop\hdd\apa\src\hdd_fio.c
ps2sdksrc\iop\hdd\apa\src\misc.c

file from the pfs folder goes to:
ps2sdksrc\iop\hdd\pfs\src\misc.c

Then when that's all done you need to rebuild the ps2sdk.

ubergeek42 wrote:
You say to copy uLaunchelfs files over the original ones. i am assuming that i copy all the files in the root directory and also the loader folder? or all of the files and folders?

You can copy all the files and folders if you want. However; loader, modules, and ps2host are the only directories uLaunchELF needs as its subdirectores.

Libcdvd, ps2ftpd, and usb_mass folders contain only source changes. Compiled IRX's are already included so you don't have to worry about them. The makefile points to their included modules in the modules folder.
Back to top
View user's profile Send private message
yot23



Joined: 08 Apr 2006
Posts: 1

PostPosted: Mon Oct 15, 2007 4:56 am    Post subject: Reply with quote

welcome

i'm trying to compile uLaunchELF 4.12
i did everything that ubergeek42 gave in his script "ulecompile.sh", but i my $PS2DEV dir
and i'm getting this error

Code:
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsCore.o)(.text+0x20c): In function `gsKit_setactive':
gsCore.c: undefined reference to `dmaKit_wait_fast'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsCore.o)(.text+0x21c):gsCore.c: undefined reference to `dmaKit_send_ucab'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsCore.o)(.text+0xb94): In function `gsKit_queue_exec_real':
gsCore.c: undefined reference to `dmaKit_wait_fast'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsCore.o)(.text+0xbac):gsCore.c: undefined reference to `dmaKit_send_chain_ucab'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsCore.o)(.text+0xc30):gsCore.c: undefined reference to `dmaKit_wait_fast'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsInit.o)(.text+0x504): In function `gsKit_init_screen':
gsInit.c: undefined reference to `dmaKit_send_ucab'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsInit.o)(.text+0x50c):gsInit.c: undefined reference to `dmaKit_wait_fast'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsTexture.o)(.text+0x10d8): In function `gsKit_texture_send':
gsTexture.c: undefined reference to `dmaKit_wait'
/usr/local/ps2dev/gsKit/lib/libgskit.a(gsTexture.o)(.text+0x10e8):gsTexture.c: undefined reference to `dmaKit_send_chain'
collect2: ld returned 1 exit status

what to do?
EDIT: i moved those functions from dmaCore.c to gsCore.c and now it compiles
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 -> 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