Giter Site home page Giter Site logo

GLFW setup on OSX about demos HOT 8 OPEN

vulkan-go avatar vulkan-go commented on May 28, 2024
GLFW setup on OSX

from demos.

Comments (8)

xlab avatar xlab commented on May 28, 2024 1

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.

from demos.

joeblew99 avatar joeblew99 commented on May 28, 2024

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

from demos.

xlab avatar xlab commented on May 28, 2024

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.

from demos.

xlab avatar xlab commented on May 28, 2024

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

from demos.

joeblew99 avatar joeblew99 commented on May 28, 2024

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 ?

from demos.

xlab avatar xlab commented on May 28, 2024

@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.

from demos.

xlab avatar xlab commented on May 28, 2024

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.

from demos.

tsal avatar tsal commented on May 28, 2024

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.

from demos.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.