Dev-C++ w/ Working Cygwin Tutorial %
This is a discussion on Dev-C++ w/ Working Cygwin Tutorial % within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Setting up Dev-C++ with Cygwin + toolchain + pspsdk It's what I did and It worked for me. If it ...
-
02-11-2006, 04:04 AM #1QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Dev-C++ w/ Working Cygwin Tutorial %
Setting up Dev-C++ with Cygwin + toolchain + pspsdk
It's what I did and It worked for me. If it doesn't work for you, then together we will figure it out... I hope!
Also this post is kinda old so any Questions; Thoughts; or Opinions.
Should be adressed to me via Personal Message
Thank's for reading
Tutorial + Pictures : PSP Friendly
All instructions are in Bold
I am assuming you have already gone through the great C/C++ tutorials at psp-programming.com that our
very own Yeldarb did. You can find some great tutorials done by other users there also. You must have at least completed lesson 2. GOOD!
<File Name>--------------------<File Sizes>
cygwin_online setup.exe 2.510.2.2 :: 298 kb
psptoolchain-20060120.tgz :: 252 kb
pspsdk-1.0+beta2.tar.gz :: 735 kb
dev-c++[executableonly]4.9.9.2 :: 2.35 mb
dev-c++[w/mingCompiler]4.9.9.2 :: 8.89 mb
<basics>
So what you have installed is probably:
A: Cygwin-setup.exe 2.510.2.2
*** http://www.cygwin.com/
Install Consists of:
+ 'Default Installation'
+ Install all of 'Devel'
+ Install 'wget' from 'Web'
(WOW, That took awhile!)
B: psptoolchain-20060120.tgz 'What I have at the moment.
*** psptoolchain-20060120.tgz
*** There are newer releases as did Yeldarb's tutorial stated ***
edit: psptoolchain-20060120.tgz as of Jan-20-2006
C: pspsdk-1.0+beta2.tar.gz
*** pspsdk-1.0+beta2.tar.gz
D: cygwin.bat 'Has been setup: find it under c:/cygwin/cygwin.bat
<before>
@echo off
C:
chdir C:\cygwin\bin
bash --login -i
<after>
@echo off
C:
chdir C:\cygwin\bin
set path=%path%;C:/cygwin/usr/local/pspdev/bin
set PSPSDK=C:/cygwin/usr/local/pspdev
bash --login -i
Now what you need of course is a better environment then plain old notepad right?
Well for this tutorial I'll be useing,
1: Dev-C++ 5.0 beta 9.2 (4.9.9.2), executable only (2.4 MB) Or do what you want.
*** http://www.bloodshed.net/devcpp.html
I went with this one to install even though I have both "]
because I already have cygwin and my pspsdk's installed plus compiling fine. (Console; Command Line)
*** Hell all I want is a PSP Development Environment. Now go, go and
*** get it, install it, come back and start reading from here.
<----------------------------------------------------------
Ok Dev-C++ is installed now what? Well open her up and after
the splash screen close the Tip of the day window.
Navigate' Menu Bar- Tools- Compiler Options- 'Under' Compiler set to configure-
this is where you can make a whole new compiler set. Im pretty sure so you can do
cross compiling or just plain old have a way of picking different Libraries, Include
folders, ect.. ect..


Now what I show you all next is exaclly how I did it. Wasn't much to it really but doing what you did to the cygwin.bat 'batch' file.
Pointing Dev-C++ to cygwin.
1: Tab over to Directories'
Start in Binaries-
click the Browse button-
Its the folder looking button "Right Directly Above" Delete Invalid-
Navigate to' "c:/cygwin/usr/local/pspdev/bin"
click OK-
click Add-
*:AGAIN:*
click the Browse button-
Navigate to' "c:/cygwin/bin"
click OK-
click Add-

2: Next Tab over Libraries-
click the Browse button-
Navigate to' "c:/cygwin/usr/local/pspdev/lib"
click OK-
click Add-
*:AGAIN:*
click the Browse button-
Navigate to' "c:/cygwin/lib"
click OK-
click Add-

