OSX Mojave/Xcode 10 - GLFW3 Quickfix

Started by MikeHart, September 28, 2018, 17:59:47

Previous topic - Next topic

MikeHart

As expected, Cerberus X in its current setup had problems building for OSX Mojave with XCode. So I spend 10 minutes and was able to modify the template and also added a line to let content render right away without the need to move the window. You can get the modified target here:


https://www.cerberus-x.com/community/threads/osx-mojave-quickfix.538/

Derron

Might you add what changes were needed? Maybe this helps IWasAdam to get his monkey2-fork-thing to do stuff.


bye
Ron

MikeHart

Monkey 2 uses SDL so I don't think it will apply. But...


#1) I loaded the xcode project, set its target to 10.9 and made the suggested modifications by Xcode doing them automatically.
#2) In the window.c file of the targets glfw/src folder, I added a call to glfwPollEvents at the end of the glfwCreateWindow function.


That is all.




Derron

That "poll events" thing might be the reason why prior a "move window" was needed ... good job as always.

bye
Ron

MikeHart

Just tested CX with XCode 10 and the ios12 simulator, works fine here.

iWasAdam

Thanks for the hints on where to look. Monkey2 is a different beast (internally) from monkey1. And there are two distinct opengl version being used:
GLES (for the older versions) and OpenGL (for the latter ones) Neither of which use GLFW!

:-[

therevills


iWasAdam

i've fixed the 'window needs moving' issue - which is a different fix from the one Mark uses.
I'm spending some time with the editor adding some functionality (cleaning up the code view and adding reverse find in sources) before moving onto looking at the OpenGL stuff itself as there are some things I would like to get resolved this time around :)

MikeHart


iWasAdam

sorta slow progress as I'm working with Monkey2 1.02 for the editor - after that Mark internally changed the code to prevent my editor from operating. So I'm also working on attempting to update it's code so it can be compiled on a newer version.  ;D

I've been tidying up some of the code overview code so it gives better results - which is alway fun.

The reverse search is mostly working, but I want to try and implement it further to parse through the entire module code. I might take the MS approach here and build a database though. It's more a convenience for me, as only I use the editor...