Skip to content
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

GLFW setup on OSX #4

Open
joeblew99 opened this issue Jun 28, 2017 · 8 comments
Open

GLFW setup on OSX #4

joeblew99 opened this issue Jun 28, 2017 · 8 comments
Assignees

Comments

@joeblew99
Copy link

Because the setup is a bit heavy what do you think about a docker building to help people try this out ?

I had trouble with some of the dependencies.

@joeblew99
Copy link
Author

At least it will allow windows, Linux and android builds..
For osx and iOS there is no easy way , but I use a vagrant box that has osx in it. It works very well and is very easy to setup

@xlab
Copy link
Member

xlab commented Jun 28, 2017

I don't think Docker is a good pipeline for building desktop apps.
It's not that hard to download an .exe from the official site of GLFW, adding Docker into this won't help a bit.

I had trouble with some of the dependencies.

Then please share your troubles in an issue, so I could improve the docs for the others.

android builds..

Android build requires Android NDK & SDK, not Docker.

@xlab xlab closed this as completed Jun 28, 2017
@xlab xlab reopened this Jun 28, 2017
@xlab
Copy link
Member

xlab commented Jun 28, 2017

P.S. you're free to share any scripts that will ease the setup

@joeblew99
Copy link
Author

joeblew99 commented Jul 4, 2017

thanks for the advice.
My issue stemmed from getting GLFW setup, so yes forget Docker.
I have android sdk and ndk all setup and been using it for a while.
So back to the real issue:
The issue for me was getting GLFW setup. I am on OSX.
Your Readme says i need GLFW 3.3
I tried brew install but could not get version 3.3 as they dont have it yet.
So i tried to compile and just got lost...
Maybe add to the make file? or maybe some newbie instructions in the readme ?

@joeblew99 joeblew99 changed the title Docker build GLFW setup on OSX Jul 4, 2017
@xlab
Copy link
Member

xlab commented Jul 4, 2017

@joeblew99

I was writing about master branch in the repo of GLFW, because 3.3 is needed but not yet released. You'll need to compile it with moltenVK support enabled. It autodetects moltenVK.

For OS X / macOS you'll need to install the latest GLFW 3.3 from master https://github.com/glfw/glfw

Which is

git clone https://github.com/glfw/glfw

and follow the GLFW compilation guide using cmake.

@xlab
Copy link
Member

xlab commented Aug 25, 2017

Update about Docker and cross-platform setups

NVIDIA has a Docker tool for CUDA deployments:
https://github.com/NVIDIA/nvidia-docker

They have a new nvidia-docker 2.0 currently in works, see:

http://on-demand.gputechconf.com/gtc/2017/presentation/s7177-abecassis-calmels-containers-gpu-accelerated-applications.pdf

(https://github.com/NVIDIA/libnvidia-container)

That won't be so cumbersome as the first version for CUDA, it will also support ARM and Vulkan. So until then, we will run barebones.

@tsal
Copy link

tsal commented Aug 17, 2019

update: glfw 3.3 is installed by default on homebrew now with brew install glfw; however, the vulkancube_glfw demo app fails with a createLayer error. I don't know if this is go-related (v1.12.x) or I've misunderstood the info regarding cmake / the makefile. It built just fine, and detects the hardware through vulkan, it just can't open a window.

@xlab
Copy link
Member

xlab commented Aug 18, 2019

It's very great news that 3.3 has been released! Waited for that a couple of years.
We should switch to go-gettable glfw instead of brew installed, but go-gl team has troubles updating go-gl/glfw#219

So I'll just research what could possibly cause your error using the current set of packages.

@xlab xlab self-assigned this Aug 18, 2019
@xlab xlab pinned this issue Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants