[fltk.coredev] Building FLTK for iOS

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
Previous Message ]New Message | Reply ]Next Message ]

Building FLTK for iOS Mo_Al_ 23:52 Oct 22 top right image

The fltk port to android works quite well (after adapting to some resolution issues). It would be great if fltk would also target iOS.
My initial trial to build fltk for iOS, some issues appear. Some headers aren’t available on iOS like:
 - ApplicationServices, however most functions and types are also present in the CoreGraphics header. 
- The Cocoa header will have to be replaced with UIKit headers. 
- Most Cocoa types have an NS prefix while corresponding UIKit types have a UI prefix. Maybe this could be addressed with some ifdefs or by conditional compilation using the cocoa header for macos vs the uikit header for ios, this can be done by including the TargetConditionals header, then checking for TARGET_OS_OSX vs TARGET_OS_IOS. Or maybe by creating a separate ios driver, however the cmake scripts would have to replace APPLE with CMAKE_SYSTEM_NAME STREQUAL Darwin/iOS. 

I would be interested to know if anyone was able to build for iOS and if they could provide input. 
Thank you

You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/b05e9fe0-40ff-4d1e-a21a-558bbff3cc26o%40googlegroups.com.
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.