Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on running examples #61

Closed
daxinnan opened this issue Jul 3, 2019 · 4 comments
Closed

Error on running examples #61

daxinnan opened this issue Jul 3, 2019 · 4 comments

Comments

@daxinnan
Copy link

daxinnan commented Jul 3, 2019

I add QML#master by these steps on my Ubuntu18.04.2:

$ git clone https://github.com/JuliaInterop/libcxxwrap-julia
$ mkdir libcxxwrap-julia-build
$ cd libcxxwrap-julia-build
$ cmake ../libcxxwrap-julia
$ make
and
$ cd ..
$ git clone https://github.com/barche/jlqml
$ mkdir jlqml-build
$ cd jlqml-build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/home/user_name/libcxxwrap-julia-build ../jlqml
$ make

then I set ENV.
But errors occurr when running examples.

julia> using QML
julia> include(joinpath(dirname(dirname(pathof(QML))), "example", "runexamples.jl"))
ERROR: LoadError: failed process: Process(`/home/user_name/julia-1.1.1/bin/julia -Cnative -J/home/user_name/julia-1.1.1/lib/julia/sys.so -g1 dynamiclist.jl`, ProcessExited(1)) [1]
Stacktrace:
 [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at ./error.jl:42
 [2] pipeline_error at ./process.jl:785 [inlined]
 [3] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:726
 [4] run at ./process.jl:724 [inlined]
 [5] (::getfield(Main, Symbol("##9#10")))() at /home/user_name/.julia/packages/QML/LP1vb/example/runexamples.jl:9
 [6] cd(::getfield(Main, Symbol("##9#10")), ::String) at ./file.jl:96
 [7] top-level scope at none:0
 [8] include at ./boot.jl:326 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1038
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] include(::String) at ./client.jl:403
 [12] top-level scope at none:0
in expression starting at /home/user_name/.julia/packages/QML/LP1vb/example/runexamples.jl:5
@daxinnan daxinnan changed the title Run examples Error on running examples Jul 3, 2019
@barche
Copy link
Collaborator

barche commented Jul 3, 2019

Can you run the examples individually? e.g. colors.jl should be one of the very simplest ones.

@daxinnan
Copy link
Author

daxinnan commented Jul 3, 2019

Can you run the examples individually? e.g. colors.jl should be one of the very simplest ones.

Yes! Examples were run successfully before this.

@barche
Copy link
Collaborator

barche commented Jul 3, 2019

So to be clear, environment variables should be set as:

ENV["JLCXX_DIR"]="/path/to/libcxxwrap-julia-build"
ENV["JLQML_DIR"]="/path/to/jlqml-build"

Then, because you are using the master versions of libcxxwrap-julia and jlqml, you should also use the master versions on the Julia side:

(v1.1) pkg> develop CxxWrap
(v1.1) pkg> develop QML

After that, the first few examples seem to run, but I did notice that you also need to add the Observables package (I forgot the dependency, it seems). I can then also run:

include(joinpath(dirname(dirname(pathof(QML))), "example", "gui.jl"))

@ufechner7
Copy link
Member

Works using QML 0.8

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

No branches or pull requests

3 participants