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

Thomas Grill gr at grrrr.org
Tue Jul 11 21:25:45 CEST 2017


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



> 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
>> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://grrrr.org/pipermail/flext/attachments/20170711/395aff83/attachment.sig>


More information about the flext mailing list