![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Cygwin Help!! within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Okay so i have it installed and everything so I have my helloworld source and the makefile in the right ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
Okay so i have it installed and everything so I have my helloworld source and the makefile in the right directory, I do "cd" to get to the files but when i type make it gives me this:
PHP Code:
)So my first question is can anyone help me?! And is the correct command even make? |
|
|
|
|
|
#2 |
![]() |
Code:
cd projects Example : F:\cygwin\home\DeMoN\proj ects\ Code:
cd helloworld Example : F:\cygwin\home\DeMoN\proj ects\helloworld Then all you need to do is Code:
make
|
|
|
|
|
|
#3 | |
![]() likes kittens....awww....
Join Date: Sep 2006
Real First Name: Erik
Location: Detroit
Just Played: Call of Duty:World at War
Posts: 628
Trader Feedback: 0
|
Quote:
|
|
|
|
|
|
|
#4 | |
![]() |
Quote:
Anyway i have some progress i type "make main" And this actually attempts someting but ends up with many errors. Last line is: make: *** [main] Error 1 @demon i did all that ![]() I am NOT installing it again! -= Double Post =- My main.c code: Code:
//Helloworld - my first psp app
/*
This programme was made by SeanyP on 29th Sept
Its a simple helloworld app
*/
#include <pspkernel.h>
#include <pspdebug.h>
PSP_MODULE_INFO("Hello World", 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;
}
pspDebugScreenInit();
SetupCallbacks();
printf("Hello World");
sceKernelSleepThread();
return 0;
}
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 Last edited by SeanyP; 03-29-2007 at 12:47 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#6 |
![]() ![]() <img src="images/smilies/psp.gif" border="0" alt="" title="" cl***="inlineimg" /> <img src="images/smilies/Punk.gif" border="0" alt="" title="" cl***=&
|
are in in the right folder (in cygwin)
__________________
|
|
|
|
|
|
#7 |
![]() |
they are in C:\cygwin\home\Sean\proje cts\helloworld so i gues that is right... the make file is correct also.
-= Double Post =- what type of file should the makefile be mine is in RTF (rich text document) Last edited by SeanyP; 09-29-2006 at 01:23 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
#8 | |
![]() ![]() Developer
|
And your makefile is named 'makefile' with no extension?
If in doubt type 'ls' in the folder you navigate to, you should see 'main.c' and 'makefile'.
__________________
![]() Check out my homebrew & C tutorials at http://insomniac.0x89.org/ Coder formerly known as Insomniac197 Quote:
|
|
|
|
|
|
|
#9 | |
![]() |
Quote:
|
|
|
|
|
|
|
#11 |
![]() |
Use ConTEXT. http://www.context.cx/
|
|
|
|
|
|
#12 |
![]() ![]() AKA Homer
|
You could, if you want to, do
Code:
make -f makefile.rtf And also, don't use wordpad to write your makefiles or whatever. Use notepad, or some other ascii text editor program. Last edited by homer; 09-29-2006 at 01:39 PM.. |
|
|
|
|
|
#15 | |
![]() |
Quote:
|
|
|
|
|
|
|
#16 | |
![]() ![]() AKA Homer
|
Quote:
|
|
|
|
|
![]() |
| Tags |
| cygwin |
| Thread Tools | |
|
|