![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
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 *** |
|
|
|
|
|
#4 |
![]() |
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 |
|
|
|
|
|
#5 | |
![]() |
Quote:
|
|
|
|
|
|
|
#6 |
![]() ![]() total-Z
|
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: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#7 | ||
![]() |
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.
Quote:
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++. Quote:
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.. |
||
|
|
|
|
|
#8 |
![]() ![]() total-Z
|
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: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#9 |
![]() ![]() ...in a dream...
|
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...
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#10 |
![]() |
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. |
|
|
|
|
|
#11 | |
![]() ![]() total-Z
|
Quote:
Before we had small computers, there was HUGE computers..... Lots of vacuum electron tubes.... and um... switches.
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
|
#12 |
![]() ![]() total-Z
|
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 successful
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth Last edited by youresam; 02-19-2006 at 01:21 PM.. |
|
|
|
|
|
#13 | |
![]() |
Quote:
|
|
|
|
|
|
|
#14 |
![]() ![]() total-Z
|
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: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#19 |
![]() |
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.
__________________
[img]http://img137.imageshack.us/img137/9792/1qj7.png[/img] [SIZE="1"][B]|Main Rig|[/B] 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 [B]|Cooling|[/B] D-Tek FuZion [Quad - Nozzle] [B]|[/B] MCW60 [B]|[/B] MCR320 [B]|[/B] EKRes150 [B]|[/B] DDC-1T /w AlphaCool Top[/SIZE] |
|
|
|
|
|
#21 |
![]() |
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!¢$ ...
|
|
|
|
|
|
#23 |
![]() |
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.
__________________
[img]http://img137.imageshack.us/img137/9792/1qj7.png[/img] [SIZE="1"][B]|Main Rig|[/B] 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 [B]|Cooling|[/B] D-Tek FuZion [Quad - Nozzle] [B]|[/B] MCW60 [B]|[/B] MCR320 [B]|[/B] EKRes150 [B]|[/B] DDC-1T /w AlphaCool Top[/SIZE] |
|
|
|
|
|
#24 |
![]() ![]() Rock Star
|
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....
__________________
![]() |
|
|
|
|
|
#25 | |
|
Quote:
|
||
|
|
|
|
|
#28 | |
![]() ![]() total-Z
|
Quote:
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
|
#29 |
|
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. |
|
|
|
|
|
|
#30 |
![]() |
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: Code:
line: 12 -- file: C:\cygwin\makefile -- message: /usr/local/pspdev/psp/sdk/lib/build.mak: No such file or directory. 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 01:15 PM.. |
|
|
|
![]() |
| Tags |
| cygwin , devc , tutorial , w or , working |
| Thread Tools | |
|
|