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

GLFWError (API_UNAVAILABLE): WGL: The driver does not appear to support OpenGL #227

Open
StefanPofahl opened this issue Mar 29, 2023 · 1 comment

Comments

@StefanPofahl
Copy link

Following fails:

 using GLFW; GLFW.Window()

my version:

Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × Intel(R) Xeon(R) Silver 4215R CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, cascadelake)
  Threads: 1 on 16 virtual cores

I have installed the current version of GLFW from the master branch:

julia> Pkg.status("GLFW")
Status `C:\Users\caxlabor\.julia\environments\v1.8\MyAppInteractiveNyquistCompileEnv\Project.toml`
  [f7f18e0c] GLFW v3.4.1 `https://github.com/JuliaGL/GLFW.jl.git#master`

The error message is:

ERROR: GLFWError (API_UNAVAILABLE): WGL: The driver does not appear to support OpenGL
Stacktrace:
 [1] _ErrorCallbackWrapper(code::Int32, description::Cstring)
   @ GLFW C:\Users\caxlabor\.julia\packages\GLFW\v6ubA\src\callback.jl:43
 [2] CreateWindow(width::Int64, height::Int64, title::String, monitor::GLFW.Monitor, share::GLFW.Window)
   @ GLFW C:\Users\caxlabor\.julia\packages\GLFW\v6ubA\src\glfw3.jl:514
 [3] GLFW.Window(; name::String, resolution::Tuple{Int64, Int64}, debugging::Bool, major::Int64, minor::Int64, windowhints::Vector{Tuple{UInt32, Int64}}, contexthints::Vector{Tuple{UInt32, Integer}}, visible::Bool, focus::Bool, fullscreen::Bool, monitor::Nothing, share::GLFW.Window)
   @ GLFW C:\Users\caxlabor\.julia\packages\GLFW\v6ubA\src\glfw3.jl:354
 [4] GLFW.Window()
   @ GLFW C:\Users\caxlabor\.julia\packages\GLFW\v6ubA\src\glfw3.jl:312
 [5] top-level scope
   @ REPL[5]:1

Please let me know, if more information is needed to track down the issue.

@musm
Copy link
Contributor

musm commented Jul 13, 2023

On my system it works

julia> versioninfo()
Julia Version 1.9.2
Commit e4ee485e90 (2023-07-05 09:39 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × AMD Ryzen 9 5900HS with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, znver3)
  Threads: 16 on 16 virtual cores
Environment:
  JULIA_EDITOR = code.cmd
  JULIA_NUM_THREADS = auto

Status `C:\Users\Mus\.julia\environments\v1.9\Project.toml`
  [f7f18e0c] GLFW v3.4.1

I also tried master it also works on my system.

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

2 participants