[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-14 Thread Andreas Lobinger
Hello colleagues, On Friday, March 11, 2016 at 4:35:27 PM UTC+1, Maurice Diamantini wrote: > > So I wonder if there is some interest for a QML binding which would allows > Julia code to display simple QML file (with callback to Julia methods!). > ...That seems to be a true Julia GSOC candidate p

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-15 Thread Bart Janssens
I just couldn't resist taking a stab at this using CppWrapper. At https://github.com/barche/QML.jl there is a small example on how to launch a QML file from Julia (tested in v0.4). To make this useful, we would need to add some kind of interface to the "embedding julia" interface, to allow bind

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-18 Thread Bart Janssens
This could be either a missing Qt package, or the version is not recent enough. I don't use any recent QML commands, so it's safe to use QtQuick 2.0 and Controls and Layouts version 1.0. I have updated the main.qml in the repo. If you pass just QString("main.qml") as argument to QQmlApplication

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Uwe Fechner
Great, now it is working! I will do some more testing tomorrow. Uwe On Wednesday, March 16, 2016 at 10:45:16 PM UTC+1, Bart Janssens wrote: > > This could be either a missing Qt package, or the version is not recent > enough. I don't use any recent QML commands, so it's safe to use QtQuick > 2

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Maurice Diamantini
Le mardi 15 mars 2016 09:46:34 UTC+1, Bart Janssens a écrit : > > I just couldn't resist taking a stab at this using CppWrapper. At > https://github.com/barche/QML.jl there is a small example on how to > launch a QML file from Julia (tested in v0.4). To make this useful, we > would need to add

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Bart Janssens
Awesome, reassuring to know it works elsewhere too :) In the mean time, I updated the test with a simple Julia callback to increase a counter on the Julia side at the click of a QML button. The interface is limited to 0-argument functions returning integers or doubles for now. The heart of the

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Uwe Fechner
I am now on a different computer, and "using QML" now works. Pkg.test("QML") still fails, but with a different error: julia> Pkg.test("QML") INFO: Testing QML QQmlApplicationEngine failed to load component file:///home/ufechner/00PythonSoftware/FastSim/main.qml:-1 File not found Which file main

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Uwe Fechner
Ok, I disabled my .juliarc.jl file. Now I get another error: julia> Pkg.test("QML") INFO: Testing QML QQmlApplicationEngine failed to load component file:///home/ufechner/.julia/v0.4/QML/test/main.qml:1 module "QtQuick" version 2.5 is not installed Any idea? On Wednesday, March 16, 2016 at 8:

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Bart Janssens
Hi, I think this is because the dynamic linker can't find your Qt libs. I have pushed a fix that should add the correct library to the rpath. After pulling the change, you may need to delete .julia/v0.4/QML/deps/usr and .julia/v0.4/QML/deps/builds for Pkg.build to detect the change. If it stil

[julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Uwe Fechner
Hello, unluckily it does not work for me yet. I get the following error: julia> Pkg.test("QML") INFO: Testing QML /usr/bin/julia: symbol lookup error: /home/ufechner/.julia/v0.4/QML/deps/usr/lib/libqml_wrapper.so: undefined symbol: _ZN9QMetaType22registerNormalizedTypeERK10QByteArrayPFvPvEPFS

Re: [julia-users] Re: QML (Qt5) binding for Julia (GSOC?)

2016-03-19 Thread Diamantini Maurice
Did you successfully install CppWrapper (https://github.com/barche/CppWrapper)? Pkg.clone("https://github.com/barche/CppWrapper.git";) Pkg.build("CppWrapper") -- Maurice Le 16 mars 2016 à 16:39, Uwe Fechner a écrit : > Hello, > > unluckily it does not work for me yet. > > I get the followi