PSP3D Left Header
PSP3D Header Right
PSP3D Logo CraveOnline Logo
Help the PSP 3D community grow!
Vote for us below:


Vote on the PSP Top 200
PSP Top 200 - Games, Videos, Wallpapers, Files, Hacks, Homebrew

Homebrew/Hacking - Discuss the latest available homebrew applications and games.

Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!

You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.

Registration is fast, simple, and absolutely free so join our community today!

Go Back PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums > PSP Forums > Homebrew/Hacking

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-16-2006, 02:34 AM
skais's Avatar
skais skais is offline
Senior Member
 
Join Date: Jan 2006
Posts: 150
Points: 0.95
Donate
cygwin make problem

I am using cygwin to make a hello world EBOOT adn i have my main.c file and my Makefile, but when I open up the helloworld folder and type make into cygwin it says "make: *** No targets specified and no makefile found. Stop."

does anyone know what i did? here is the code:

main.c:
Code:
// Hello World - My First App for the PSP /* It a simple "Hello World" Application. */ #include #include PSP_MODULE_INFO("HELLOWORLD",0,1,1); #define printf pspDebugScreenPrintf /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; int myFunction() { //Print Out 'A' return 0; } int main() { //Print Out 'B' myFunction(); //Print Out 'C' return 0; } int main() { pspDebugScreenInit(); SetupCallbacks() printf("Hello World"); sceKernelSleepThread(); return 0; }
and the Makefile:
Code:
TARGET = hello OBJS = main.o CFLAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Hello World PSPSDK=$(shell psp-config --pspsdk-path) include $(PSPSDK)/lib/build.mak
does anyone know whats wrong?

Last edited by skais : 05-16-2006 at 08:01 PM.
Reply With Quote
  #2 (permalink)  
Old 05-16-2006, 03:27 AM
kalus's Avatar
kalus kalus is offline
Member
 
Join Date: Jan 2006
Posts: 91
Points: 6.22
Donate
well for one you have 2 'main' functions which would cause an error during compile, but think it should still get further than that.
Reply With Quote
  #3 (permalink)  
Old 05-16-2006, 06:02 AM
Percival's Avatar
Percival Percival is offline
Moderator
My Mood:
 
Join Date: Dec 2005
Location: Earth
Age: 26
Posts: 336
Points: 40.98
Donate
Maybe a stupid question... but did you install the psp toolchain already?
And kalus is right, two main functions will cause a problem.
__________________
Look below for my signature.
Look above for my signature.
Reply With Quote
  #4 (permalink)  
Old 05-16-2006, 06:55 AM
$lurpie's Avatar
$lurpie $lurpie is offline
Junior Member
 
Join Date: May 2006
Location: Australia On The Gold Coast
Age: 17
Posts: 19
Points: 2.52
Donate
I Know That Happend To Me But I Figed it out i am in the middle of makeing
my own game
__________________
PSP History 1.51>>2.01>2.50>2.60-1.50>2.80>1.50>3.01 then got rid of it>2.50>2.80-1.50>3.03oe c>3.10oe a-3.03oe c
WOOT WOOT
Reply With Quote
  #5 (permalink)  
Old 05-16-2006, 07:59 PM
skais's Avatar
skais skais is offline
Senior Member
 
Join Date: Jan 2006
Posts: 150
Points: 0.95
Donate
Quote:
Originally Posted by Percival
Maybe a stupid question... but did you install the psp toolchain already?
And kalus is right, two main functions will cause a problem.

yeah, i installed an older one not a newer one. but i cant change the make functions cause my bro has the comuter and would get mad if i logged off his account. Ill tell you guys if it helps(the main function) and i unzipped a couple of files in the C:/ Cygwin folder
Reply With Quote
  #6 (permalink)  
Old 05-16-2006, 08:56 PM
sharko's Avatar
sharko sharko is offline
Senior Member
 
Join Date: Jan 2006
Posts: 456
Points: 10.66
Donate
are u shure it imstalled properly took me 5 times for a proper install
__________________
kid101skater says:
wanna here a funny story
sharko says:
shure
kid101skater says:
a fat girl walked by my house and i went to the window and acted retarded
then i ran to the door
and said
LET ME OFF MY CHAIN MOMMY.... i wanna doo what daddy does to you....
whats funny is
the next day i found her number in my mailbox
Reply With Quote
  #7 (permalink)  
Old 05-16-2006, 10:30 PM
Michael M.'s Avatar
Michael M. Michael M. is offline
Teh h4x0r admin
My Mood:
 
Join Date: Feb 2006
Location: New York
Age: 25
Posts: 961
Points: 9,999,500,270.78
Donate
Send a message via AIM to Michael M. Send a message via MSN to Michael M.
The solution:
Quote:
Originally Posted by kalus
well for one you have 2 'main' functions which would cause an error during compile, but think it should still get further than that.
Reply With Quote
  #8 (permalink)  
