hi there:
i am just learning how to compile pd externals and got a few questions.
i got the makefile from http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/build/l...
and a hello_world example from the below line and saved as hello_world.c http://iem.at/pd/externals-HOWTO/node3.html
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
where am i doing wrong? do i need to modify the makefile somewhere?
many thanks
yours
CHUN
That's a very good tutorial but it's still missing the part "How to Build an External". Most people seem to grab a makefile from some other external and morph it until it works for theirs. In your case you wiill need to remove every instance of "../src/", since your source code is in the same directory as the makefile ( or else make a directory named "src", put your source files in it, make another directory with any legal name at the same level as src, and put the makefile in that.). You may also need to modify the INCLUDES line to include the path to m_pd.h and whatever it refers to.
Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Pd list" pd-list@iem.at Sent: Wednesday, June 16, 2004 12:48 PM Subject: [PD] newbie learning how to 'make'
hi there:
i am just learning how to compile pd externals and got a few questions.
i got the makefile from
http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/build/l...
and a hello_world example from the below line and saved as hello_world.c http://iem.at/pd/externals-HOWTO/node3.html
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
where am i doing wrong? do i need to modify the makefile somewhere?
many thanks
yours
CHUN
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Great! I have got it compiled now, thanks very much. Just one more question though. Where are all the .h files live? In my makefile, it says
INCLUDES = -I. -I.. -I../include
Say if I need math.h and other ANSI C .h. Do they all live together?
Cheers
CHUN
On 16/6/04 6:20 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
That's a very good tutorial but it's still missing the part "How to Build an External". Most people seem to grab a makefile from some other external and morph it until it works for theirs. In your case you wiill need to remove every instance of "../src/", since your source code is in the same directory as the makefile ( or else make a directory named "src", put your source files in it, make another directory with any legal name at the same level as src, and put the makefile in that.). You may also need to modify the INCLUDES line to include the path to m_pd.h and whatever it refers to.
Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Pd list" pd-list@iem.at Sent: Wednesday, June 16, 2004 12:48 PM Subject: [PD] newbie learning how to 'make'
hi there:
i am just learning how to compile pd externals and got a few questions.
i got the makefile from
http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/build/l... ux/makefile?rev=1.19
and a hello_world example from the below line and saved as hello_world.c http://iem.at/pd/externals-HOWTO/node3.html
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
where am i doing wrong? do i need to modify the makefile somewhere?
many thanks
yours
CHUN
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Usually on linux they are found in /usr/include, sometimes also /usr/local/include.
Martin
Great! I have got it compiled now, thanks very much. Just one more
question
though. Where are all the .h files live? In my makefile, it says
INCLUDES = -I. -I.. -I../include
Say if I need math.h and other ANSI C .h. Do they all live together?
Cheers
CHUN
On 16/6/04 6:20 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
That's a very good tutorial but it's still missing the part "How to
Build an
External". Most people seem to grab a makefile from some other external
and
morph it until it works for theirs. In your case you wiill need to
remove
every instance of "../src/", since your source code is in the same
directory
as the makefile ( or else make a directory named "src", put your source files in it, make another directory with any legal name at the same
level as
src, and put the makefile in that.). You may also need to modify the INCLUDES line to include the path to m_pd.h and whatever it refers to.
Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Pd list" pd-list@iem.at Sent: Wednesday, June 16, 2004 12:48 PM Subject: [PD] newbie learning how to 'make'
hi there:
i am just learning how to compile pd externals and got a few questions.
i got the makefile from
http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/build/l...
ux/makefile?rev=1.19
and a hello_world example from the below line and saved as
hello_world.c
http://iem.at/pd/externals-HOWTO/node3.html
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
where am i doing wrong? do i need to modify the makefile somewhere?
many thanks
yours
CHUN
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hi there:
Thanks, I found them. Does the 'make' procedure the same as to OSX? I got the make file from:
[cvs] / pure-data / externals / build / darwin / makefile
And followed the same steps but ended up with
make: *** No targets. Stop.
Any ideas?
Cheers
CHUN
On 16/6/04 6:53 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
Usually on linux they are found in /usr/include, sometimes also /usr/local/include.
Martin
Great! I have got it compiled now, thanks very much. Just one more
question
though. Where are all the .h files live? In my makefile, it says
INCLUDES = -I. -I.. -I../include
Say if I need math.h and other ANSI C .h. Do they all live together?
Cheers
CHUN
On 16/6/04 6:20 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
That's a very good tutorial but it's still missing the part "How to
Build an
External". Most people seem to grab a makefile from some other external
and
morph it until it works for theirs. In your case you wiill need to
remove
every instance of "../src/", since your source code is in the same
directory
as the makefile ( or else make a directory named "src", put your source files in it, make another directory with any legal name at the same
level as
src, and put the makefile in that.). You may also need to modify the INCLUDES line to include the path to m_pd.h and whatever it refers to.
Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Pd list" pd-list@iem.at Sent: Wednesday, June 16, 2004 12:48 PM Subject: [PD] newbie learning how to 'make'
hi there:
i am just learning how to compile pd externals and got a few questions.
i got the makefile from
http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/build/l...
ux/makefile?rev=1.19
and a hello_world example from the below line and saved as
hello_world.c
http://iem.at/pd/externals-HOWTO/node3.html
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
where am i doing wrong? do i need to modify the makefile somewhere?
many thanks
yours
CHUN
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
'make' works the same but the paths may be different. You need to look at the makefile to see what it is configured to make, and change it to fit what you want. Usually the possible targets are in lower case at the start of a line, while the variables are in upper case. One or more of the targets may or may not be set as CURRENT. If none is, you might have to do "make pd_darwin" or similar. I haven't done _any_ pd on OSX, so I can't help more than that. Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Martin Peach" martinrp@vax2.concordia.ca; "Pd_list" pd-list@iem.at Sent: Thursday, June 17, 2004 11:55 AM Subject: Re: [PD] newbie learning how to 'make'
Hi there:
Thanks, I found them. Does the 'make' procedure the same as to OSX? I got the make file from:
[cvs] / pure-data / externals / build / darwin / makefile
And followed the same steps but ended up with
make: *** No targets. Stop.
Any ideas?
Cheers
CHUN
On 16/6/04 6:53 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
Usually on linux they are found in /usr/include, sometimes also /usr/local/include.
Martin
Great! I have got it compiled now, thanks very much. Just one more
question
though. Where are all the .h files live? In my makefile, it says
INCLUDES = -I. -I.. -I../include
Say if I need math.h and other ANSI C .h. Do they all live together?
Cheers
CHUN
On 16/6/04 6:20 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
That's a very good tutorial but it's still missing the part "How to
Build an
External". Most people seem to grab a makefile from some other
external
and
morph it until it works for theirs. In your case you wiill need to
remove
every instance of "../src/", since your source code is in the same
directory
as the makefile ( or else make a directory named "src", put your
source
files in it, make another directory with any legal name at the same
level as
src, and put the makefile in that.). You may also need to modify the INCLUDES line to include the path to m_pd.h and whatever it refers to.
Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Pd list" pd-list@iem.at Sent: Wednesday, June 16, 2004 12:48 PM Subject: [PD] newbie learning how to 'make'
hi there:
i am just learning how to compile pd externals and got a few
questions.
i got the makefile from
http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/build/l...
ux/makefile?rev=1.19
and a hello_world example from the below line and saved as
hello_world.c
http://iem.at/pd/externals-HOWTO/node3.html
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
where am i doing wrong? do i need to modify the makefile somewhere?
many thanks
yours
CHUN
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hi there:
That's cool, I thought I will give it a try to ask. Thanks for your help:)
On 17/6/04 8:15 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
'make' works the same but the paths may be different. You need to look at the makefile to see what it is configured to make, and change it to fit what you want. Usually the possible targets are in lower case at the start of a line, while the variables are in upper case. One or more of the targets may or may not be set as CURRENT. If none is, you might have to do "make pd_darwin" or similar. I haven't done _any_ pd on OSX, so I can't help more than that. Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Martin Peach" martinrp@vax2.concordia.ca; "Pd_list" pd-list@iem.at Sent: Thursday, June 17, 2004 11:55 AM Subject: Re: [PD] newbie learning how to 'make'
Hi there:
Thanks, I found them. Does the 'make' procedure the same as to OSX? I got the make file from:
[cvs] / pure-data / externals / build / darwin / makefile
And followed the same steps but ended up with
make: *** No targets. Stop.
Any ideas?
Cheers
CHUN
On 16/6/04 6:53 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
Usually on linux they are found in /usr/include, sometimes also /usr/local/include.
Martin
Great! I have got it compiled now, thanks very much. Just one more
question
though. Where are all the .h files live? In my makefile, it says
INCLUDES = -I. -I.. -I../include
Say if I need math.h and other ANSI C .h. Do they all live together?
Cheers
CHUN
On 16/6/04 6:20 pm, "Martin Peach" martinrp@vax2.concordia.ca wrote:
That's a very good tutorial but it's still missing the part "How to
Build an
External". Most people seem to grab a makefile from some other
external
and
morph it until it works for theirs. In your case you wiill need to
remove
every instance of "../src/", since your source code is in the same
directory
as the makefile ( or else make a directory named "src", put your
source
files in it, make another directory with any legal name at the same
level as
src, and put the makefile in that.). You may also need to modify the INCLUDES line to include the path to m_pd.h and whatever it refers to.
Martin
----- Original Message ----- From: "chun lee" leechun@leechun.freeserve.co.uk To: "Pd list" pd-list@iem.at Sent: Wednesday, June 16, 2004 12:48 PM Subject: [PD] newbie learning how to 'make'
hi there:
i am just learning how to compile pd externals and got a few
questions.
i got the makefile from
http://cvs.sourceforge.net/viewcvs.py/*checkout*/pure-data/externals/build/l...
ux/makefile?rev=1.19
and a hello_world example from the below line and saved as
hello_world.c
http://iem.at/pd/externals-HOWTO/node3.html
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
where am i doing wrong? do i need to modify the makefile somewhere?
many thanks
yours
CHUN
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hallo, chun lee hat gesagt: // chun lee wrote:
and i put them in the same folder and 'cd' to the folder and typed make hello_world.c
and i got
ls: ../src: No such file or directory make: Nothing to be done for `hello_world.c'.
Apart from Martin's advise which you should follow as well, you should not call "make hello_world.c" but just "make" If you give a name after "make" then it uses that as a target, that is in your case "make hello_world.c" will try to build a file called "hello_world.c" which you already have, and probably your makefile doesn't know how to create hello_world.c anyways (because that's your job. ;)
If you open the makefile in an editor, its schema will look like this:
target: rules to make target
target2: rules to make target2 ...
"make target" will run "rules to make target", "make target2" will run "rules to make taregt2" then and so on. There are some default targets, namely "all" which can be omitted when running "make".
There are a lot more tricks inside makefiles, you really should try "info make" now and at least read the introduction.
Frank Barknecht _ ______footils.org__