[PD] newbie learning how to 'make'

chun lee leechun at leechun.freeserve.co.uk
Thu Jun 17 22:41:44 CEST 2004


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 at 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 at leechun.freeserve.co.uk>
> To: "Martin Peach" <martinrp at vax2.concordia.ca>; "Pd_list" <pd-list at 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 at 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 at 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 at leechun.freeserve.co.uk>
>>>>> To: "Pd list" <pd-list at 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/lin
>>>>> 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 at 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 at 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 at iem.at
>> to manage your subscription (including un-subscription) see
>> http://iem.at/cgi-bin/mailman/listinfo/pd-list
> 





More information about the Pd-list mailing list