Comments (6)
Windows is supported if you place and name the dll correctly. It looks like you have a couple different problems:
- The code you're using is for GLFW 2, but you downloaded GLFW 3 binaries. The two versions are incompatible.
- I don't think Julia will know to look in
C:\Program Files\GLFW
.
I suggest you try my glfw3
branch. It's still under development, but it handles library installation for you. The following should install everything and then display an empty window:
Pkg.checkout("GLFW", "glfw3")
Pkg.build("GLFW")
include(Pkg.dir("GLFW", "examples/simple.jl"))
Let me know how it goes, and feel free to reopen this issue if you still have a problem that seems Windows-specific.
from glfw.jl.
Ah. Okay. I was originally just using the one that the JuliaStudio GUI installs by default.
Long story short, I got everything working by manually copying the DLLs and archive to C:\Users\[username]\.julia\GLFW\deps\
before running Pkg.build, but the auto-installer never worked for me.
Running Pkg.build("GLFW") kept giving me the error
could not start process
which curl: no such file or directory (ENOENT) at C:\Users\[username]\.julia\GLFW\deps\build.jl:9
which appears to be build.jl trying to download your GLFW archive using cURL.
I installed cURL, but still get the error. Isn't which
a Linux command?
from glfw.jl.
Final note: the auto-installer works if I install cURL
and GnuWin32 which
. Not really a high priority, but it might be nice having an error message explaining what the problem is and how to solve it. :)
from glfw.jl.
build.jl
uses Base.download
, which is probably what was emitting the error messages. It works for me with the v0.2.1 self-extracting archive from julialang.org because curl
(and other handy utils like 7z
) are part of the distribution. Does JuliaStudio not provide them?
from glfw.jl.
I just downloaded and installed Julia Studio 0.4.4 and it worked for me. It looks like they distribute the tools. Are you using an older version or something?
from glfw.jl.
No...I just installed Julia Studio 4.4 a few days ago. None of the included tools are on my system path, though, so that might be the problem. Once I added them by hand everything worked fine. Perhaps JS tried to add them to the path and silently failed?
In any event, it looks like just another weird environment bug on my end. Sorry for the bother. :)
from glfw.jl.
Related Issues (20)
- Segfaulting on GLFW.CreateWindow with Julia v1.5.0 HOT 12
- GLFW.SetWindowUserPointer/GLFW.GetWindowUserPointer HOT 3
- [Vulkan] Creating window surface cannot work on macOS HOT 1
- EGL support? HOT 1
- inaccurate performance counters HOT 1
- Compatability with julia-vscode? HOT 1
- libGL error: failed to load driver: swrast HOT 12
- test fail for Manjaro on Renoir APU HOT 1
- Don't know how to install this?
- TagBot trigger issue HOT 1
- No matching fbConfigs or visuals found HOT 3
- How to add new user data to the window context?
- Going to fullscreen causes a crash on macOS (Apple M1) HOT 1
- Please replace deprecated Makie.primary_resolution() with GLFW.jl cross-platform function
- GLFWError (API_UNAVAILABLE): WGL: The driver does not appear to support OpenGL HOT 1
- GL dependencies kill CI capacity HOT 2
- GLFW crashes entire julia session after re-attaching in tmux HOT 2
- unable to load GLMakie HOT 2
- GLFW couldn't create an OpenGL window. HOT 8
- NSInternalInconsistencyException when calling display() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfw.jl.