trying to compile launchelf

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
ubergeek42
Posts: 83
Joined: Wed Jul 13, 2005 12:25 am

trying to compile launchelf

Post by ubergeek42 »

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?
ubergeek42
Posts: 83
Joined: Wed Jul 13, 2005 12:25 am

Post by ubergeek42 »

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?r ... rev=0&sc=0
http://svn.ps2dev.org/filedetails.php?r ... 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: Select all

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?)
EP
Posts: 39
Joined: Sat Nov 05, 2005 1:14 pm

Post by EP »

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.
ubergeek42
Posts: 83
Joined: Wed Jul 13, 2005 12:25 am

Post by ubergeek42 »

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.
EP
Posts: 39
Joined: Sat Nov 05, 2005 1:14 pm

Post by EP »

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.
yot23
Posts: 1
Joined: Sat Apr 08, 2006 7:43 am

Post by yot23 »

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: Select all

/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
Post Reply