[flext] Trying to compile gendy~ as a static library for iOS

Orestis Papadopoulos orjpap at gmail.com
Tue Jul 11 23:54:00 CEST 2017


64-bit

o~

> Thomas Grill <mailto:gr at grrrr.org>
> 12 July 2017 at 00:52
> Hi,
> congratulations!
>
>
> is this a 32-bit or a 64-bit architecture? I suspect the latter....
>
> best, Thomas
>
> Orestis Papadopoulos <mailto:orjpap at gmail.com>
> 12 July 2017 at 00:51
> Compiled and running like a charm!!!
>
> I just had to use __sync_bool_compare_and_swap_16 instead of 
> __sync_bool_compare_and_swap_8 when there is an arm architecture
>
> You just made a sound designer happy.
>
> I'll gather my findings and make a pull request soon.
>
> Orestis
>
> Thomas Grill <mailto:gr at grrrr.org>
> 12 July 2017 at 00:17
>
> Interesting.
> AFAIR, there are gcc extensions to force data alignment to certain 
> byte multiples.
> The syntax is something like "__attribute__ ((aligned (16)))", see 
> https://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Variable-Attributes.html#Variable-Attributes
>
> best, Thomas
>
> Orestis Papadopoulos <mailto:orjpap at gmail.com>
> 12 July 2017 at 00:13
>>
>> please reply through the flext list (cc'd now).
>
>
> Sorry for that, this has to be about the first time I'm posting on a 
> mailing list.
>
>>
>> I am pretty sure flext never has been used on iOS. I can't really 
>> tell you, which includes are necessary or possible on this platform.
>
>
> So far it's going well, it works on the iphone simulators and builds 
> just fine with libpd.
>
> On the device, I get an EXC_ARM_DA_ALIGN error in cas.hpp during this 
> function call:
>
> return __sync_bool_compare_and_swap_8(reinterpret_cast<volatile long 
> long*>(addr), old.l, nw.l);
>
> this is probably some architecture specific stuff that I'll have to fix.
>
>>
>> However, i am thankful for pull requests regarding an update for this 
>> platform.
>
>
> I'm planning on a pull request as soon as I find a solid, reproducible 
> process for iOS. So far it's been mostly hacking with your help and 
> whatever I could find online.
>
> Orestis
>
> Thomas Grill wrote:
>>
>> Hi Orestis,
>
>
>>
>> best, Thomas
>>
>> --
>> Thomas Grill
>> http://grrrr.org
>>
>>
>>
>>>
>>> Am 11.07.2017 um 21:22 schrieb Orestis Papadopoulos<orjpap at gmail.com>:
>>>
>>> Thanks for the quick response Thomas,
>>>
>>> FLEXT_INLINE looks promising and I think it'll be the solution!
>>>
>>> The only problem is that
>>>
>>> Now I get an error not being able to find Carbon.h
>>>
>>> #elif FLEXT_OS == FLEXT_OS_MAC
>>>     #if FLEXT_OSAPI != FLEXT_OSAPI_MAC_MACH
>>>         #include<MacMemory.h>
>>>     #else
>>>         #include<Carbon/Carbon.h>
>>>
>>> And when I included the carbon framework it just leads to more wrong 
>>> includes and etc. inside the carbon framework.
>>>
>>> Orestis
>>>
>>> Thomas Grill wrote:
>>>>
>>>> Hi Orestis,
>>>> it seems to me you are missing the flext library "libflext-pd_s.a".
>>>> An alternative, fairly new approach is to compile flext as C++ 
>>>> templates without any library, with the macro FLEXT_INLINE defined.
>>>> best, Thomas
>>>>
>>>> --
>>>> Thomas Grill
>>>> http://grrrr.org
>>>>
>>>>
>>>>
>>>>>
>>>>> Am 11.07.2017 um 20:17 schrieb Orestis Papadopoulos<orjpap at gmail.com>:
>>>>>
>>>>> Hi Everyone,
>>>>>
>>>>>       I'm trying to compile gendy~ as a static library that can be 
>>>>> used in an iOS app (which uses libpd).
>>>>>
>>>>> The steps I followed in order to compile are:
>>>>>
>>>>> 1. I used the example Xcode project in flext-master
>>>>>
>>>>> 2. Then added to it the gendy~ sourcefiles
>>>>>
>>>>> 3. Created a new target ->   cocoa static library
>>>>>
>>>>> 4. Inserted the correct flags (FLEXT_SYS=2 etc) / header search 
>>>>> paths etc.
>>>>>
>>>>> 5. Targeted iphone 5 simulator to test
>>>>>
>>>>> 6. Drag 'n' dropped the produced gendy~.a file.
>>>>>
>>>>> The errors I get when I try to call gendy_tilde_setup() are about 
>>>>> 40 errors in the form of:
>>>>>
>>>>> Undefined symbols for architecture i386:
>>>>>     "flext_base_single::m_loadbang()", referenced from:
>>>>>         vtable for gendy in gendy~.a(gendy~.o)
>>>>>     "flext_base_single::CbClick()", referenced from:
>>>>>         vtable for gendy in gendy~.a(gendy~.o)
>>>>>
>>>>> What am I missing here?
>>>>>
>>>>> Thanks,
>>>>> Orestis
>>>>>
>>>>> _______________________________________________
>>>>> http://grrrr.org/ext/flext
>>>>>
>>>>> flext mailing list
>>>>> flext at grrrr.org
>>>>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
>>>>
>>>
>>
> Thomas Grill <mailto:gr at grrrr.org>
> 11 July 2017 at 22:25
> Hi Orestis,
> please reply through the flext list (cc'd now).
> I am pretty sure flext never has been used on iOS. I can't really tell 
> you, which includes are necessary or possible on this platform.
> However, i am thankful for pull requests regarding an update for this 
> platform.
> best, Thomas
>
> --
> Thomas Grill
> http://grrrr.org
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20170712/679ba02c/attachment.html>


More information about the flext mailing list