[flext] stk support flext for max, OS X 10.5.8

Thomas Grill gr at grrrr.org
Fri Jan 29 17:48:08 CET 2010


Hey,
are you trying to build a universal binary (archs i386 and ppc  
enabled) with libstk.a having only one arch?
gr~~~

Am 29.01.2010 um 17:27 schrieb sylvain le groux:

> Hi Thomas,
>
> Thanks for the prompt answer !
> That solved the problem with flbuf.
>
> But now if I add stk support I get the following errors (I compiled  
> and installed the latest stk 4.4.1)
>
> g++ -mmacosx-version-min=10.4 -framework MaxAPI -framework  
> MaxAudioAPI -dynamiclib -
> dynamic -framework vecLib -Wl,-S -arch ppc -arch i386 -install_name / 
> usr/local/lib/libflext-
> max.dylib -current_version 0.5.2 -compatibility_version 0.5 -preload  
> -seg1addr 0xd0000000  -o
> max-darwin/release-shared/libflext-max.0.5.2.dylib   max-darwin/ 
> release-shared/flbase.opp
> max-darwin/release-shared/flext.opp max-darwin/release-shared/ 
> flbuf.opp max-darwin/release-
> shared/fldsp.opp max-darwin/release-shared/fllib.opp max-darwin/ 
> release-shared/flxlet.opp
> max-darwin/release-shared/flattr.opp max-darwin/release-shared/ 
> flattr_ed.opp max-
> darwin/release-shared/flsupport.opp max-darwin/release-shared/ 
> flutil.opp max-darwin/release-
> shared/flatom.opp max-darwin/release-shared/flatom_pr.opp max-darwin/ 
> release-
> shared/flthr.opp max-darwin/release-shared/fltimer.opp max-darwin/ 
> release-shared/flsimd.opp
> max-darwin/release-shared/flout.opp max-darwin/release-shared/ 
> flatom_part.opp max-
> darwin/release-shared/flitem.opp max-darwin/release-shared/ 
> flmeth.opp max-darwin/release-
> shared/flmsg.opp max-darwin/release-shared/flproxy.opp max-darwin/ 
> release-
> shared/flqueue.opp max-darwin/release-shared/flbind.opp max-darwin/ 
> release-shared/flmap.opp
> max-darwin/release-shared/flstk.opp  /usr/local/lib/libstk.a
> ld warning: in /usr/local/lib/libstk.a, file is not of required  
> architecture
> Undefined symbols:
>  "stk::Stk::~Stk()", referenced from:
>      flext_stk::Output::~Output()in flstk.opp
>      flext_stk::Output::~Output()in flstk.opp
>      flext_stk::Input::~Input()in flstk.opp
>      flext_stk::Input::~Input()in flstk.opp
>  "stk::Stk::sampleRateChanged(double, double)", referenced from:
>      vtable for flext_stk::Inputin flstk.opp
>      vtable for flext_stk::Outputin flstk.opp
>  "stk::Stk::setSampleRate(double)", referenced from:
>      flext_stk::CbDsp()     in flstk.opp
>  "typeinfo for stk::Stk", referenced from:
>      typeinfo for flext_stk::Inputin flstk.opp
>      typeinfo for flext_stk::Outputin flstk.opp
>  "stk::Stk::Stk()", referenced from:
>      flext_stk::CbDsp()     in flstk.opp
>      flext_stk::CbDsp()     in flstk.opp
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//ccLf1OKn.out (No such file or  
> directory)
> make[1]: *** [max-darwin/release-shared/libflext-max.0.5.2.dylib]  
> Error 1
> rm max-darwin/release-shared/flatom_pr.opp_i386 max-darwin/release- 
> shared/flitem.opp_i386
> max-darwin/release-shared/flatom.opp_ppc max-darwin/release-shared/ 
> flproxy.opp_i386 max-
> darwin/release-shared/flout.opp_i386 max-darwin/release-shared/ 
> flmap.opp_i386 max-
> darwin/release-shared/flsupport.opp_i386 max-darwin/release-shared/ 
> flbuf.opp_ppc max-
> darwin/release-shared/flutil.opp_i386 max-darwin/release-shared/ 
> fllib.opp_i386 max-
> darwin/release-shared/flsupport.opp_ppc max-darwin/release-shared/ 
> flattr.opp_i386 max-
> darwin/release-shared/fltimer.opp_i386 max-darwin/release-shared/ 
> fldsp.opp_i386 max-
> darwin/release-shared/flext.opp_i386 max-darwin/release-shared/ 
> flxlet.opp_ppc max-
> darwin/release-shared/flmeth.opp_ppc max-darwin/release-shared/ 
> flattr_ed.opp_i386 max-
> darwin/release-shared/flattr.opp_ppc max-darwin/release-shared/ 
> flsimd.opp_ppc max-
> darwin/release-shared/flstk.opp_i386 max-darwin/release-shared/ 
> flbase.opp_ppc max-
> darwin/release-shared/flbind.opp_ppc max-darwin/release-shared/ 
> flmsg.opp_ppc max-
> darwin/release-shared/flatom.opp_i386 max-darwin/release-shared/ 
> flatom_part.opp_ppc max-
> darwin/release-shared/flutil.opp_ppc max-darwin/release-shared/ 
> flqueue.opp_ppc max-
> darwin/release-shared/flbuf.opp_i386 max-darwin/release-shared/ 
> flatom_pr.opp_ppc max-
> darwin/release-shared/flitem.opp_ppc max-darwin/release-shared/ 
> flproxy.opp_ppc max-
> darwin/release-shared/flout.opp_ppc max-darwin/release-shared/ 
> flmap.opp_ppc max-
> darwin/release-shared/flthr.opp_ppc max-darwin/release-shared/ 
> flxlet.opp_i386 max-
> darwin/release-shared/fllib.opp_ppc max-darwin/release-shared/ 
> flbase.opp_i386 max-
> darwin/release-shared/flmeth.opp_i386 max-darwin/release-shared/ 
> flext.opp_ppc max-
> darwin/release-shared/fltimer.opp_ppc max-darwin/release-shared/ 
> flsimd.opp_i386 max-
> darwin/release-shared/flattr_ed.opp_ppc max-darwin/release-shared/ 
> flthr.opp_i386 max-
> darwin/release-shared/fldsp.opp_ppc max-darwin/release-shared/ 
> flbind.opp_i386 max-
> darwin/release-shared/flstk.opp_ppc max-darwin/release-shared/ 
> flatom_part.opp_i386 max-
> darwin/release-shared/flqueue.opp_i386 max-darwin/release-shared/ 
> flmsg.opp_i386
> make: *** [build-release-shared] Error 2
>
> On Fri, 29 Jan 2010 16:28:01 +0100, Thomas Grill wrote
>> Hi,
>> i commited a fix for Max compilation. Please update from svn and try
>> again. gr~~~
>>
>> Am 29.01.2010 um 15:30 schrieb sylvain le groux:
>>
>>> Hi,
>>> I get the following errors when trying to compile flext for Max on
>>> OS X 10.5.8. with gcc-4.0.
>>> Any idea what I should try to do ?
>>>
>>> g++ -c -ffast-math -mmacosx-version-min=10.4 -O2   -fvisibility-
>>> inlines-hidden -arch ppc -
>>> mcpu=G4 -faltivec    -DFLEXT_USE_SIMD -DNDEBUG -DFLEXT_EXPORTS -
>>> DFLEXT_SYS=1 -I max-
>>> darwin/release-single -I/Applications/Max5/MaxSDK-5.1.1/c74support/
>>> max-includes -
>>> I/Applications/Max5/MaxSDK-5.1.1/c74support/jit-includes -I/
>>> Applications/Max5/MaxSDK-
>>> 5.1.1/c74support/msp-includes -I/usr/local/include/stk source/
>>> flbuf.cpp -o max-darwin/release-
>>> single/flbuf.opp_ppc
>>> source/flbuf.cpp: In member function 'int
>>> flext_single::buffer::Set(const t_symbol*, bool)':
>>> source/flbuf.cpp:143: error: invalid static_cast from type 'float*
>>> const' to type
>>> 'flext_single::buffer::Element*'
>>> source/flbuf.cpp: In member function 'bool
>>> flext_single::buffer::Update()':
>>> source/flbuf.cpp:191: error: invalid static_cast from type 'float*
>>> const' to type
>>> 'flext_single::buffer::Element*'
>>> source/flbuf.cpp: In member function 'void
>>> flext_single::buffer::Frames(int, bool, bool)':
>>> source/flbuf.cpp:279: error: no matching function for call to
>>> 'flext_single::CopySamples(t_sample*&,
>>> flext_single::buffer::Element*&, int&)'
>>> source/flsupport.h:422: note: candidates are: static void
>>> flext_single::CopySamples(t_sample*, const
>>> t_sample*, int)
>>> source/flbuf.cpp:295: error: no matching function for call to
>>> 'flext_single::CopySamples(flext_single::buffer::Element*&,
>>> t_sample*&, int&)'
>>> source/flsupport.h:422: note: candidates are: static void
>>> flext_single::CopySamples(t_sample*, const
>>> t_sample*, int)
>>> source/flbuf.cpp:297: error: no matching function for call to
>>> 'flext_single::ZeroSamples(flext_single::buffer::Element*, int)'
>>> source/flsupport.h:428: note: candidates are: static void
>>> flext_single::ZeroSamples(t_sample*, int)
>>> source/flbuf.cpp:300: error: no matching function for call to
>>> 'flext_single::ZeroSamples(flext_single::buffer::Element*&, int&)'
>>> source/flsupport.h:428: note: candidates are: static void
>>> flext_single::ZeroSamples(t_sample*, int)
>>> make[1]: *** [max-darwin/release-single/flbuf.opp_ppc] Error 1
>>> make: *** [build-release-single] Error 2
>>>
>>> Thanks for you help !
>>>
>>> _______________________________________________
>>> http://grrrr.org/ext/flext
>>>
>>> flext mailing list
>>> flext at grrrr.org
>>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
>>
>> _______________________________________________
>> http://grrrr.org/ext/flext
>>
>> flext mailing list
>> flext at grrrr.org
>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
>
>
> __________________________________________________
> CCRMA
>



More information about the flext mailing list