| View previous topic :: View next topic |
| Author |
Message |
Chapi
Joined: 23 Jan 2006 Posts: 2
|
Posted: Mon Jan 23, 2006 10:37 pm Post subject: Problem with set path |
|
|
I have a little Problem with my
set path it is wrong and i have no idea how to solve it
and if i try to compile someting i wil see this massage:
Make: *** No targets specified and no makefile found. Stop.
| Code: |
set path=%path%;C:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd |
edit:
Sorryy can someone put this to PSPSDK Support and Development? |
|
| Back to top |
|
 |
HaQue
Joined: 25 Nov 2005 Posts: 91 Location: Adelaide, Australia
|
Posted: Mon Jan 23, 2006 11:53 pm Post subject: |
|
|
Not sure of your experience with coding, paths etc.. so dont mean to insult your intellegence, so I'll try to help with what I think it could be.
I don't think it is actually a PATH problem because you usually type "make" (which DOES need to be in the path) in the folder that contains the makefile of the source you want to compile. You aren't getting an error such as :
| Code: | c:\Documents and Settings\HaQue
'make' is not recognized as an internal or external command,
operable program or batch file. |
so make is being correctly found via the PATH variables.
also imagine if the makefile was allowed to be found just by the PATH statement. As soon as there were 2 or more makefiles ANYWHERE in the path variables, the make program wouldn't know which one you wanted!
So:
Is the makefile in "c:\PSPDev\" or a subfolder &
is your .c files in "c:\PSPDev" or a subfolder? If so you will need to cd to that folder first.
eg for:
c:\PSPDev\mysource\makefile
c:\PSPDev\mysource\main.c
| Code: |
cd c:\PSPDev\mysource
make |
if that doesnt help, try posting your folder structure for Devving and also the location of your sourcecode and makefile and I'll try to help.
Good Luck!
HaQue _________________ www.smartwave-wireless.com |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Mon Jan 23, 2006 11:57 pm Post subject: |
|
|
You should be running a 'cygwin' shell, not a standard dos shell. The programs you are trying to run require some special things that a cygwin environment provides.
There should be an icon on your desktop you can use one you've installed cygwin. Try that instead.
You may also have to use 'export PATH=blahblahblah' instead of set, too. |
|
| Back to top |
|
 |
Chapi
Joined: 23 Jan 2006 Posts: 2
|
Posted: Tue Jan 24, 2006 2:23 am Post subject: |
|
|
Its the scr from PSP-OSS becouse i change something in this files.
I have renamed the dir and now i have this Massage:
| Code: | make: psp-config: Command not found
Makefile:27: /lib/build.mak: No such file or directory
make: *** No rule to make target `/lib/build.mak'. Stop. |
|
|
| Back to top |
|
 |
Dr. Vegetable
Joined: 14 Nov 2005 Posts: 171 Location: Boston, Massachusetts
|
Posted: Tue Jan 24, 2006 5:19 am Post subject: |
|
|
| ooPo wrote: | | You should be running a 'cygwin' shell, not a standard dos shell. The programs you are trying to run require some special things that a cygwin environment provides. |
This is not actually true. I do all my PSP builds from a Windows 'DOS box" command line prompt and it works fine. You just need to make sure that your CygWin and PSPDEV executables are available somewhere in your PATH environment variable. You also need to set LIB= and INCLUDE= to find the PSP stuff, just as you would when configuring any compiler.
I use a simple .BAT batch file to initialize the environment of a dos box and then I can switch to the project directory and type "make" right from the command line. This is much easier for an old dos-hound like me to work with than using Bash shell commands. I can even run SVN to update and rebuild the SDK from a command prompt. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue Jan 24, 2006 5:34 am Post subject: |
|
|
Every word I said was true. He 'should' be using a cygwin shell because they 'require some special things that a cygwin environment provides'. You're just providing them in a different way that would be very confusing to a user who is new to the whole process, which is why he should just use a normal cygwin shell for now.
Chapi: The psp-config program tells make where to find the pspsdk. You have to make sure your path is set properly so it can find it. Try using this tutorial:
http://wiki.pspdev.org/psp:programming_faq |
|
| Back to top |
|
 |
Dr. Vegetable
Joined: 14 Nov 2005 Posts: 171 Location: Boston, Massachusetts
|
Posted: Tue Jan 24, 2006 6:22 am Post subject: |
|
|
You are technically correct, and I do not wish to argue semantics.
But I did wish to point out that it is more than possible to build PSP programs without using the Bash shell, and for many PC users, this presents fewer hurdles than learning to use a fake linux shell running on a Windows machine. Your statement seemed to imply that this was not possible. In a dos box, you configure three environment variables and away you go. In CygWin, you configure three environment variables, learn an alien shell command set, and away you go.
I've been putting together a write-up on how to do this, so hopefully I will soon contribute more to this discussion than just irritating one of the site admins. |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue Jan 24, 2006 6:46 am Post subject: |
|
|
| To be honest, its cygwin I find annoying... :) |
|
| Back to top |
|
 |
|