[PD] [Pd] Compile external with C++ compiler?

2012-04-26 Thread Joe White
Hi all,

Thought I might as well ask this here because you guys know everything :)

I'm writing an external to be built into an iOS app that's running Pd. The
catch is I need to interface with a C++ library within the external.

The external builds and runs fine if I'm using the C compiler (in Xcode)
but I can't access the C++ library functions. If I switch it to compile in
C++ (by changing the objective-c file from .m to .mm) then I can use the
C++ library functions but it complains that it can't find 'class_addmethod'

  *'No matching function for call to
'class_addmethod'*

I've tried declaring the setup function as C code like Katja explains on
her site http://www.katjaas.nl/pitchshift/soundtouch~.html:

  extern C void external_tilde_setup(void) { }
But that still didn't seem to work. I was also going through the list and
found this 
threadhttp://lists.puredata.info/pipermail/pd-list/2002-02/004485.html
but
I'm not sure if it's the right approach. Plus I'm more of an audio guy than
programmer :)

Any ideas would be much appreciated.

Thanks,
Joe

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


Re: [PD] wacom digitizer 2 tablet - pd

2012-04-26 Thread Max
hi johannes,

that's a bit OT, but i once had a huge and old serial wacom to play with. - i 
tried to use it with a serial to usb interface and that interface worked but 
the drivers for the tablet were only for PPC or even os 9, so there was no way 
getting it to work on os x. linux or windows might be a different story. a new 
simple tablet is around 70,- euro and spending a day trying to get it to work 
was definitely not worth it.

max

Am 24.04.2012 um 20:45 schrieb johannes:

 hello hans,
 
 no, its a serial port. before buying an adapter i just wanted to know if it 
 would work and how the digitizer2 would work in pd
 in comparrison to newer models. as far as i know the digitizer was build in 
 1992 and was not cheap at all… but i can be wrong.
 
 thanks,
 johannes
 
 Am 24.04.12 15:48, schrieb Hans-Christoph Steiner:
 If its USB, it worth messing with.  Even the cheap Wacoms are pretty good.  
 For OSX, you need to use Thomas Grill's Wacom object.  For GNU/Linux, you 
 can use [hid].
 
 .hc
 
 On Apr 24, 2012, at 9:31 AM, johannes wrote:
 
 hello,
 
 i just get an old wacom digitizer 2 tablet by a friend…
 does that tablet works with pd under osx?
 there seems to be an emulation to get it work under osx, but didnt found 
 infos on pd usabilty…
 
 as it is big but a quite old piece of gear iam also interessted in the 
 quality/ handling of the tablet…
 in comparrison to newer but smaller tablets like the bamboo…
 
 any expieriences?
 
 thanks,
 johannnes
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -  
 http://lists.puredata.info/listinfo/pd-list
 
 
 
 
 Terrorism is not an enemy.  It cannot be defeated.  It's a tactic.  It's 
 about as sensible to say we declare war on night attacks and expect we're 
 going to win that war.  We're not going to win the war on terrorism.
 - retired U.S. Army general, William Odom
 
 
 
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list


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


Re: [PD] wacom digitizer 2 tablet - pd

2012-04-26 Thread johannes

Am 26.04.12 19:29, schrieb Max:

hi johannes,

that's a bit OT, but i once had a huge and old serial wacom to play with. - i 
tried to use it with a serial to usb interface and that interface worked but 
the drivers for the tablet were only for PPC or even os 9, so there was no way 
getting it to work on os x. linux or windows might be a different story. a new 
simple tablet is around 70,- euro and spending a day trying to get it to work 
was definitely not worth it.

max


hello max,

you are right, wacom simply stop´d the development of the drivers for 
the old tablets.
but there is a driver for osx called tabletmagic wich works with alot of 
stoneage wacom tablets:


http://www.thinkyhead.com/tabletmagic

anyway, i found the size of the tablet an important criteria for 
controlling things.
did you know about very accurate tracking methods wich could be used as 
an alterative to an pencilpoint?


ciao,
jo


Am 24.04.2012 um 20:45 schrieb johannes:


hello hans,

no, its a serial port. before buying an adapter i just wanted to know if it 
would work and how the digitizer2 would work in pd
in comparrison to newer models. as far as i know the digitizer was build in 
1992 and was not cheap at all… but i can be wrong.

thanks,
johannes

Am 24.04.12 15:48, schrieb Hans-Christoph Steiner:

If its USB, it worth messing with.  Even the cheap Wacoms are pretty good.  For 
OSX, you need to use Thomas Grill's Wacom object.  For GNU/Linux, you can use 
[hid].

.hc

On Apr 24, 2012, at 9:31 AM, johannes wrote:


hello,

i just get an old wacom digitizer 2 tablet by a friend…
does that tablet works with pd under osx?
there seems to be an emulation to get it work under osx, but didnt found infos 
on pd usabilty…

as it is big but a quite old piece of gear iam also interessted in the quality/ 
handling of the tablet…
in comparrison to newer but smaller tablets like the bamboo…

any expieriences?

thanks,
johannnes


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




Terrorism is not an enemy.  It cannot be defeated.  It's a tactic.  It's about 
as sensible to say we declare war on night attacks and expect we're going to 
win that war.  We're not going to win the war on terrorism.- retired 
U.S. Army general, William Odom





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





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


