Help the PSP 3D community grow! Vote for us below:


| | 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!
|  | | 
05-16-2006, 02:34 AM
| | 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.
| 
05-16-2006, 03:27 AM
| | Member | | | | | well for one you have 2 'main' functions which would cause an error during compile, but think it should still get further than that. | 
05-16-2006, 06:02 AM
| | 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. | 
05-16-2006, 06:55 AM
| | Junior Member | | Join Date: May 2006 Location: Australia On The Gold Coast Age: 17 | | | 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 | 
05-16-2006, 07:59 PM
| | 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 | 
05-16-2006, 08:56 PM
| | 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 | 
05-16-2006, 10:30 PM
| | Teh h4x0r admin
My Mood: | | Join Date: Feb 2006 Location: New York Age: 25
Posts: 961
Points: 9,999,500,270.78 Donate | | 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. | | 
05-16-2006, 10:51 PM
| | Member | | Join Date: Nov 2005 Location: Look behind you... | | 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  | 
05-16-2006, 11:58 PM
| | Teh h4x0r admin
My Mood: | | Join Date: Feb 2006 Location: New York Age: 25
Posts: 961
Points: 9,999,500,270.78 Donate | | | As was mentioned twice... | 
05-17-2006, 03:11 AM
| | 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? | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off Points Per Thread View: 0.00 Points Per Thread: 1.00 Points Per Reply: 0.10 | | | | |