Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

GLFW had build errors #163

Open
wucutin opened this issue Apr 16, 2017 · 6 comments
Open

GLFW had build errors #163

wucutin opened this issue Apr 16, 2017 · 6 comments

Comments

@wucutin
Copy link

wucutin commented Apr 16, 2017

julia> versioninfo()
Julia Version 0.6.0-pre.beta.121
Commit c8026a9 (2017-04-13 02:38 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)

julia> using GLVisualize

WARNING: deprecated syntax "typealias GLBoundingBox AABB{Float32}" at /home/liu/.julia/v0.6/GLVisualize/src/GLVisualize.jl:49.
Use "const GLBoundingBox = AABB{Float32}" instead.
INFO: Precompiling module GLVisualize.

WARNING: deprecated syntax "typealias GLBoundingBox AABB{Float32}" at /home/liu/.julia/v0.6/GLVisualize/src/GLVisualize.jl:49.
Use "const GLBoundingBox = AABB{Float32}" instead.
ERROR: LoadError: could not open file /home/liu/.julia/v0.6/GLFW/src/../deps/deps.jl
Stacktrace:
[1] include_from_node1(::String) at ./loading.jl:539
[2] include(::String) at ./sysimg.jl:14
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GLFW/src/GLFW.jl, in expression starting on line 5
ERROR: LoadError: Failed to precompile GLFW to /home/liu/.julia/lib/v0.6/GLFW.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:673
[2] require(::Symbol) at ./loading.jl:431
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GLVisualize/src/GLVisualize.jl, in expression starting on line 4
ERROR: Failed to precompile GLVisualize to /home/liu/.julia/lib/v0.6/GLVisualize.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:673
[2] require(::Symbol) at ./loading.jl:460

julia> Pkg.build("GLFW")
INFO: Building GLFW
INFO: Attempting to Create directory /home/liu/.julia/v0.6/GLFW/deps/downloads
INFO: Directory /home/liu/.julia/v0.6/GLFW/deps/downloads already created
INFO: Downloading file https://github.com/glfw/glfw/archive/3.2.1.tar.gz
INFO: Done downloading file https://github.com/glfw/glfw/archive/3.2.1.tar.gz
INFO: Attempting to Create directory /home/liu/.julia/v0.6/GLFW/deps/src
INFO: Directory /home/liu/.julia/v0.6/GLFW/deps/src already created
INFO: Attempting to Create directory /home/liu/.julia/v0.6/GLFW/deps
INFO: Directory /home/liu/.julia/v0.6/GLFW/deps already created
INFO: Path /home/liu/.julia/v0.6/GLFW/deps/src/glfw-3.2.1 already created
INFO: Changing Directory to /home/liu/.julia/v0.6/GLFW/deps/src/glfw-3.2.1
-- Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
-- Using X11 for window creation
CMake Error at CMakeLists.txt:222 (message):
The RandR library and headers were not found

-- Configuring incomplete, errors occurred!
See also "/home/liu/.julia/v0.6/GLFW/deps/src/glfw-3.2.1/CMakeFiles/CMakeOutput.log".
See also "/home/liu/.julia/v0.6/GLFW/deps/src/glfw-3.2.1/CMakeFiles/CMakeError.log".
================================[ ERROR: GLFW ]=================================

LoadError: failed process: Process(cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/home/liu/.julia/v0.6/GLFW/deps/usr -DGLFW_BUILD_DOCS=OFF -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF ., ProcessExited(1)) [1]

@SimonDanisch
Copy link
Member

I think this happens, when you forget to add these packages:

sudo apt-get install xorg-dev libglu1-mesa-dev

@wucutin
Copy link
Author

wucutin commented Apr 16, 2017

@SimonDanisch Thank you very much, after follow your suggestion, Pkg.build success, but when I using GLVisuallize package, comes the new error:

ERROR: LoadError: LoadError: invalid subtyping in definition of AbstractMesh
Stacktrace:
[1] include_from_node1(::String) at ./loading.jl:539
[2] include(::String) at ./sysimg.jl:14
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GeometryTypes/src/types.jl, in expression starting on line 9
while loading /home/liu/.julia/v0.6/GeometryTypes/src/GeometryTypes.jl, in expression starting on line 35
ERROR: LoadError: Failed to precompile GeometryTypes to /home/liu/.julia/lib/v0.6/GeometryTypes.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:673
[2] require(::Symbol) at ./loading.jl:431
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GLAbstraction/src/GLAbstraction.jl, in expression starting on line 7
ERROR: LoadError: Failed to precompile GLAbstraction to /home/liu/.julia/lib/v0.6/GLAbstraction.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:673
[2] require(::Symbol) at ./loading.jl:431
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GLWindow/src/GLWindow.jl, in expression starting on line 6
ERROR: LoadError: Failed to precompile GLWindow to /home/liu/.julia/lib/v0.6/GLWindow.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:673
[2] require(::Symbol) at ./loading.jl:431
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GLVisualize/src/GLVisualize.jl, in expression starting on line 5
ERROR: Failed to precompile GLVisualize to /home/liu/.julia/lib/v0.6/GLVisualize.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:673
[2] require(::Symbol) at ./loading.jl:460

@SimonDanisch
Copy link
Member

Oh , didn't realize that you're on 0.6.
0.6 support is work in progress: #159

@wucutin
Copy link
Author

wucutin commented Apr 16, 2017

after I free and update the GLWindow, still failed to precompile it.

julia> using GLVisualize

WARNING: both FixedSizeArrays and GeometryTypes export "Vec"; uses of it in module GLWindow must be qualified
ERROR: LoadError: LoadError: UndefVarError: Vec not defined
Stacktrace:
[1] include_from_node1(::String) at ./loading.jl:539
[2] include(::String) at ./sysimg.jl:14
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GLWindow/src/types.jl, in expression starting on line 20
while loading /home/liu/.julia/v0.6/GLWindow/src/GLWindow.jl, in expression starting on line 21
ERROR: LoadError: Failed to precompile GLWindow to /home/liu/.julia/lib/v0.6/GLWindow.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:673
[2] require(::Symbol) at ./loading.jl:431
[3] include_from_node1(::String) at ./loading.jl:539
[4] include(::String) at ./sysimg.jl:14
[5] anonymous at ./:2
while loading /home/liu/.julia/v0.6/GLVisualize/src/GLVisualize.jl, in expression starting on line 5

@SimonDanisch
Copy link
Member

... 0.6 is not supported!

@wucutin
Copy link
Author

wucutin commented Apr 16, 2017

@SimonDanisch Thank your time!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants