Can't Compile

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Heran_Bago
Posts: 7
Joined: Sat Sep 17, 2005 1:19 pm

Can't Compile

Post by Heran_Bago »

After spending the weekend getting PSPSDK up, I grabbed a couple source codes to try compiling. I got the sources to PSPBlackjack 0.2b4 and PSPGenesis 0.15.

PSPBlackjack doesn't have a make file, but a compile.bat. Upon using the compile.bat, I get slapped with this:
Image
The compile.bat when opened in notepad reads:

Code: Select all

@echo off

echo Compiling %1
C:\PS2Dev\ee\bin\ee-gcc -Wall -march=r4000 -g -mgp32 -mlong32 -c %1
if NOT %errorlevel%==0 ( goto END )

:SUCCESS
echo Successfully compiled %1
:END
With PSPGenesis, I actually can just do the "make" command in the directory. It waits a bit, actually acts like it's working (I'm sure it is) then gives me this:
Image


I have no idea why neither are working, I believe I have installed PSPSDK with no problems.
Are there other programs which can compile for the PSP? Maybe something else was used, and PSPSDK can't compile them? I'm new to this, so any help would be geatly appreciated.
CyberBill
Posts: 86
Joined: Tue Jul 26, 2005 3:53 pm
Location: Redmond, WA

Post by CyberBill »

.bat files are windows batch files... just double click it in windows explorer, although really you need to figure out how they are compiling it and do the same. Not everyone is using the same compilation environment.
Heran_Bago
Posts: 7
Joined: Sat Sep 17, 2005 1:19 pm

Post by Heran_Bago »

Windows won't do it either, not even with the command prompt.
I suppose it's idealistic to expect PSPSDK to compile anything in C built for the PSP. Too bad the sources don't even mention what they used to compile.
Chrighton
Posts: 58
Joined: Wed Jun 15, 2005 8:24 pm

Post by Chrighton »

Heran_Bago wrote:Windows won't do it either, not even with the command prompt.
I suppose it's idealistic to expect PSPSDK to compile anything in C built for the PSP. Too bad the sources don't even mention what they used to compile.
In the Blackjack example it is clearly using ee-gcc. This is the old makeshift ps2 compiler that was used to make psp programs very early on. You ought to abandon old stuff written with ee-gcc, especially those using .bat files, as this is poor practice (or else you will have to learn to rewrite the .bats/makefiles to properly invoke and use PSPSDK, but this can prove to be more work than is worth the effort if the sources need fixing too). It is not idealistic to expect PSPSDK to build C programs, it does that just fine.
Post Reply