Re: [PD] Compiling vanilla 0.42-5 on OS X 10.6

2011-02-19 Thread Elliott Slaughter
On Sat, Feb 19, 2011 at 8:41 AM, Hans-Christoph Steiner h...@at.or.atwrote:


 On Feb 19, 2011, at 1:40 AM, Elliott Slaughter wrote:

 On Fri, Feb 18, 2011 at 9:16 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 ./configure --disable-fat

 That is a warning related to building universal.


 Ok, build gets a little further, and then:

 ../portaudio/src/hostapi/coreaudio/pa_mac_core.c: In function
 ‘OpenAndSetupOneAudioUnit’:
 ../portaudio/src/hostapi/coreaudio/pa_mac_core.c:752: error:
 ‘ComponentDescription’ undeclared (first use in this function)

 Full compile log: http://pastebin.com/BSFuybnC

 Thanks for the help.


 You probably need to use a newer version of portaudio for 10.6 download it
 from portaudio.com and replace the 'portaudio' folder.


The last stable version is the same as the one included in pd-0.42, and the
latest svn snapshot doesn't compile for me, so I appear to be stuck here.
(Also, the src/os/mac_osx directory appears to be empty in the latest svn
version, which makes pd unhappy.)

ld: duplicate symbol _PaUtil_FlushRingBuffer in
src/common/.libs/pa_ringbuffer.o and src/common/.libs/pa_ringbuffer.o
(From trying to do ./configure  make in portaudio.)

i686-apple-darwin10-gcc-4.2.1: ../portaudio/src/common/pa_skeleton.c: No
such file or directory
i686-apple-darwin10-gcc-4.2.1:
../portaudio/src/os/mac_osx/pa_mac_hostapis.c: No such file or directory
(After stuffing the new portaudio into my pd directory.)

Suggestions?

.hc



 .hc


 On Feb 18, 2011, at 11:25 PM, Elliott Slaughter wrote:

  Hi,

 I'm trying to compile vanilla Pd 0.42-5 from source on Mac OS X 10.6, and
 after doing a ./configure and make got a lot of warnings followed by:

 lipo: can't figure out the architecture type of:
 /var/folders/pI/pIcjee4GEbOGlylnzdAsZTI/-Tmp-//ccLn5z7A.out

 Am I missing something? The instructions didn't make this sound hard.

 I'm using Xcode 3.2.5 (GCC 4.2.1).

 Thanks in advance.

 --
 Elliott Slaughter

 Don't worry about what anybody else is going to do. The best way to
 predict the future is to invent it. - Alan Kay
  ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 News is what people want to keep hidden and everything else is publicity.
  - Bill Moyers





 --
 Elliott Slaughter

 Don't worry about what anybody else is going to do. The best way to
 predict the future is to invent it. - Alan Kay





 

 Making boring techno music is really easy with modern tools, but with live
 coding, boring techno is much harder. - Chris McCormick







-- 
Elliott Slaughter

Don't worry about what anybody else is going to do. The best way to predict
the future is to invent it. - Alan Kay
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] externals tutorial: link error

2011-02-18 Thread Elliott Slaughter
I'm getting a link error when following the counter tutorial from the
following page:

http://pdstatic.iem.at/externals-HOWTO/node4.html

2counter.obj : error LNK2001: unresolved external symbol _s_float
2C:\Users\Elliott\...\externals\build\Debug\counter.dll : fatal error
LNK1120: 1 unresolved externals

I got the first (hello world) example to build and link and run, so I'm not
sure what I'm doing wrong here. I am definitely linking against pd.lib,
because if I stop linking against it, I get about 8 link errors instead of
1. My code is identical to the example except for an added extern C
and __declspec(dllexport) to get the counter_setup function to have the
correct visibility.

I am building with MS Visual Studio 2010 and the Pd 0.42.5 from
http://www.crca.ucsd.edu/~msp/software.html .

I would be happy to provide more details on my code and build system if that
would be helpful.

Thanks in advance.

-- 
Elliott Slaughter

Don't worry about what anybody else is going to do. The best way to predict
the future is to invent it. - Alan Kay
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] externals tutorial: link error

2011-02-18 Thread Elliott Slaughter
On Fri, Feb 18, 2011 at 12:03 PM, Martin martin.pe...@sympatico.ca wrote:

 On 18/02/11 02:39 PM, Elliott Slaughter wrote:

 I'm getting a link error when following the counter tutorial from the
 following page:

 http://pdstatic.iem.at/externals-HOWTO/node4.html

 2counter.obj : error LNK2001: unresolved external symbol _s_float
 2C:\Users\Elliott\...\externals\build\Debug\counter.dll : fatal error
 LNK1120: 1 unresolved externals


 I think it's because you need to define MSW in the preprocessor defines
 section so that EXPORT in m_pd.h is replaced by __declspec(dllimport).
 Otherwise it's just extern and the linker can't find it.
 Another way to avoid that error is to replace any ocurrence of s_float
 with gensym(float) but then you'll probably run into more trouble down the
 line.


Thanks. The MSW fix worked. Funny that m_pd.h can't figure that out
automatically

-- 
Elliott Slaughter

Don't worry about what anybody else is going to do. The best way to predict
the future is to invent it. - Alan Kay
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Compiling vanilla 0.42-5 on OS X 10.6

2011-02-18 Thread Elliott Slaughter
Hi,

I'm trying to compile vanilla Pd 0.42-5 from source on Mac OS X 10.6, and
after doing a ./configure and make got a lot of warnings followed by:

lipo: can't figure out the architecture type of:
/var/folders/pI/pIcjee4GEbOGlylnzdAsZTI/-Tmp-//ccLn5z7A.out

Am I missing something? The instructions didn't make this sound hard.

I'm using Xcode 3.2.5 (GCC 4.2.1).

Thanks in advance.

-- 
Elliott Slaughter

Don't worry about what anybody else is going to do. The best way to predict
the future is to invent it. - Alan Kay
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Compiling vanilla 0.42-5 on OS X 10.6

2011-02-18 Thread Elliott Slaughter
On Fri, Feb 18, 2011 at 9:16 PM, Hans-Christoph Steiner h...@at.or.atwrote:


 ./configure --disable-fat

 That is a warning related to building universal.


Ok, build gets a little further, and then:

../portaudio/src/hostapi/coreaudio/pa_mac_core.c: In function
‘OpenAndSetupOneAudioUnit’:
../portaudio/src/hostapi/coreaudio/pa_mac_core.c:752: error:
‘ComponentDescription’ undeclared (first use in this function)

Full compile log: http://pastebin.com/BSFuybnC

Thanks for the help.

.hc


 On Feb 18, 2011, at 11:25 PM, Elliott Slaughter wrote:

  Hi,

 I'm trying to compile vanilla Pd 0.42-5 from source on Mac OS X 10.6, and
 after doing a ./configure and make got a lot of warnings followed by:

 lipo: can't figure out the architecture type of:
 /var/folders/pI/pIcjee4GEbOGlylnzdAsZTI/-Tmp-//ccLn5z7A.out

 Am I missing something? The instructions didn't make this sound hard.

 I'm using Xcode 3.2.5 (GCC 4.2.1).

 Thanks in advance.

 --
 Elliott Slaughter

 Don't worry about what anybody else is going to do. The best way to
 predict the future is to invent it. - Alan Kay
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





 

 News is what people want to keep hidden and everything else is publicity.
- Bill Moyers





-- 
Elliott Slaughter

Don't worry about what anybody else is going to do. The best way to predict
the future is to invent it. - Alan Kay
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list