[flext] Can't run Flext Template example (or any others) in Pd (OSX 10.6.3, Intel)

Nicholas Mariette nmariette at gmail.com
Tue Apr 13 15:00:48 CEST 2010


I tried several things, and finally, by using the _deployment configuration_ I was able to make the template example load in Pd (as a myext object).

The _development configuration_ doesn't work for me.

I definitely don't have any flext dylibs lying around, but I can see that the "symbol not found" error is looking for a dynamic version of a flext function, so I guess there is an Xcode setting somewhere that is still causing the development configuration to expect a dynamic library.

I tried searching the files within the .xcodeproj package, and found things in the text editor that don't show up in the xcode settings, but it's a bit hit and miss trying to edit project settings in a text editor.

So anyway, the template example now loads in Pd.  I quickly tried my adaptation of the henon example, but I get this error:
load_object: Symbol "henon_setup" not found
(at least it's not as bad as before).

It's a bit late here (Melbourne, AU) for me to bother trying to fix that for now, so I expect I can get it going tomorrow.
I'll also try the Template again from a fresh checkout from svn, just to confirm if development config is faulty for me.

thanks for your help!
Nick



On 13/04/2010, at 8:10 PM, Thomas Grill wrote:

> Hi Nicholas,
> could it be that you have a flext*.dylib from an old build lying around?
> Xcode has the habit of linking to a dylib rather than a static lib when it finds one.
> gr~~~
>  
> Am 13.04.2010 um 11:26 schrieb Nicholas Mariette:
> 
>> Hi,
>> 
>> I have a problem where any Flext object I build fails to run in Pd.  (I'm not testing Max).
>> 
>> Using the latest Flext from:
>> https://svn.grrrr.org/ext/trunk/flext
>> I can successfully build the Flext libraries, and I can build the template example that's included.
>> (I can also build an object using a copy of the Template project with a modified main.cpp, as per the readme.txt - e.g. using the henon.cpp example)
>> 
>> However-
>> When I try to instantiate any of these objects in Pd, I get an error like this in the Pd console:
>> 
>> /Users/nickm/dev/nm_personal_dev/pd/flext/examples/xcode-template/pd/myext.pd_darwin: dlopen(/Users/nickm/dev/nm_personal_dev/pd/flext/examples/xcode-template/pd/myext.pd_darwin, 10): Symbol not found: __ZN18flext_obj_single_d8FinalizeEv
>>   Referenced from: /Users/nickm/dev/nm_personal_dev/pd/flext/examples/xcode-template/pd/myext.pd_darwin
>>   Expected in: dynamic lookup
>> 
>>  myext
>> ... couldn't create
>> 
>> I am on a Macbookpro Intel, OSX 10.6.3, running Pd 0.42.5.
>> I built Flext and the template example against the same Pd 0.42.5 sources, and used the libflext-pd_sd.a library I just created.
>> 
>> I'm using the xcode projects, with GCC 4.2.
>> 
>> Can anybody help me get an example running in Pd?
>> 
>> Thanks
>> Nick
>> _______________________________________________
>> http://grrrr.org/ext/flext
>> 
>> flext mailing list
>> flext at grrrr.org
>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20100413/ae736021/attachment.htm>


More information about the flext mailing list