Closed mtolly closed 5 years ago
Can you try https://github.com/deech/fltkhs/tree/macOSGLContext? I'll merge it into master
if it works for you.
I needed to add
#include "Fl_Gl_WindowC.h"
to the includes at the top of Fl_Types.chs
, and I also needed a semicolon at the end of
typedef struct NSOpenGLContext* GLContext;
and then it works.
If you already have that fix in place locally do you mind PR'ing that to the branch. Appreciate your patience.
PR at #150 . Thank you for the quick fix!
If I clone current master (c55aa919) and edit
stack.yaml
withon Linux everything builds fine and I get a working GL demo app. But on Mac I get:
I think this is because in
platform_types.h
there's this (line 89):So the type is defined for Objective C and C++, but not the C context
c2hs
uses. I addedrezipped
fltk-master.zip
and it works. I'm not sure the best way to fix it for real though, is there a way to patch the file after unzipping? Or could the definition go somewhere else likeFl_Types.h
?