Randonee / BasisApple

Native Apple application development with haxe
39 stars 4 forks source link

error loading module with basisApple and openfl #4

Closed sakari closed 10 years ago

sakari commented 10 years ago

Is it at all possible to use basis with openfl?

I have self built basis and basisApple from v0.1.0 installed

basis: [0.0.3-alpha]
basisApple: [0.0.3-alpha]

when build with openfl I get error

Error : Could not load module basis@nswindow_initWithContentRectStyleMaskBackingDefer__4

The full compile output can be found at https://gist.github.com/sakari/6410868

Would you have any clue on how to make this work?

Thanks

sakari commented 10 years ago

right. I'll need to point openfl to the basisapple.ndll. In the off chance that you would have encountered this: any ideas how to do it?

Randonee commented 10 years ago

You would need to do more than just include the ndll. OpenFL and Basis create xcode projects, include specific files in it and have different build settings. You would need to figure out how to create a xcode project that worked for both. Once that is done you would need to start both. BasisApple is started from a generated BasisMain.hx file. You could probably start Basis from OpenFL by calling the basis_initBasis() function which is what the BasisMain.hx file does. The hard part will be getting the projects set up correctly.

sakari commented 10 years ago

crap. Was hoping for something sweet and simple. Back to the drawing board then...

Thanks