-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
difficulties on macos, arm64 #1
Comments
Hi, The error you are getting is actually about a missing stub for the external function Alternatively the dune file present in that example folder shows how to create a window_stubs library from the C file and link it with an executable. |
Ah, thank you. to understand the role of so if e.g. I used lablgl I would not need an extra .c file? |
...and indeed, if I comment out the and a window opens and works perfectly 👍 thanks again! |
Exactly. You're welcome. ;) |
I had already
brew install glfw
first attempt to
opam instal glfw-ocaml
failed with:from this answer https://stackoverflow.com/a/67378304/202168 I fixed that by
export CPATH=/opt/homebrew/include
installed successfully
then I copied the code from example window.ml and tried to compile it:
I found a couple of answers:
the solution there seems to revolve around having a
CMakeLists.txt
file withtarget_link_libraries(<project> glfw)
but I have no idea how to relate that back to glfw-ocaml ...do you have any tips? thank you!
The text was updated successfully, but these errors were encountered: