Giter VIP home page Giter VIP logo

Comments (6)

jayschwa avatar jayschwa commented on May 27, 2024

Windows is supported if you place and name the dll correctly. It looks like you have a couple different problems:

  1. The code you're using is for GLFW 2, but you downloaded GLFW 3 binaries. The two versions are incompatible.
  2. 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.

kwaegel avatar kwaegel commented on May 27, 2024

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.

kwaegel avatar kwaegel commented on May 27, 2024

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.

jayschwa avatar jayschwa commented on May 27, 2024

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.

jayschwa avatar jayschwa commented on May 27, 2024

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.

kwaegel avatar kwaegel commented on May 27, 2024

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)

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.