*** I know your seeing a pattern here... aren't you? ***
3: Next Tab over C Includes-
click the Browse button-
Navigate to' "c:/cygwin/usr/local/pspdev/psp/sdk/include"
click OK-
click Add-
*:AGAIN:*
click the Browse button-
Navigate to' "c:/cygwin/usr/include"
click OK-
click Add-
click OK-

*** C++ SETUP GOES HERE ***
For right now, if you have all files where they were in this tutorial. Then you should just
Navigate to' "C++ tab to c:/cygwin/usr/local/pspdev/includes"
If you look in there you'll see a folder called "C++" the thing Im going to find out is, do I go into C++ folder within dev c++ or just the include. ...Im tired!
************************* ************************* ********
Ok some people asked me about setting up C++. Well I haven't had the time to test this out but, if someone who has done this with the same kind of setup here. Please tell me if it works then... right on! I'll try and get this done very soon, most likely tomorrow since it's 4:00 am here. I came back to revise because i got a PM about this. Plus I was thinking of making this better looking and adding pictures anyways!
*** I didn't even mess around with the programs side.
It seems that when you go to compile Dev C++ will generate its own makefile called "makefile.win" It must be hardcoded in Dev C++ because I can't find anywhere to change it. It does however have a option to use a custom makefile. So after you setup your new project make sure to go under Menu Bar- Project- Project Options- Tab over to Makefile- and select your makefile or the makefile that came with the sources.
-Tips N Tricks- (If you type out your make file inside Dev C++ when you go to save it make sure you choose Save as type: *.* and when you name it just put a period after and it will not give it a extention. example: "makefile." cool huh! If you know about make files then you know they can need some tweaking every now and then, unless you made it. Then you should know whats going on! But if you don't setup your make file within the project manager then you will get compile errors.
So i hope this helps someone and if something isn't right then I am sorry, tell me about it and I'll try and find a answer to fix it. I just noticed
that I couldn't find anything; but one broken link about this. Did it myself like usual; damn lets write it up. This tutorial was born!
Have fun, don't hurt nobody!
Last edited by HYde; 01-10-2008 at 05:22 PM. Reason: *** Update ***
-
02-11-2006, 04:06 AM #2
Nice, now I might actually start to do something :P
Can you give us an estimated installation time (for everything) to get it up an running and how much space is required on the harddrive?Do you know who I am?
-
02-11-2006, 04:21 AM #3QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Re:
I'll get to work on that while I'm doing some other stuff... gotta goto work soon.. sleep hahahah..lol
It's over rated
:Punk:
-
02-11-2006, 06:26 PM #4QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Working on '']
:Punk: Just so he's ^ not alone.
I'm gonna get some images up I wanted to do but that 9 to 5++ got in the way. Hate that! So any comments? I gotta be honest I was a little scared to do this. I always think about doing stuff for what I feel I'm apart of.....My community (communities) but always seem to believe I need this..... BFG model number 1134badass!
Well I end up doing nothing here or there. Keeping what I learn to my self. No more I say.. .
Help me help you .. .
O yeah I came to say HI! and introduce myself at the begging of my tutorial, but forgot.....
lol
-
02-12-2006, 02:04 AM #5QJ Gamer Silver
- Join Date
- Oct 2005
- Location
- Sheffield, UK
- Posts
- 844
- QJ Pts
- 8,201
- Level
- 61
- Downloads
- 0
- Uploads
- 0
well on my pc cygwin took about 2 hours and the pspsdk took 4 and setting it up all up with dev c++ took about 5 mins. but it all depends on the speed of ur pc really, cygwin and pspsdk take up 1.08gb on my hdd.
Originally Posted by FrozenIpaq
-
02-12-2006, 07:23 AM #6
Hmm..... when I try to compile, it tries to make an .exe, anyway to make it...not...do...that?
Ok, I just told it a static lib.. (and not a win32 dos thing as default) and it kinda compiled, an .a file.
I don't think Cygwin and DEV-C++ can work together because of the linux-only commands in cygwin. AND, most of use have 1.50, meaning 'make kxploit', which you cant type in....
Anyone got this to work?牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-13-2006, 08:59 AM #7QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Well youresam. The thing that I did after setting up cygwin in dev c++ was start a new project, then after filling the project with my source files. I went to Project Menu under Project Options. I then tabbed over to Makefile and checked Use custom Makefile. Show it where to find the makefile and It compiled for me.
You may want to look at the Build Options tab left of Makefile tab. I was wondering if Override output filename on the very bottom. Might be what your looking for. If someone knows about this or a better understanding of the Dev-C++ environment please let us know.youresam said > Hmm..... when I try to compile, it tries to make an .exe, anyway to make it...not...do...that?
Youresam I never got a .exe(cutable) when I did the compile. It gave me a eboot.pbp. Weird Im still playing around with dev-c++.If this is true... ...that would suck. But at the time I cant say I remember seeing or reading about this. The main reason I did this tutorial was to build from it + The only place I think at ps2-dev was a tutorial stateing the same kind of tutorial..... bad link tho. So when I started to play with dev c++ and cygwin I installed the executable only environment of dev-c++.youre sam said > I don't think Cygwin and DEV-C++ can work together because of the linux-only commands in cygwin. AND, most of use have 1.50, meaning 'make kxploit', which you cant type in....
Basically it has no compiler because Im useing cygwin . I wonder if maybe thats whats makeing it confused. IDK Really Im very new and I actually want to go under the hood of setting up an Development Environment with cross compiling capabilities and just useing different compilers such as cygwin. Man Im just rambleing on and on. Get back to me on what you think?Last edited by HYde; 02-24-2006 at 04:41 PM.
-
02-15-2006, 04:28 PM #8
Well, the windows version of the SDK can compile eboots, and ruins in command prompt, but is not updated very often at all. You might have more luck with that.
So, you can compile a PBP? Does it work?牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-15-2006, 08:07 PM #9words are stones in my <3

- Join Date
- Jul 2005
- Location
- Spokane
- Posts
- 5,008
- QJ Pts
- 35,274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
This would be very usefull, but I just use Dev-C++ to code in, not compliue, but I have to admit. The auto-indenting and bolding of important calls and words is pretty cool. I also learn new words that are important using it. For instance, I was making an integer and named it ' int auto = 0;', then 'auto' was auto, I do not know what auto is or what it does, but it highlighted so it must be important?
Now that I think about it, it's kind of ironic that you have to code a program to make a coding program (?).
OFF TOPIC: How was the first computer coded then? How was the first OS coded then? Cause you need an OS make an OS? Is it like the chicken or egg thing? My brain hurts...
...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
02-15-2006, 10:41 PM #10QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
I fixed step 3: Wrong file path sorry.
yoursam yes I have compiled a pbp file. I was doing Yeldarb's tutorial 2
The thing of it is, is that you have to go into your project options and use a custom makefile. If you try Yeldarb's tutorial 2. He shows you the makefile to be used.
-
02-19-2006, 12:58 PM #11
I think it had something to do with....um.... all that old stuff.
Originally Posted by SG57
Before we had small computers, there was HUGE computers.....
Lots of vacuum electron tubes.... and um... switches.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-19-2006, 01:13 PM #12
SWEET!!!
Compiler: PSP SDK
Executing make...
make.exe -f "Makefile" all
psp-strip mp3.elf -o mp3_strip.elf
pack-pbp EBOOT.PBP PARAM.SFO NULL \
NULL NULL NULL \
NULL mp3_strip.elf NULL
rm -f mp3_strip.elf
Execution terminated
Compilation successfulLast edited by youresam; 02-19-2006 at 01:21 PM.
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-19-2006, 07:03 PM #13QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
sweet as candy
Hell yeah what was the program, if you don't mind me asking? Did you run into any problems before that tho?
Originally Posted by youresam
-
02-20-2006, 01:38 PM #14
Well, the first time I tried it, I had put the project .dev file in the parent folder of the actual .c and .h files. So that caused weird errors... but after I saved a new project IN the same folder as the Makefile and all the source files, it compiled.
The only complaint is that I cant get it to 'make kxploit'. I went to project options and added 'kxploit' to a list of compile parameters, but no luck. I also went to the Compiler Options and put it in, but no luck there either.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
02-20-2006, 10:52 PM #15
[CODE=code] *** No rule to make target `main.o', needed by `hello.elf'. Stop :mad: . .[/CODE]
great job on ur tutorial but now when i try to compile i get that error, anyone kno wat that meanz?
-
02-20-2006, 11:02 PM #16QJ Gamer Green
- Join Date
- Jan 2006
- Posts
- 4,289
- QJ Pts
- 25,223
- Level
- 95
- Downloads
- 0
- Uploads
- 0
Try naming all of your files the same thing. ie 'Hello.w/e' or 'main.w/e'
-
02-20-2006, 11:07 PM #17
wow thanx i finally got it :Jump: :Jump:
-
02-27-2006, 06:52 PM #18Rock Star

- Join Date
- Aug 2005
- Location
- CT| FW: 4.01 M33-2
- Posts
- 11,844
- QJ Pts
- 70,899
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Im going to have to try this out tomorrow. Hope I can get it to work.

-
02-27-2006, 10:27 PM #19QJ Gamer Gold
- Join Date
- Oct 2005
- Location
- Where am I? Firmware
- Posts
- 3,505
- QJ Pts
- 14,280
- Level
- 77
- Downloads
- 0
- Uploads
- 0
I just got CYGWIN installed and it took me around 3:30 - 4 hours for it to finish on my Pentium M 1.60GHz. Finally finished Lesson01 of Yeldarb's tutorial.
It's getting late now and I have a midterm early in the morning tomorrow so I shall continue on with the tutorial tomorrow.http://img137.imageshack.us/img137/9792/1qj7.png
|Main Rig|
Asus P5K Deluxe [0404]
Q6600 L738A999 G0 SLACR @ 3.6Ghz [400x9]
2x1GB Firestix DDR2-1000
ATI HD2900XT [MCW60]
Seagate 7200.11 500 GB / 7200.10 320GB
Creative X-FI Platinum
Antec P182
|Cooling|
D-Tek FuZion [Quad - Nozzle] | MCW60 | MCR320 | EKRes150 | DDC-1T /w AlphaCool Top
-
02-28-2006, 02:20 AM #20QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
Tell me how it goes
Originally Posted by TeamOverload
NEvolution: keep with it.
-
02-28-2006, 02:41 AM #21QJ Gamer Blue
- Join Date
- Jan 2006
- Location
- CO
- Posts
- 150
- QJ Pts
- 8,686
- Level
- 62
- My Mood
-
- Downloads
- 0
- Uploads
- 0
FightNight round 3
So FightNight round 3 finally got stocked up @ wtfMart (UYtm) & truefully fnr3 mobile ... ROCKS! one of reasons I have a psp. This community brought me back 2 the unvoidable land of code. Thank you and keep up the great work!
Firm (&a) ware 2.6
were finally here!
F!¢$ ... :Punk:
-
03-01-2006, 08:39 AM #22
- Join Date
- Dec 2005
- Posts
- 32
- QJ Pts
- 4,439
- Level
- 42
- Downloads
- 0
- Uploads
- 0
How do I use the cygwin-function "make kxploit" when I'm compiling my code with Dev-C++?
-
03-01-2006, 07:49 PM #23QJ Gamer Gold
- Join Date
- Oct 2005
- Location
- Where am I? Firmware
- Posts
- 3,505
- QJ Pts
- 14,280
- Level
- 77
- Downloads
- 0
- Uploads
- 0
You have to cd to your folder in CYGWIN and make sure you have main.c and Makefile in that directory.
Then you can use "make kxploit" and it should work.http://img137.imageshack.us/img137/9792/1qj7.png
|Main Rig|
Asus P5K Deluxe [0404]
Q6600 L738A999 G0 SLACR @ 3.6Ghz [400x9]
2x1GB Firestix DDR2-1000
ATI HD2900XT [MCW60]
Seagate 7200.11 500 GB / 7200.10 320GB
Creative X-FI Platinum
Antec P182
|Cooling|
D-Tek FuZion [Quad - Nozzle] | MCW60 | MCR320 | EKRes150 | DDC-1T /w AlphaCool Top
-
03-02-2006, 11:54 AM #24Rock Star

- Join Date
- Aug 2005
- Location
- CT| FW: 4.01 M33-2
- Posts
- 11,844
- QJ Pts
- 70,899
- Level
- 100
- Downloads
- 0
- Uploads
- 0
I tried to set this up, but i got an error trying to set up the toolchain, that just says
"An error has occured. Read the readme.psp for more information." I read that, but it is no help....

-
03-02-2006, 12:37 PM #25
- Join Date
- Dec 2005
- Posts
- 32
- QJ Pts
- 4,439
- Level
- 42
- Downloads
- 0
- Uploads
- 0
Yes, I know how to do that, but how do I compile it with Dev-C++ so that I have Kxploit-ready EBOOTs? I mean, when I press "Execute -> Compile" from Dev-C++, it only makes one EBOOT, and I'd like to have then Kxploit ready, so that I wouldn't need to use cygwin myself at all?
Originally Posted by NEvolution
-
03-04-2006, 07:00 AM #26No longer a community member.
- Join Date
- Jul 2005
- Location
- Massachusetts
- Posts
- 192
- QJ Pts
- 5,691
- Level
- 48
- Downloads
- 0
- Uploads
- 0
How do i setup the C++ Tab?? you stopped at C
-
03-13-2006, 01:12 PM #27Rock Star

- Join Date
- Aug 2005
- Location
- CT| FW: 4.01 M33-2
- Posts
- 11,844
- QJ Pts
- 70,899
- Level
- 100
- Downloads
- 0
- Uploads
- 0
Trying the toolchain again, but now i got this error:
/bin/sh: psp-gcc: command not found

-
03-18-2006, 06:46 PM #28
Your missing a package from the cygwin setup.
Originally Posted by TeamOverload
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
03-24-2006, 05:53 AM #29
- Join Date
- Jun 2005
- Posts
- 1
- QJ Pts
- 4,618
- Level
- 43
- Downloads
- 0
- Uploads
- 0
Are you still having this problem?
I had the same one and it really frustrated me.
What i had done wrong was during the installation of the toolchain i thought it had finished after the first progress bar had completed and didn't seem to be doing anything else. boy was i wrong, its not finished untill your green user name shows up again.
if this is not the case then maybe you need to add this to your ‘c:\cygwin\home\<username >\.bashrc’ file.
## PSPDEV PATH SETTINGS
export PATH="/usr/local/pspdev/bin:$PATH"
Just stick it in the end there, you should be good to go.
-
04-03-2006, 12:12 PM #30QJ Gamer Blue
- Join Date
- Apr 2006
- Location
- Northampton, England
- Posts
- 59
- QJ Pts
- 4,272
- Level
- 41
- Downloads
- 0
- Uploads
- 0
I have got cygwin set up with psptoolchain, but I saw this and thought, ooh, cool.
I have followed everything completely but I get this error:
andCode:line: 12 -- file: C:\cygwin\makefile -- message: /usr/local/pspdev/psp/sdk/lib/build.mak: No such file or directory.
any help would be highly appreciated -- and yes, build.mak is in the directory, I checked.Code:file: C:\cygwin\makefile -- message: [Build Error] No rule to make target `/usr/local/pspdev/psp/sdk/lib/build.mak'. Stop.
EDIT: I got it working, I forgot to delete the original directories.Last edited by code-zero; 04-03-2006 at 12:15 PM.


LinkBack URL
About LinkBacks
Reply With Quote

Unfortunately, these cheaters are ruining many games.
Damn Cheaters Ruining A Game