Hi, I have Julia 0.5.0 and I’m trying to get the GLFW package to work.
This is what happens:
[ko@wiley ~]$ julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-unknown-freebsd11.0
julia> import GLFW
julia> GLFW.CreateWindow(800, 600, "InexactError")
: CommandLine Error: Option 'track-memory' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
[ko@wiley ~]$
I installed the glfw library in its own, outside of Julia, and all the tests work fine.
The above problem seems to be with the call to function CreateWindow(…) in glfw3.jl.
I don’t understand enough about Julia’s internals to figure this out, but I have lots of other packages installed and all work fine. Thanks for any suggestions.
I certainly don’t understand enough of what’s going on, but wouldn’t the fact that GLFW works fine when built outside of Julia indicate that whatever drivers are being used are ok?
The graphics driver is xf86-video-ati-7.5.0, and the hardware is a Radeon HD 8570 chip. (Also, I am runing FreeBDS 11, not Linux.)
The bug goes away if you build Julia with clang on FreeBSD, instead of with gcc as recommended in the platform-specific instructions. I don’t understand the underlying reason, but that’s ok.
There is one residual problem, with ModernGL/src/ModernGL.jl, line 29: change is_linux() to is_unix(). Then Pkg.test(“GLFW”) passes.
The bug goes away if you build Julia with clang on FreeBSD, instead of with gcc as recommended in the platform-specific instructions.
Yes, Julia should be built with Clang on FreeBSD. The requirement to install GCC is for gfortran, which isn’t installed by default on modern versions of FreeBSD.
There is one residual problem, with ModernGL/src/ModernGL.jl, line 29: change is_linux() to is_unix(). Then Pkg.test(“GLFW”) passes.
Nice observation! I imagine the package maintainers would be quite grateful if you would be willing to submit a PR for that change.