-
Notifications
You must be signed in to change notification settings - Fork 35
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
QML.jl roadmap #73
Comments
@barche I have a QML application I'd be interested in using with Julia. What's the progress here? Is there anything I could do to help? |
I have just pushed my changes to the |
Well I should warn you I'm a total novice, but here's what I got when I tried to checkout the propertymap-update branch of jlqml and follow the instructions in the readme:
|
OK, the readme was hopelessly out of date, I have updated it (in the branch). The errors are due to CMake not finding Qt and libcxxwrap, you probably also need to install your distribution's qt5, qtquick and qtdeclarative development packages. |
Ok...how do I figure out the path to Qt? Sorry if that's a stupid question. I'm on ubuntu. I've done
I've been using Qt Creator |
Actually, when using the distribution packages specifying the location should not be needed. What error does it give now? The qt dev packages on Ubuntu are quite fine-grained, so there may be some missing ones. |
This is what I'm getting now. I checked and libqt5svg5 is already installed
|
Aha I had to install libqt5svg5-dev too |
Continuing on with the readme, now I'm getting this:
|
Ah, looks like my TestRegistry has some ssh git URLs stored, I think you can manually change the URL to https in |
I tried changing the registry and now I'm getting
|
Update: The Qt jll is ready now, to test the current version do: (@v1.4) pkg> add https://github.com/barche/jlqml_jll.jl.git
(@v1.4) pkg> add https://github.com/barche/QML.jl.git#propertymap-update
(@v1.4) pkg> add Observables
julia> using QML
julia> cd(joinpath(dirname(dirname(pathof(QML))),"example"))
julia> include("gui.jl") |
Yay! I tried that, this is what I'm getting now:
|
Wait nevermind I got it to work!!! So excited thanks!!! |
How? What was the problem? |
Thank you very much Bart : it works!!
I assume that the QML installation will end with a single -- Maurice |
Great to hear it works, although I don't understand how, since on Mac I need to manually load the Fontconfig_jll package first :) Yes, |
I think it may have been the Overrides.toml that caused problems
Sure, that would help! The readme even in the propertymap-update is probably out-of-date though, so you may need to check with the examples. |
I'm getting a bunch of warnings when I try to run the tests?
|
For the Fontconfig error, this package needs to set ENV["FONTCONFIG_FILE"] = fonts_conf or maybe ENV["FONTCONFIG_FILE"] = get(ENV, "FONTCONFIG_FILE", fonts_conf) |
@barche: It looks like I don't have a Fontconfig_jll installed.
|
You should update the packages, there is Qt_jll v5.15.0+1 now |
Ref #75 |
giordano@ After updating (in fact after removing ~/.julia then reinstalling package), there are only still two warning.
|
These are normal, that test checks that Julia doesn’t crash when you write bad QML code. |
The jlqml package is waiting to be merged to the general package repository, in the mean time these are the updated test instructions (everything is in the master branch now) (@v1.4) pkg> add https://github.com/JuliaBinaryWrappers/jlqml_jll.jl.git
(@v1.4) pkg> add https://github.com/barche/QML.jl.git
(@v1.4) pkg> add Observables
julia> using QML
julia> cd(joinpath(dirname(dirname(pathof(QML))),"example"))
julia> include("gui.jl") |
Oh, do push that "start counting" button, it crashes for me sometimes, curious how widespread that is 😬 |
I'm on Archlinux and I get something very different from you 😕 To be clear, I'm pretty sure the font problem is the same as JuliaGraphics/Cairo.jl#312 but no one so far has understood what the problem exactly is. Yesterday night I've spent some time trying to debug it once again, to no avail. The only thing I can say is that the sans serif font is picked up when I replaced the libfontconfig.so in the artifact with the system one. In #75 I insisted on using the existing value of FONTCONFIG_FILE so that the users can set it to the system one, but apparently this is of little help, apart from hiding the error message. I have the feeling this is either a fontconfig bug that doesn't allow relocation or there are some other environment variables to set, but I don't know which. In the last section of https://www.freedesktop.org/software/fontconfig/fontconfig-user.html the relevant variables are listed, but I never managed to get find any that does the trick |
I played with the gui yesterday a few times when trying to debug the font issue and it never crashed for me, it always worked quite nicely |
How can I remove fontconfig ? |
The easiest way is to use the Overrides system. Create an Overrides.toml in [a3f928ae-7b40-5064-980b-68af3947d34b]
Fontconfig = "/localhome/user/julia/cleandepot/overrides" Here, ln -s /usr/lib/x86_64-linux-gnu /localhome/user/julia/cleandepot/overrides/lib (This step is needed because of JuliaLang/Pkg.jl#1704) You then need to run Julia with the |
It seems |
Wow, thanks for finding the right combination of variables! I've probably set Edit: I figured I should probably add a screenshot of what I get now after JuliaPackaging/Yggdrasil#1287 |
Yep, this works, seems setting the |
All done, let's see if this works... @JuliaRegistrator register |
@JuliaRegistrator register |
Registration pull request created: JuliaRegistries/General/18516 After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version. This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
Also, note the warning: This looks like a new registration that registers version 0.6.0. |
Can this issue be closed? Or what is missing? |
QML is currently in a bit of a broken state, for several reasons. This issue is meant to track progress towards getting it back on the rails towards a working package.
Package ecosystem integration
When ready, QML.jl will be for Julia 1.3 and higher only, relying on JLL packages for the binary dependencies. This requires:
Qt compatibility
QML.jl is severely broken with the most recent Qt versions:
New features
The text was updated successfully, but these errors were encountered: