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 

How to compile, link and transfer PSP programs from VS.NET
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
rasmus



Joined: 21 Jul 2004
Posts: 17
Location: Göteborg, Sweden

PostPosted: Thu Jul 07, 2005 3:19 am    Post subject: How to compile, link and transfer PSP programs from VS.NET Reply with quote

I just hacked together a way to run the psp toolchain under cygwin from inside visual studio.net. It includes converting gcc error messages to something visual studio can parse. If anyone comes up with a cleaner way to accomplish this it would be great, but at least this works.

This assumes that the psp toolchain is installed and the path to it is in the cygwin profile.

1. Create a batch file called psp-make.bat. Put it in for example c:\pspdev\. If your psp has another drive letter than E:\, change
PSP_MOUNT. It should contain this:

Code:

@\cygwin\bin\bash -c 'export VS_PATH=`pwd`; export PSP_MOUNT=/cygdrive/e; /bin/bash --login -c "cd $VS_PATH; %1 %2 %3 %4 %5"'


2. Create a shell script called vs-psp-gcc and put it in /usr/local/pspdev/bin or where you have installed the psp toolchain. It contains this:

Code:

CMD=`echo $0 | sed -e 's/\([^-]*-\)//'`
$CMD 2>&1 $@ | sed -e 's/\([^:]*\):\([0-9][0-9]*\)\(.*\)/\1 (\2) \3/'


3. Symlink vs-psp-g++ to vs-psp-gcc, like this:

Code:

/usr/local/pspdev/bin
$ ln -s vs-psp-gcc vs-psp-g++


4. Create a new VS.NET Makefile project, with the following settings:

Code:

Build command line: c:\pspdev\psp-make.bat make kxploit
Output: projname.elf
Clean commands: c:\pspdev\psp-make.bat make clean
Rebuild command line: c:\pspdev\psp-make.bat make clean kxploit


5. Change this under the VS.NET Menu Project / Properties / Debugging:

Code:

Command: c:\windows\system32\cmd.exe
Command Arguments: /c c:\pspdev\psp-make.bat make kx-install


6. Populate the project directory with code and a Makefile like the samples in PSPSDK. Add the source files to the VS.NET project. Add this to the bottom of the Makefile (Make sure that the indented lines are tabbed and not spaced):

Code:

ifneq ($VS_PATH),)
CC       = vs-psp-gcc
CXX      = vs-psp-g++
endif

kx-install: kxploit
ifeq ($(PSP_MOUNT),)
        @echo '*** Error: $$(PSP_MOUNT) undefined. Please set it to for example /cygdrive/e'
        @echo if your PSP is mounted to E: in cygwin.
else
        cp -r $(KXDIR) $(PSP_MOUNT)/PSP/GAME/
        cp -r $(KXDUMMY) $(PSP_MOUNT)/PSP/GAME/
endif


Now you can build your project with the 'Build Solution' Command, rebuild it with 'Rebuild Solution' Command and clean the solution with.. you get it :)

With the 'Start Debug' Command it will copy the build to a connected PSP.

Step 1-3 only has to be done once, and 4-6 has to be done for each project.

If you like you can put the content of step 6 in /usr/local/pspdev/psp/sdk/lib/build.mak instead and only do it once.

Hope this helps anyone eager to use their beloved visual studio ;)

/Rasmus
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Jul 07, 2005 3:32 am    Post subject: Reply with quote

Made stickier for eyeball attraction.
Back to top
View user's profile Send private message Visit poster's website
HexDump



Joined: 07 Jun 2005
Posts: 70

PostPosted: Fri Jul 08, 2005 8:02 pm    Post subject: Reply with quote

is there any chance to use Visual Studio 6 performing this trick?

Thanks in advance,
HexDump.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Fri Jul 08, 2005 8:43 pm    Post subject: Reply with quote

I guess this can be done with PS2 toolchain too... Maybe sticking something in ps2 threads.. ?
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Sat Jul 09, 2005 1:02 am    Post subject: Reply with quote

Nice work, much better than what I have been doing so far.
And yes this would apply to any GCC toolchain, I guess.
Back to top
View user's profile Send private message
Grover Again



Joined: 06 Jul 2005
Posts: 6

PostPosted: Sun Jul 10, 2005 7:06 am    Post subject: Reply with quote

Hexdump - you can do similar things with VC6. But then again, why use VC6 when .NET toolkit is free :)
http://msdn.microsoft.com/visualc/vctoolkit2003/
BTW I have both installed, and they dont interfere with each other too much.
Back to top
View user's profile Send private message MSN Messenger
Zeta



Joined: 09 Jul 2005
Posts: 9

PostPosted: Mon Jul 11, 2005 2:42 am    Post subject: Reply with quote

So that it worked for me I had to change (KXDIR) by (TARGET) and (KXDUMMY) by (TARGET)%. Where is KXDIR and KXDUMMY supposed to be defined? I looked at the build.mak and it's not there. Am I missing something?
Back to top
View user's profile Send private message
rasmus



Joined: 21 Jul 2004
Posts: 17
Location: Göteborg, Sweden

PostPosted: Mon Jul 11, 2005 3:51 am    Post subject: Reply with quote

Quote:

So that it worked for me I had to change (KXDIR) by (TARGET) and (KXDUMMY) by (TARGET)%. Where is KXDIR and KXDUMMY supposed to be defined? I looked at the build.mak and it's not there. Am I missing something?

No, you're absolutely right. They're defined in my suggested patch to build.mak, like this:

Code:

KXTARGET = $(shell echo $(TARGET)000000 | cut -b1-6)
KXDIR = $(KXTARGET)_________________________1
KXDUMMY = $(KXTARGET)~1%


Sorry about that :)
Back to top
View user's profile Send private message
Zeta



Joined: 09 Jul 2005
Posts: 9

PostPosted: Mon Jul 11, 2005 4:23 am    Post subject: Reply with quote

Oh that is better, that way we won't get the corrupted item. I'll add that to mine, thanks a lot for the whole thread I was hoping I could stay on .NET for psp.
Back to top
View user's profile Send private message
RobbieTheRabbit



Joined: 15 Jul 2005
Posts: 5
Location: France

PostPosted: Fri Jul 15, 2005 7:25 am    Post subject: Reply with quote

Hello,

Sorry for this first question, I'm a noob :X
What's your rule for the kxploit parameter ?
Back to top
View user's profile Send private message
rasmus



Joined: 21 Jul 2004
Posts: 17
Location: Göteborg, Sweden

PostPosted: Fri Jul 15, 2005 7:40 am    Post subject: Reply with quote

This is my kxploit rule (full patch here: http://forums.ps2dev.org/viewtopic.php?t=2474)

Code:

KXTARGET = $(shell echo $(TARGET)000000 | cut -b1-6)
KXDIR = $(KXTARGET)_________________________1
KXDUMMY = $(KXTARGET)~1%
 
kxploit: $(TARGET).elf $(PSP_EBOOT_SFO)
        mkdir -p "$(KXDIR)"
        $(STRIP) $(TARGET).elf -o $(KXDIR)/$(PSP_EBOOT)
        mkdir -p "$(KXDUMMY)"
        $(PACK_PBP) "$(KXDUMMY)/$(PSP_EBOOT)" $(PSP_EBOOT_SFO) $(PSP_EBOOT_ICON)  \
                $(PSP_EBOOT_ICON1) $(PSP_EBOOT_UNKPNG) $(PSP_EBOOT_PIC1)  \
                $(PSP_EBOOT_SND0) NULL $(PSP_EBOOT_PSAR)
 


Make sure that the indentations in the makefile are real tabs and not spaces like they become when pasted here!
Back to top
View user's profile Send private message
RobbieTheRabbit



Joined: 15 Jul 2005
Posts: 5
Location: France

PostPosted: Fri Jul 15, 2005 9:59 am    Post subject: Reply with quote

Thanks for quick reply.

I don't understand but the debug start does not work when I launch it with VS. But if I open a cmd window, it works fine.

From VS I've got this lines :

Code:

/bin/sh : command not found
/bin/sh : command not found
/bin/sh : command not found
/bin/sh : command not found


Something like that.

From a cmd window the psp-strip and other commands are launeched just fine.

Moreover, /cygdrive/c in the makefile does not work, I have to set c:\
I have Cygwin installed.

If you have any advice, you're welcome : )
Back to top
View user's profile Send private message
rasmus



Joined: 21 Jul 2004
Posts: 17
Location: Göteborg, Sweden

PostPosted: Fri Jul 15, 2005 7:35 pm    Post subject: Reply with quote

Make sure that psp-make.bat states the correct path of your cygwin installation, ie begins with

Code:

@c:\cygwin\bin\bash ...


or if cygwin is installed on d:
Code:

@d:\cygwin\bin\bash ...


If that doesn't work, please try to specify your problem in more detail, what happens for example if you run "psp-make.bat make kxploit" from cmd.exe?
Back to top
View user's profile Send private message
RobbieTheRabbit



Joined: 15 Jul 2005
Posts: 5
Location: France

PostPosted: Sat Jul 16, 2005 5:47 am    Post subject: Reply with quote

Hi rasmus,

Well, this evening everything works perfectly ! Thanks to your advices.
The "cygdrive" issue is solved, I guess I had to reboot the computer for the changes to take effect (I had reinstalled cygwin with Unix option instead of DOS).

Great solution for build projects, thanks :D
Back to top
View user's profile Send private message
pspguy190



Joined: 23 Jul 2005
Posts: 11

PostPosted: Sat Jul 23, 2005 7:55 am    Post subject: Reply with quote

Ok so let me get this straight. You mean to say that you just found a way to program using vb.net instead of c/c++. If i am right, then i have a request. I am newbie to all this programing stuff so can you explain step 4-6 for me. What do you mean by "Add the source files to the vb.net project".
Back to top
View user's profile Send private message
webjeff



Joined: 05 May 2005
Posts: 66

PostPosted: Sat Jul 23, 2005 8:53 am    Post subject: Reply with quote

hahaha,

No. He means you can press the Build button in vs.net and have it compile and transfer the pbp file to your psp. It'd be cool if you could write in vb.net or c# on the psp... but you can't... unless... someone can port the CLR, but I dont see that happening ever

JK.
Back to top
View user's profile Send private message
pspguy190



Joined: 23 Jul 2005
Posts: 11

PostPosted: Sat Jul 23, 2005 12:59 pm    Post subject: Reply with quote

I guess i my hopes are too high.

Well can you at lest make buttons with c/c++?
Back to top
View user's profile Send private message
waza



Joined: 18 Jul 2005
Posts: 12

PostPosted: Sat Jul 23, 2005 7:29 pm    Post subject: Reply with quote

Tried to setup this hack in my VS.net, got that :

Performing Makefile project actions
make: psp-config: Command not found
Makefile:17: /lib/build.mak: No such file or directory
make: *** No rule to make target `/lib/build.mak'. Stop.
vsislapsp : error PRJ0002 : error result returned from 'c:\docume~1\admini~1\locals~1\temp\bat000007.bat'.

Anyone can tell me what i did wrong ?

thx by advance

Waza
Back to top
View user's profile Send private message
waza



Joined: 18 Jul 2005
Posts: 12

PostPosted: Sat Jul 23, 2005 7:31 pm    Post subject: Reply with quote

Quote:
This assumes that the psp toolchain is installed and the path to it is in the cygwin profile.


how do i do that plz ? :)

Waza
Back to top
View user's profile Send private message
strider



Joined: 12 Jul 2004
Posts: 10

PostPosted: Sat Aug 06, 2005 12:20 pm    Post subject: Reply with quote

I originally had problems with this solution until the patch updates were posted...THANKS!

While trying to resolve the situation, I figured out a simple VS.NET workaround for those needing a quick compile solution:

In your project directory (or centrally located) create a build.bat with the following contents:

Code:

@set PATH=c:\cygwin\bin;...(copy your normal Path from DOS prompt)
%1 %2 %3 %4 %5 %6 %7 %8 %9


Then in your Project Properties (needs to be a Makefile project) add the following entries under NMake:

    Build Command Line: build make
    Rebuild Command Line: build make rebuild
    Clean Command Line: build make clean
    Output: build.bat


Set the make command lines as appropriate for your make file, the above are the ones that I use.

In the Debugging area I set the following:

    Command: make send


The send option on my makefile makes the necessary folders and copies the files accordingly:

Code:

TARGET = phaserbattle
OBJS = main.o sg_math.o pb_content.o sg_vc.o logo.o
OBJS+= tmp/pb_screen.o tmp/font.o tmp/font_lg.o tmp/controls.o
OBJS+= tmp/planets.o tmp/ships.o

INCDIR =
CFLAGS = -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

PSP_MOUNT = K:
LIBDIR =
LDFLAGS =
LIBS= -lpspgu -lpsppower

BINS= bin/1_0/$(TARGET)/EBOOT.PBP  bin/1_5/$(TARGET)/EBOOT.PBP bin/1_5/$(TARGET)%/EBOOT.PBP

EXTRA_TARGETS=$(BINS)

PSP_EBOOT_TITLE = Phaser Battle

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

bin/1_0/$(TARGET)/EBOOT.PBP: $(TARGET).elf $(PSP_EBOOT_SFO)
   mkdir -p bin/1_0/$(TARGET); pack-pbp bin/1_0/$(TARGET)/EBOOT.PBP PARAM.SFO img/pb_logo.png NULL NULL NULL NULL  $(TARGET).elf NULL

bin/1_5/$(TARGET)%/EBOOT.PBP: $(PSP_EBOOT_SFO)
   mkdir -p bin/1_5/$(TARGET)%; pack-pbp bin/1_5/$(TARGET)%/EBOOT.PBP PARAM.SFO img/pb_logo.png NULL NULL NULL NULL NULL NULL

bin/1_5/$(TARGET)/EBOOT.PBP: $(TARGET).elf
   mkdir -p bin/1_5/$(TARGET); cp $(TARGET).elf bin/1_5/$(TARGET)/EBOOT.PBP

tmp/%.16: img/%.4444.png
   tools/pngtxr img/$*.4444.png tmp/$*.16 4444

tmp/%.16: img/%.565.png
   tools/pngtxr img/$*.565.png tmp/$*.16 5650
   
tmp/%.ct: tmp/%.16
   bin2c tmp/$*.16 tmp/$*.ct _$*

tmp/%.c: tmp/%.ct
   sed tmp/$*.ct -e "s/static//g" > tmp/$*.c

logo.o: logo.raw
   bin2o -i logo.raw logo.o logo

rebuild: clean $(BINS)

send: $(BINS)
   mkdir -p $(PSP_MOUNT)/PSP/GAME/$(TARGET)%; cp bin/1_5/$(TARGET)%/EBOOT.PBP $(PSP_MOUNT)/PSP/GAME/$(TARGET)%/EBOOT.PBP; \
   mkdir -p $(PSP_MOUNT)/PSP/GAME/$(TARGET); cp $(TARGET).elf $(PSP_MOUNT)/PSP/GAME/$(TARGET)/EBOOT.PBP


Hopefully someone will find this useful if they are in a hurry. Its main limitation is that I do not yet translate the GCC output so that Visual Studio can recognize the files and line numbers, but other then that it worked good for a quick solution.

Strider
Back to top
View user's profile Send private message
Warren



Joined: 24 Jan 2004
Posts: 173
Location: San Diego, CA

PostPosted: Mon Aug 08, 2005 2:42 pm    Post subject: Reply with quote

I came up with a better solution tonight that doesn't require you to add anything to visual studio or change your makefiles. Just make the following scripts to your c:\cygwin directory and modify paths as needed:

vs-pspdev.bat
Code:
@c:\cygwin\bin\bash -c 'export VS_PATH=`pwd`; /bin/bash --login -c "/vs-pspdev.sh %1 %2 %3 %4 %5"'


vs-pspdev.sh
Code:
#!/bin/bash
export PSP_MOUNT=/cygdrive/i
export PATH=$PATH:/cygdrive/p/pspdev/bin
cd "$VS_PATH"
make 2>&1 $@ | sed -e 's/\([^:]*\):\([0-9][0-9]*\)\(.*\)/\1 (\2) \3/'


Then in VS, make a new makefile project and specify "c:\cygwin\vs-pspdev.bat "as make command, "c:\cygwin\vs-pspdev.bat clean" as clean command and "c:\cygwin\vs-pspdev.bat clean all" as rebuild and voila, you're rocking in VS.net with minimal fuss.
Back to top
View user's profile Send private message
DarknessFX



Joined: 01 Sep 2005
Posts: 2
Location: Brazil

PostPosted: Tue Sep 06, 2005 12:22 am    Post subject: Reply with quote

Thanks for this VS.NET ideas and solutions, Im using the Warren solution and it working perfect.

I did some small changes on my VS.NET (2002) to include a "PSP C Study" Wizard at VC++ Projects that create a project with a basic main.c (Hello World), a default Makefile (for PSPSDK) and a empty Readme.txt.

Also it create the project with the build/rebuild/clean commands already set and I made some changes on vs-pspdev.sh to compile the project to Windows (cl.exe), GCC and PSPSDK:
wrote:

export PSP_MOUNT=/cygdrive/p
export PATH=/usr/local/pspdev/bin:"/cygdrive/c/Program Files/Microsoft Visual Studio .NET/Common7/IDE":$PATH
cd "$VS_PATH"

echo ------ VS.NET ------
"/cygdrive/c/Program Files/Microsoft Visual Studio .NET/Vc7/bin/cl.exe" main.c /Fedebug/main_win.exe /Wall /Od /GB /Zi /ZI /nologo /D WIN32 /D _DEBUG /D _CONSOLE /D _MBCS /D FRAMEWORK_DLL /D FRAMEWORK_EXPORTS
mv -f vc70.idb debug
mv -f vc70.pdb debug
mv -f main.obj debug

echo ------ GCC ------
/bin/gcc.exe -o debug/main_cyg.exe main.c -ansi -mconsole

echo ------ PSPSDK Makefile ------
make $@ | sed -e 's/\([^:]*\):\([0-9][0-9]*\)\(.*\)/\1 (\2) \3/'
mv -f eboot.pbp debug
mv -f CStudy1-1.elf debug
mv -f main.o debug
mv -f PARAM.SFO debug
echo ------------


I dont know if this Wizard would be useful for anyone else (or belongs to the IHOS), right now all the folder paths are "hard-coded", there is some small changes needed on vcwizards\1033\common.js and a few wizard files.

If it is useful, would be better to write the changes here or build a small "setup" script?
Back to top
View user's profile Send private message
ZMaster



Joined: 02 Sep 2005
Posts: 29

PostPosted: Fri Sep 30, 2005 6:26 am    Post subject: Reply with quote

I just noted this thread and remembered that I wrote a small tool, which converts a .NET .vcproj file into a Makefile.
I wrote this for my Sega Dreamcast development projects and it works quite good! I thought it might also be of great help here, because you can call my tool before every compile (do this from the .bat file, for example) and you'll always have the correct source files included in the Makefile.
The tool reads a Makefile template from the file Makefile.tmpl which is also included in the ZIP. You need to modify this to use the correct PSP toolchain calls. The source files are then read from the .vcproj XML file and put into the Makefile template which then results into the final Makefile.
The only thing you still have to change in the Makfile.tmpl individually for every project is the names of the linked libraries, but that shouldn't be a problem :-)

Here's the package: http://toy-boy-music.goracer.de/temp/VSMakefile.zip (58 KB)
Back to top
View user's profile Send private message
ZMaster



Joined: 02 Sep 2005
Posts: 29

PostPosted: Fri Oct 07, 2005 12:15 am    Post subject: Reply with quote

Here's something that might be helpful for everyone, who is new to PSP development. I build a project wizard for MSVS:

MSVC PSP Wizard (150 KB)

Anyway, you need a running cygwin and toolchain installation. The Wizard is set up to build using the kxploit rule and needs rasmus's patch to build.mak to avoid the corrupt item.
I successfully tested it with Visual Studio .NET 2003 and a 1.5 firmware PSP. The wizard uses the automatic Makefile creation tool I described above.

Have fun...
Back to top
View user's profile Send private message
Tim



Joined: 12 Jul 2005
Posts: 38

PostPosted: Fri Oct 07, 2005 4:57 am    Post subject: Reply with quote

Very nice, that simplifies alot of things. I'll be d/ling that to check it out.

~Tim
Back to top
View user's profile Send private message
terryxq



Joined: 12 Oct 2005
Posts: 16

PostPosted: Sun Oct 16, 2005 9:57 pm    Post subject: Re: How to compile, link and transfer PSP programs from VS.N Reply with quote

I think this make.bat is better.

Code:
if NOT EXIST Makefile @VSMakefile.exe -a
@[!output CYGWIN_FOLDER]\bin\bash -c 'export PROJECTDIR=`pwd`;export PATH=/usr/local/pspdev/bin:$PATH;/bin/bash --login -c "cd \"$PROJECTDIR\";%1 %2 %3 %4"'


It won't rewrite the Makefile again if you change Makefile after built project once.
Back to top
View user's profile Send private message
ZMaster



Joined: 02 Sep 2005
Posts: 29

PostPosted: Sun Oct 16, 2005 10:16 pm    Post subject: Re: How to compile, link and transfer PSP programs from VS.N Reply with quote

terryxq wrote:

It won't rewrite the Makefile again if you change Makefile after built project once.


That is true, but it won't help you much if you create a new source file in your MSVC project, because you would then have to add it to the Makefile by yourself. The purpose of the whole thing is that you don't have to do that anymore :-)

If you want to make changes to your Makefile, edit the Makefile.tmpl, which is a template that is used by VSMakefile.exe. It is added to your project files if you use the wizard, so you can easily edit it from within MSVC...
Back to top
View user's profile Send private message
terryxq



Joined: 12 Oct 2005
Posts: 16

PostPosted: Sun Oct 16, 2005 11:06 pm    Post subject: Re: How to compile, link and transfer PSP programs from VS.N Reply with quote

ZMaster wrote:
terryxq wrote:

It won't rewrite the Makefile again if you change Makefile after built project once.


That is true, but it won't help you much if you create a new source file in your MSVC project, because you would then have to add it to the Makefile by yourself. The purpose of the whole thing is that you don't have to do that anymore :-)

If you want to make changes to your Makefile, edit the Makefile.tmpl, which is a template that is used by VSMakefile.exe. It is added to your project files if you use the wizard, so you can easily edit it from within MSVC...


:P ~
I always remove Makefile.tmpl from my project then add Makefile.
:D you are right, my advice may only be better for myself.
Back to top
View user's profile Send private message
Zack



Joined: 04 Nov 2005
Posts: 1

PostPosted: Fri Nov 04, 2005 1:14 am    Post subject: Reply with quote

Last Edit : Ok I've found the problem. Have to do a ./toolchain.sh -p

I'll post the 2005 beta 2 wizard version later.


Well done but this Wizard doesn't work correctly with VS 2005 beta 2.

I've commented the KXploit lines since KXploit doesn't work for me ( SeiPSPTool does actually) and removed it in build/rebuild.

I've tested changing the PSPSDK variable directly in Makefile.tmpl :

Code:
PSPSDK         = c:/cygwin/usr/local/pspdev/psp/sdk # $(shell psp-config --pspsdk-path)


since the variable couldn't be defined, it did not find the lib/build.mak.

Now, i've got those errors :

Build :

g++ -G0 -Wall -fno-exceptions -fno-rtti -c main.cpp -o main.o
make: *** Recursive variable `PSPSDK' references itself (eventually). Stop.
Project : error PRJ0002 : Error result 2 returned from 'C:\WINDOWS\system32\cmd.exe'.


Rebuild :

make: *** No rule to make target `clean'. Stop.
Project : error PRJ0002 : Error result 2 returned from 'C:\WINDOWS\system32\cmd.exe'.


Clean :

make: *** No rule to make target `clean'. Stop.
Project : error PRJ0002 : Error result 2 returned from 'C:\WINDOWS\system32\cmd.exe'.



Here's the makefile created :

Code:
#------------------- Makefile for 'PSPHW' -------------------#
# This Makefile has been generated by VSMakefile
# Copyright (C) 2005 Florian Zitzelsberger


TARGET         = Binary
OBJS         = main.o

INCDIR         =
LIBDIR         =
LDFLAGS         =
LIBS         = -lstdc++ -lm      
CFLAGS         = -G0 -Wall
CXXFLAGS      = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS         = $(CFLAGS)

EXTRA_TARGETS   = EBOOT.PBP
PSP_EBOOT_TITLE   = PSPHW   
PSPSDK         = c:/cygwin/usr/local/pspdev/psp/sdk
include $(PSPSDK)/lib/build.mak






main.o: main.cpp
   $(CXX) $(CXXFLAGS) -c main.cpp -o main.o


Any idea ?

Edit :


PSPSDK=$(shell psp-config --pspsdk-path)

Ok, I see, the problem is that there's no more psp-config.exe on that version, no ?
Back to top
View user's profile Send private message
barbapapaz



Joined: 28 Nov 2005
Posts: 2

PostPosted: Mon Nov 28, 2005 8:12 am    Post subject: Reply with quote

ZMaster wrote:
Here's something that might be helpful for everyone, who is new to PSP development. I build a project wizard for MSVS:

MSVC PSP Wizard (150 KB)

Anyway, you need a running cygwin and toolchain installation. The Wizard is set up to build using the kxploit rule and needs rasmus's patch to build.mak to avoid the corrupt item.
I successfully tested it with Visual Studio .NET 2003 and a 1.5 firmware PSP. The wizard uses the automatic Makefile creation tool I described above.

Have fun...


i don't understand i ha ve this error
makefile:1: *** missing separator. stop

i have cygwin and psptollchain please help
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 -> PSP Development All times are GMT + 10 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
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