Skip to content

Instantly share code, notes, and snippets.

@tk3369
Created July 22, 2021 14:51
Show Gist options
  • Save tk3369/5ded9c31ba7b5b23b5e3b55384372209 to your computer and use it in GitHub Desktop.
Save tk3369/5ded9c31ba7b5b23b5e3b55384372209 to your computer and use it in GitHub Desktop.
GameZero workshop notes
# Installation issue
```
Precompiling project...
✗ SimpleDirectMediaLayer
8 dependencies successfully precompiled in 19 seconds (53 already precompiled)
1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package
julia> using Pkg
julia> Pkg.precompile()
julia> using SimpleDirectMediaLayer
ERROR: ArgumentError: Package SimpleDirectMediaLayer not found in current path:
- Run `import Pkg; Pkg.add("SimpleDirectMediaLayer")` to install the SimpleDirectMediaLayer package.
Stacktrace:
[1] require(into::Module, mod::Symbol)
@ Base ./loading.jl:871
[2] eval
@ ./boot.jl:360 [inlined]
[3] eval
@ ./Base.jl:39 [inlined]
[4] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:149
[5] (::VSCodeServer.var"#69#71"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:115
[6] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:491
[7] with_logger
@ ./logging.jl:603 [inlined]
[8] (::VSCodeServer.var"#68#70"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:116
[9] #invokelatest#2
@ ./essentials.jl:708 [inlined]
[10] invokelatest(::Any)
@ Base ./essentials.jl:706
[11] macro expansion
@ ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
[12] (::VSCodeServer.var"#53#54")()
@ VSCodeServer ./task.jl:411
julia> Pkg.add("SimpleDirectMediaLayer")
Resolving package versions...
Updating `~/OpenSource/JuliaCon2021/GameZeroWorkshop/Project.toml`
[98e33af6] + SimpleDirectMediaLayer v0.2.1
No Changes to `~/OpenSource/JuliaCon2021/GameZeroWorkshop/Manifest.toml`
julia> using GameZero
[ Info: Precompiling GameZero [9da27670-f782-11e9-1da1-f53579315bfe]
ERROR: LoadError: InitError: could not load library "/Users/tomkwong/.julia/artifacts/b2c1c8e2d3d86c763e3b55512f69898f1808c084/lib/libSDL2_ttf.dylib"
dlopen(/Users/tomkwong/.julia/artifacts/b2c1c8e2d3d86c763e3b55512f69898f1808c084/lib/libSDL2_ttf.dylib, 1): Library not loaded: @rpath/libbz2.1.0.6.dylib
Referenced from: /Users/tomkwong/.julia/artifacts/b2c1c8e2d3d86c763e3b55512f69898f1808c084/lib/libSDL2_ttf-2.0.0.dylib
Reason: image not found
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl ./libdl.jl:114
[2] dlopen (repeats 2 times)
@ ./libdl.jl:114 [inlined]
[3] __init__()
@ SDL2_ttf_jll ~/.julia/packages/SDL2_ttf_jll/ssRR4/src/wrappers/x86_64-apple-darwin14.jl:48
[4] _include_from_serialized(path::String, depmods::Vector{Any})
@ Base ./loading.jl:674
[5] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
@ Base ./loading.jl:760
[6] _require(pkg::Base.PkgId)
@ Base ./loading.jl:998
[7] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:914
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:901
[9] include
@ ./Base.jl:386 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base ./loading.jl:1213
[11] top-level scope
@ none:1
[12] eval
@ ./boot.jl:360 [inlined]
[13] eval(x::Expr)
@ Base.MainInclude ./client.jl:446
[14] top-level scope
@ none:1
during initialization of module SDL2_ttf_jll
in expression starting at /Users/tomkwong/.julia/packages/SimpleDirectMediaLayer/WmGZl/src/SimpleDirectMediaLayer.jl:2
ERROR: LoadError: Failed to precompile SimpleDirectMediaLayer [98e33af6-2ee5-5afd-9e75-cbc738b767c4] to /Users/tomkwong/.julia/compiled/v1.6/SimpleDirectMediaLayer/jl_aT89sS.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
@ Base ./loading.jl:1360
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1306
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1021
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:914
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:901
[7] include
@ ./Base.jl:386 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
@ Base ./loading.jl:1213
[9] top-level scope
@ none:1
[10] eval
@ ./boot.jl:360 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude ./client.jl:446
[12] top-level scope
@ none:1
in expression starting at /Users/tomkwong/.julia/packages/GameZero/JN07Y/src/GameZero.jl:1
ERROR: Failed to precompile GameZero [9da27670-f782-11e9-1da1-f53579315bfe] to /Users/tomkwong/.julia/compiled/v1.6/GameZero/jl_lrzyrv.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
@ Base ./loading.jl:1360
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1306
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1021
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:914
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:901
[7] eval
@ ./boot.jl:360 [inlined]
[8] eval
@ ./Base.jl:39 [inlined]
[9] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:149
[10] (::VSCodeServer.var"#69#71"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:115
[11] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:491
[12] with_logger
@ ./logging.jl:603 [inlined]
[13] (::VSCodeServer.var"#68#70"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:116
[14] #invokelatest#2
@ ./essentials.jl:708 [inlined]
[15] invokelatest(::Any)
@ Base ./essentials.jl:706
[16] macro expansion
@ ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
[17] (::VSCodeServer.var"#53#54")()
@ VSCodeServer ./task.jl:411
julia> using GameZero
[ Info: Precompiling GameZero [9da27670-f782-11e9-1da1-f53579315bfe]
ERROR: LoadError: InitError: could not load library "/Users/tomkwong/.julia/artifacts/b2c1c8e2d3d86c763e3b55512f69898f1808c084/lib/libSDL2_ttf.dylib"
dlopen(/Users/tomkwong/.julia/artifacts/b2c1c8e2d3d86c763e3b55512f69898f1808c084/lib/libSDL2_ttf.dylib, 1): Library not loaded: @rpath/libbz2.1.0.6.dylib
Referenced from: /Users/tomkwong/.julia/artifacts/b2c1c8e2d3d86c763e3b55512f69898f1808c084/lib/libSDL2_ttf-2.0.0.dylib
Reason: image not found
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl ./libdl.jl:114
[2] dlopen (repeats 2 times)
@ ./libdl.jl:114 [inlined]
[3] __init__()
@ SDL2_ttf_jll ~/.julia/packages/SDL2_ttf_jll/ssRR4/src/wrappers/x86_64-apple-darwin14.jl:48
[4] _include_from_serialized(path::String, depmods::Vector{Any})
@ Base ./loading.jl:674
[5] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
@ Base ./loading.jl:760
[6] _require(pkg::Base.PkgId)
@ Base ./loading.jl:998
[7] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:914
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:901
[9] include
@ ./Base.jl:386 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base ./loading.jl:1213
[11] top-level scope
@ none:1
[12] eval
@ ./boot.jl:360 [inlined]
[13] eval(x::Expr)
@ Base.MainInclude ./client.jl:446
[14] top-level scope
@ none:1
during initialization of module SDL2_ttf_jll
in expression starting at /Users/tomkwong/.julia/packages/SimpleDirectMediaLayer/WmGZl/src/SimpleDirectMediaLayer.jl:2
ERROR: LoadError: Failed to precompile SimpleDirectMediaLayer [98e33af6-2ee5-5afd-9e75-cbc738b767c4] to /Users/tomkwong/.julia/compiled/v1.6/SimpleDirectMediaLayer/jl_aT89sS.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
@ Base ./loading.jl:1360
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1306
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1021
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:914
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:901
[7] include
@ ./Base.jl:386 [inlined]
[8] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
@ Base ./loading.jl:1213
[9] top-level scope
@ none:1
[10] eval
@ ./boot.jl:360 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude ./client.jl:446
[12] top-level scope
@ none:1
in expression starting at /Users/tomkwong/.julia/packages/GameZero/JN07Y/src/GameZero.jl:1
ERROR: Failed to precompile GameZero [9da27670-f782-11e9-1da1-f53579315bfe] to /Users/tomkwong/.julia/compiled/v1.6/GameZero/jl_lrzyrv.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY)
@ Base ./loading.jl:1360
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1306
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1021
[5] require(uuidkey::Base.PkgId)
@ Base ./loading.jl:914
[6] require(into::Module, mod::Symbol)
@ Base ./loading.jl:901
[7] eval
@ ./boot.jl:360 [inlined]
[8] eval
@ ./Base.jl:39 [inlined]
[9] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:149
[10] (::VSCodeServer.var"#69#71"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:115
[11] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:491
[12] with_logger
@ ./logging.jl:603 [inlined]
[13] (::VSCodeServer.var"#68#70"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/repl.jl:116
[14] #invokelatest#2
@ ./essentials.jl:708 [inlined]
[15] invokelatest(::Any)
@ Base ./essentials.jl:706
[16] macro expansion
@ ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
[17] (::VSCodeServer.var"#53#54")()
@ VSCodeServer ./task.jl:411
julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment