[PD] Compiling pd svn on OSX 10.6

2009-11-19 Thread Robert Gründler

Hi all,

i'm having problems compiling pd 0.42 on OSX 10.6 (Snow Leopard).

At the first attempt, i got some errors with finding basic header files 
like stdlib.h.
Turned out that the configure script contained a wrong -isysroot flag in 
this line:


MORECFLAGS=-isysroot /Developer/SDKs/MacOSX10.4u.sdk

The folder did not exists on my system, so i changed it to 
/Developer/SDKs/MacOSX10.6.sdk.


After changing this, the compiler stops with the following error:

../portaudio/src/hostapi/coreaudio/pa_mac_core.c: At top level:
../portaudio/src/hostapi/coreaudio/pa_mac_core.c:2125: error: expected 
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘BlockWhileAudioUnitIsRunning’

../portaudio/src/hostapi/coreaudio/pa_mac_core.c: In function ‘StopStream’:
../portaudio/src/hostapi/coreaudio/pa_mac_core.c:2157: warning: implicit 
declaration of function ‘BlockWhileAudioUnitIsRunning’
lipo: can't figure out the architecture type of: 
/var/folders/KX/KXFfopgIHmmf2rIFIKIJpE+++TI/-Tmp-//ccVrmJvS.out

make: *** [../portaudio/src/hostapi/coreaudio/pa_mac_core.o] Error 1

Seems to be portaudio related, so i checked out the latest svn version 
of portaudio and compiled it separately, which works fine.


Has anyone else encountered this issue?

thanks,

-robert


ps:

My compiler version:

gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Loading order of pd objects

2009-02-25 Thread Robert Gründler
Hi,

could anyone with some internal knowledge of pd give me a hint in which 
order pd objects are
created when loading a patch ?

For example when i create a patch with 2 objects that are not connected 
in any way,
in which order will they be created by pd when the patch is loaded ?

Thanks!

-robert

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Loading order of pd objects

2009-02-25 Thread Robert Gründler
the problem i'm facing is the following:

i'm trying to write an extension to pd which allows people to create custom
gui objects that can communicate with the underlying pd patch.

So far i've a prototype where i use Gtk+ for the gui, and the communication
works fine so far.

But that's where the loading order of objects become important. First i 
need to
create the canvas object in pd, and then i can create additional objects 
which
add user interface objects inside the gtk canvas.

If i can't rely on a specific loading order in future implementations of 
pd, a workaround
would be that a simple gtk gui widget would first check if there's a 
canvas existing,
and if that's not the case, it needs to create one itself. But i'm not 
sure if i can create pd
objects in a patch programmatically.

I'd also be glad about feedback from the pd community if such an 
extension would be
considered useful in general.


best

-robert



Frank Barknecht wrote:
 Hallo,
 Robert Gr?ndler hat gesagt: // Robert Gr?ndler wrote:

   
 For example when i create a patch with 2 objects that are not connected 
 in any way,
 in which order will they be created by pd when the patch is loaded ?
 

 The order you created them, but it's very bad practice to rely on that,
 because it's an implementation detail that may change in future
 versions and it's generally error prone because you cannot see the
 creation order.

 You can test this with an abstraction that prints something with a
 loadbang, like:

 testme.pd: 

  [loadbang]
  |
  [f $1]
  |
  [print]

 testme-for-real.pd:

  [testme 1]
  [testme 2]

 Then open testme-for-real.pd again.

 Ciao
   


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list