Problem with set path

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Chapi
Posts: 2
Joined: Mon Jan 23, 2006 10:27 pm

Problem with set path

Post by Chapi »

I have a little Problem with my
set path it is wrong and i have no idea how to solve it

Image

and if i try to compile someting i wil see this massage:

Make: *** No targets specified and no makefile found. Stop.

Code: Select all

set path=%path%;C:\PSPDev\bin
set PSPSDK=C:\PSPDev\psp\sdk
cmd

edit:
Sorryy can someone put this to PSPSDK Support and Development?
HaQue
Posts: 91
Joined: Fri Nov 25, 2005 8:52 am
Location: Adelaide, Australia
Contact:

Post by HaQue »

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: Select all

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: Select all

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
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
Chapi
Posts: 2
Joined: Mon Jan 23, 2006 10:27 pm

Post by Chapi »

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: Select all

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.
Dr. Vegetable
Posts: 171
Joined: Mon Nov 14, 2005 1:32 am
Location: Boston, Massachusetts
Contact:

Post by Dr. Vegetable »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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
Dr. Vegetable
Posts: 171
Joined: Mon Nov 14, 2005 1:32 am
Location: Boston, Massachusetts
Contact:

Post by Dr. Vegetable »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

To be honest, its cygwin I find annoying... :)
Post Reply