[PD] iemlib2 undefined symbol: iem_symtoalist_setup

2012-04-26 Thread Johanna Nowak
Dear friends,

Pd can't load iemlib2, compiled from latest svn, on Debian 64bit, saying
./iemlib2.pd_linux: ./iemlib2.pd_linux: undefined symbol: iem_symtoalist_setup

what can I do here?
thanx Jo

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


[PD] Paris gig next week

2012-04-26 Thread Ed Kelly
Hi chaps, and ladies,

There is a bunch of us playing in Paris next week:
http://www.leforumbm.fr/spectacle/318/Lutherie-lectrons-autour-de-Pure-Data-et-Miller-Puckette

If you're in the area, please come!
X
Ed
 
Gemnotes-0.1alpha: Live music notation for Pure Data
http://sharktracks.co.uk/___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [Pd] Compile external with C++ compiler?

2012-04-26 Thread Ed Kelly
Hi Joe,

Have you thought of using ofxPd?

I'm involved in the creation of an app for the iPhone right now, and we're 
using ofxPd from Dan Wilcox:
https://github.com/danomatika/ofxPd
Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd 
adds Pd to the libraries that you can work with in C++.
Then you can call the setup function within the xcode build, and your object 
will work in libpd (i.e. ofxPd) in the app environment.
Bear in mind that Apple do not like GnuGPL licensed stuff, so I've created BSD 
licensed versions of some of my own Pd externals for this project.


And the app works. We're in the final stages now, so I'll post to the list when 
it's complete!
Best,
Ed

 
Gemnotes-0.1alpha: Live music notation for Pure Data
http://sharktracks.co.uk/



 From: Joe White white.j...@gmail.com
To: pd-list pd-list@iem.at 
Sent: Thursday, 26 April 2012, 16:51
Subject: [PD] [Pd] Compile external with C++ compiler?
 

Hi all,

Thought I might as well ask this here because you guys know everything :)

I'm writing an external to be built into an iOS app that's running Pd. The 
catch is I need to interface with a C++ library within the external. 

The external builds and runs fine if I'm using the C compiler (in Xcode) but I 
can't access the C++ library functions. If I switch it to compile in C++ (by 
changing the objective-c file from .m to .mm) then I can use the C++ library 
functions but it complains that it can't find 'class_addmethod'

                          'No matching function for call to 'class_addmethod'

I've tried declaring the setup function as C code like Katja explains on her 
site:
                          extern C void external_tilde_setup(void) { }
But that still didn't seem to work. I was also going through the list and found 
this thread but I'm not sure if it's the right approach. Plus I'm more of an 
audio guy than programmer :)

Any ideas would be much appreciated.

Thanks,
Joe
-- 
Follow me on Twitter @diplojocus

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


Re: [PD] [Pd] Compile external with C++ compiler?

2012-04-26 Thread Charles Henry
Hi guys

The part that I don't get is how to call C functions from C++? I don't
think I've even tried that before.  Have you?
Joe: I've built externals that just call C++ functions that I declared
with extern C or wrote wrapper functions to export a C-callable
public interface to C++ functions.  Best suggestion I've got is to
identify which functions you've got are going to be public and which
ones are private and plan out how you're going to declare them.

Chuck

On 4/26/12, Ed Kelly morph_2...@yahoo.co.uk wrote:
 Hi Joe,

 Have you thought of using ofxPd?

 I'm involved in the creation of an app for the iPhone right now, and we're
 using ofxPd from Dan Wilcox:
 https://github.com/danomatika/ofxPd
 Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd
 adds Pd to the libraries that you can work with in C++.
 Then you can call the setup function within the xcode build, and your object
 will work in libpd (i.e. ofxPd) in the app environment.
 Bear in mind that Apple do not like GnuGPL licensed stuff, so I've created
 BSD licensed versions of some of my own Pd externals for this project.


 And the app works. We're in the final stages now, so I'll post to the list
 when it's complete!
 Best,
 Ed


 Gemnotes-0.1alpha: Live music notation for Pure Data
 http://sharktracks.co.uk/


 
  From: Joe White white.j...@gmail.com
 To: pd-list pd-list@iem.at
 Sent: Thursday, 26 April 2012, 16:51
 Subject: [PD] [Pd] Compile external with C++ compiler?


 Hi all,

 Thought I might as well ask this here because you guys know everything :)

 I'm writing an external to be built into an iOS app that's running Pd. The
 catch is I need to interface with a C++ library within the external.

 The external builds and runs fine if I'm using the C compiler (in Xcode) but
 I can't access the C++ library functions. If I switch it to compile in C++
 (by changing the objective-c file from .m to .mm) then I can use the C++
 library functions but it complains that it can't find 'class_addmethod'

   'No matching function for call to
 'class_addmethod'

 I've tried declaring the setup function as C code like Katja explains on her
 site:
   extern C void external_tilde_setup(void) { }
 But that still didn't seem to work. I was also going through the list and
 found this thread but I'm not sure if it's the right approach. Plus I'm more
 of an audio guy than programmer :)

 Any ideas would be much appreciated.

 Thanks,
 Joe
 --
 Follow me on Twitter @diplojocus

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

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