The above video goes away if you are a member and logged in, so log in now!
|
| |
Would you like to get all the new info from PSX-Scene in your email each day?
| |
|
-
#1
Help with compiling FreeMCBoot
Help with compiling FreeMCBoot –
07-07-2008,05:15 AM
Hey guys I need some help with compiling FreeMcBoot from source I downloaded the file and slightly edited the makefile to point to my gskit and libjpg locations and now when I try and run make this is the error that I get:
Code:
C:\ps2dev\FreeMCBoot\src>make
ee-gcc -D_EE -O2 -G0 -Wall -IC:/ps2dev/ps2sdk/ee/include -IC:/ps2dev/ps2sdk/com
mon/include -I. -IC:/ps2dev/ps2sdk/iop/include -IC:/ps2dev/ps2sdk/common/include
-IC:/ps2dev/gsKit/ee/gs/include -IC:/ps2dev/gsKit/ee/dma/include -IC:/ps2dev/li
bjpg/libjpg/include -IC:/ps2dev/ps2sdk/sbv/include -c draw.c -o draw.o
draw.c: In function `Setup_GS':
draw.c(344) : too few arguments to function `dmaKit_init'
draw.c: In function `Load_Skin':
draw.c(385) : `JPG_WIDTH_FIX' undeclared (first use in this function)
draw.c(385) : (Each undeclared identifier is reported only once
draw.c(385) : for each function it appears in.)
draw.c(385) : too many arguments to function `jpgOpenRAW'
make: *** [draw.o] Error 1
What am I doing wrong?
-
07-07-2008,08:10 AM

Originally Posted by
PhibreOptix
Hey guys I need some help with compiling FreeMcBoot from source I downloaded the file and slightly edited the makefile to point to my gskit and libjpg locations and now when I try and run make this is the error that I get:
Code:
C:\ps2dev\FreeMCBoot\src>make
ee-gcc -D_EE -O2 -G0 -Wall -IC:/ps2dev/ps2sdk/ee/include -IC:/ps2dev/ps2sdk/com
mon/include -I. -IC:/ps2dev/ps2sdk/iop/include -IC:/ps2dev/ps2sdk/common/include
-IC:/ps2dev/gsKit/ee/gs/include -IC:/ps2dev/gsKit/ee/dma/include -IC:/ps2dev/li
bjpg/libjpg/include -IC:/ps2dev/ps2sdk/sbv/include -c draw.c -o draw.o
draw.c: In function `Setup_GS':
draw.c(344) : too few arguments to function `dmaKit_init'
draw.c: In function `Load_Skin':
draw.c(385) : `JPG_WIDTH_FIX' undeclared (first use in this function)
draw.c(385) : (Each undeclared identifier is reported only once
draw.c(385) : for each function it appears in.)
draw.c(385) : too many arguments to function `jpgOpenRAW'
make: *** [draw.o] Error 1
What am I doing wrong?
Since the error messages complain both about 'too few' and 'too many' arguments being used in calling some lib functions, the only conclusion I can draw is that you have the wrong lib versions.
Edit:
I just tested compiling it myself, using the same lib set as for compiling uLE, but this gives the same error message that you got for the call to 'dmaKit_init'. But at least it eliminated the problem with libjpg.
Now to fix the remaining problem, check text line 343 in "draw.c". There you will find a commented-out variation of the erring dmaKit_init call of line 344, with one additional argument. That is the variant you need for the version of gsKit you have, and also for the gsKit version used with uLE.
So I removed the "//" sequence in line 343, and inserted an identical sequence at the start of line 344, thus commenting out the call that caused the error.
After these changes the entire project compiled fine, resulting in a "FREE_MCBOOT.ELF" file compressed to 282084 bytes, as compared to the 282388 bytes of the binary release. (Quite normal variations, possibly due to minor lib differencies or different ps2-packer versions.)
Best regards: dlanor
-
07-07-2008,08:58 AM
It does compile, but it didn't work for me, it locked just before loading the graphic stuff, after the loading... text at debug screen(well, I'm not sure it is debug screen).
I tried this some time ago and didn't really check it as I was only interested in launcher2, so I just put it as EMBED.ELF with the installer release.
-
07-07-2008,09:07 AM
After a crapload of messing around with things that I don't really understand I've managed to get it to this and now I can't get any further:
Code:
C:\ps2dev\FreeMCBoot>make
make -C src
make[1]: Entering directory `/c/ps2dev/FreeMCBoot/src'
ee-gcc -mno-crt0 -Tlinkfile -LC:/ps2dev/ps2sdk/ee/lib -nostartfiles -Tlinkfile -
LC:/ps2dev/gsKit/lib -LC:/ps2dev/libjpg/libjpg/lib -LC:/ps2dev/ps2sdk/sbv/lib -L
. -s \
-o bin/FREE_MCBOOT.ELF crt0/crt0.o mcboot.o pad.o draw.o embed.o
build_osd.o osdname.o mcid.o mcsp_rpc.o timer.o obj/iomanx.o obj/filexio.o obj/
usbd.o obj/usbhdfsd.o obj/poweroff.o obj/launcher1.o obj/launcher2.o obj/mcsio2.
o obj/mcsp.o obj/icon_sys.o obj/icon_icn.o obj/boot_icon_sys.o obj/boot_icon_icn
.o obj/cnf_icon_sys.o obj/cnf_icon_icn.o obj/background.o obj/FREEMCB_CNF.o -lpa
dx -lgsKit -ldmaKit -ljpg -lcdvd -lmc -lhdd -lfileXio -lpatches -lpoweroff -ldeb
ug -lc -lkernel
mcboot.o(.text+0x392c): In function `main':
mcboot.c: undefined reference to `mcReset'
mcboot.o(.text+0x393c):mcboot.c: undefined reference to `padReset'
pad.o(.text+0x4bc): In function `Setup_Pad':
pad.c: undefined reference to `padReset'
C:/ps2dev/ps2sdk/ee/lib/libpoweroff.a(poweroff.o)(.text+0x100): In function `Pow
erOffThread':
src/poweroff.c: undefined reference to `fileXioDevctl'
C:/ps2dev/ps2sdk/ee/lib/libpoweroff.a(poweroff.o)(.text+0x120):src/poweroff.c: u
ndefined reference to `fileXioDevctl'
C:/ps2dev/ps2sdk/ee/lib/libpoweroff.a(poweroff.o)(.text+0x13c):src/poweroff.c: u
ndefined reference to `fileXioDevctl'
collect2: ld returned 1 exit status
make[1]: *** [bin/FREE_MCBOOT.ELF] Error 1
make[1]: Leaving directory `/c/ps2dev/FreeMCBoot/src'
make: *** [all] Error 2
I don't have to much experience messing with toolchains for cross-compiling or anything and I've always been cushioned into it with auto-installing packages for windows and now I can't seem to figure out the ps2 enviornment so if anyone can lend a helping hand I would appreciate it so much.
-
07-07-2008,09:11 AM

Originally Posted by
suloku
It does compile, but it didn't work for me, it locked just before loading the graphic stuff, after the loading... text at debug screen(well, I'm not sure it is debug screen).
Yes, it locks the same way here, so apparently it depends on some setup difference that we're not aware of yet.
Best regards: dlanor
-
07-07-2008,09:22 AM

Originally Posted by
PhibreOptix
After a crapload of messing around with things that I don't really understand I've managed to get it to this and now I can't get any further:
----- snip ----- re: your log from a compilation attempt
That log contained lots of errors that I never saw in compiling it with my setup, so something has to be wrong at your end.
I don't have to much experience messing with toolchains for cross-compiling or anything and I've always been cushioned into it with auto-installing packages for windows and now I can't seem to figure out the ps2 enviornment so if anyone can lend a helping hand I would appreciate it so much.
I doubt that it's the basic toolchain which is broken, as that should show itself in other ways too. But you probably don't have the lib set you need. The uLE release package contains a bash script named "setup.sh" which can do a semi-automatic install of the libs needed by uLE, including the patches for them that uLE uses. If you decide to try this, remember to make a backup of your existing lib set first, and note that you need to invoke "setup.sh" in the same folder as distributed, so it can find the lib patch files referred to in the script.
However, while this will allow you to compile the FMCB installer without error messages, it will most likely still lock up for you, just like it did for me and suloku.
Best regards: dlanor
-
07-07-2008,09:42 AM
Is very hard to setup this toolchain to compile PS2 apps, I'm also having problems with that, specially compiling GCC.
-
07-27-2008,02:28 AM

Originally Posted by
dlanor
Yes, it locks the same way here, so apparently it depends on some setup difference that we're not aware of yet.
Best regards: dlanor
From playing with it myself after running into the same issue, the problem seems to lay in libjpg, as commenting out the call to Load_Skin() lets the installer run fine (if somewhat blindly).
-
#9
my step-by-step :)
my step-by-step :) –
07-27-2008,08:27 AM
I've managed some time ago to setup a ps2 toolchain dev env.
Followed lukasz MinGW tutorial (/usr/local/ps2dev/ps2sdk).
Tried first to use his pre-compiled toolchain... It didn't work...
Got errors like those you got.
Then I ran sh toolchain.sh and after a looooong wait the ps2sdk was built.
After this, I downloaded every piece of software from p2dev svn.
When I tried compile gsKit (I guess), it missed PS2SDKSRC. Da*n it.
Had to put the ps2sdksrc downloaded from svn in /usr/local/ps2dev/ps2sdk/ps2sdksrc. Don't know why it hasn't be downloaded by toolchain.
In that stage, I was able to compile gsKit, libjpg and so.
Had to make some minors modifications in one or another Makefile just to point *.a files in 'lib' directories and sometimes to create that lib dirs by myself. Other changes were to point to dma*.h and gs*.h. The make couldn't find them by himself.
The only piece of software I couldn't compile in my toolchain was usbhdfsd. But as I wanted just fmcb15 to compile I got one from the net and put in the proper dir just to get it compiled.
Tested my fmcb compiled in real hardware and worked like a charm.
Sorry for long post, but I put everything I remembered I did to make toolchain compile fmcb. Good luck and best regards.
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|