Old 05-16-2006, 10:51 PM
mlbfan560's Avatar
mlbfan560 mlbfan560 is offline
Member
 
Join Date: Nov 2005
Location: Look behind you...
Posts: 82
Points: 0.22
Donate
Well, these should not be here.

Code:
int myFunction() { //Print Out 'A' return 0; } int main() { //Print Out 'B' myFunction(); //Print Out 'C' return 0; }
__________________
1 black psp fw 1.5
1 one gigabyte ms pro duo
1 32 MB MSD
GTA:LCS
Logitech PGP
1.51>2.0>1.5>2.0>2.5>2.6>1.5
Reply With Quote
  #9 (permalink)  
Old 05-16-2006, 11:58 PM
Michael M.'s Avatar
Michael M. Michael M. is offline
Teh h4x0r admin
My Mood:
 
Join Date: Feb 2006
Location: New York
Age: 25
Posts: 961
Points: 9,999,500,270.78
Donate
Send a message via AIM to Michael M. Send a message via MSN to Michael M.
As was mentioned twice...
Reply With Quote
  #10 (permalink)  
Old 05-17-2006, 03:11 AM
skais's Avatar
skais skais is offline
Senior Member
 
Join Date: Jan 2006
Posts: 150
Points: 0.95
Donate
I have fully rewritten my code, here it is:
Code:
// Hello World - My first App for the PSP!!! #include <pspkernel.h> // PSP Kernel functions include file #include <pspdebug.h> // PSP debug functions include file. /* Set the application information. */ PSP_MODULE_INFO("Hello World, 0, 1, 1); /* Define debug parameters */ /* Replace standard C printf() function with PSP printf() function */ #define printf pspDebugScreenPrintf /* Exit callback */ int exit_callback (int arg1, int arg2, void *common) { sceKernelExitGame(); // Exit the Application return 0; } /* Callback thread */ int CallbackThread (SceSize args, void *argp) { // Local cars. int cbid; // Create the exit the callback in for the PSP shell. cbid = sceKernelCreateCallback ("Exit Callback", exit_callback, NULL); sceKernelRegister // Sleep the kernel until we tell it to exit. sceKernelRegisterExitCallback(cbid); // Return success. return 0; } /* Set up the callback thread and return the thread ID */ int SetupCallbacks(void) { // Local vars. int thid = 0; /* Thread ID */ // Create the thread thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0,); if (thid >= 0) { sceKernelStartThread(thid, 0, 0); } } /* Main Function */ int main() { pspDebugScreenInit(); SetupCallbacks(); printg("Hello World!"); sceKernelSleepThread(); // Return success return 0; }
and my Makefile:
Code:
TARGET = hello OBJS = main.o CFlAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions -fno rtti ASFLAGS = $(CFLAGS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Roberto Mendez 1st Hack PSPSDK = $(shell psp-config --pspsdk-path) include $(PSPSDK) /lib/build.mak
when i type make on cygwin, it says
Quote:
Originally Posted by "Cygwin"
make: *** /usr/local/pspdev/psp/sdk: Is a directory. Stop.
Does anyone know whats wrong now?
Reply With Quote
Reply

« SmashGpsp compatibility | independant psp repairs UK »



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.00
Points Per Thread: 1.00
Points Per Reply: 0.10

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cygwin help please stefan.buddle Development Center 9 08-22-2006 01:16 PM
how do i make my own sig? charizard2006 Off Topic 29 08-04-2006 10:16 AM
Problem with Saves... rickysurfer General PSP Discussion 9 05-08-2006 06:39 AM
problem with loading the toolchain file in CYGWIN charizard2006 Homebrew/Hacking 5 04-12-2006 09:10 AM
Cygwin compiling problem wolfslayer500 Development Center 14 01-25-2006 06:35 AM





Crave Partner Sites: CraveOnline.com | DVDFile.com | PSP3D.com | ComingSoon.net | SuperHeroHype.com | RedBalcony.com | ActionTrip.com | CraveLyrics.com
Soundtrack.net | CraveFix.com | SpikedHumor.com | RPGamer.com | TattooNow.com | ImpactWrestling.com | SeekLyrics.com | PedalBMX.com | WildKO.com
vidKing.com | StrategyInformer.com | HHdb.com | RapLeagues.com | HipHop-Lyrics.com | Cravecocktails.com | ThePhatPhree.com | RideJudge.com | HottieSpots.com

PSP3D Footer Left Powered by Custom vB Version 5.1.0 for Crave Online Media, LLC.
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8

All times are GMT -4. The time now is 02:11 AM.
PSP3D Footer Right