Open kubark42 opened 7 years ago
So weird. Now linuxdeployqt-continuous-x86_64.AppImage MyAwesomeQtApp -qmldir=../
also doesn't work properly anymore. There's some combination of commands which yielded the working results, though, grr...
Further update. I can get the AppImage to work by copying in the missing files before running linuxdeployqt-continuous-x86_64.AppImage MyAwesomeQtApp -qmldir=../ -bundle-non-qt-libs -appimage
a second time.
Please try with an absolute path instead of -qmldir=../
- does it make any difference?
@kubark42 is your application available for testing?
Please try with an absolute path instead of -qmldir=../ - does it make any difference?
Lemme give that a shot. It's on a testing server so it might take me a bit to try that approach.
is your application available for testing?
It's an internal project, so not available for external testing. :(
Yes, identical behavior when using an absolute path. The other QML files are found and copied, just not the ones in QtQuick 1.0
I have the same problem in my project (which is available github.com/ovilab/atomify).
I've actually seen this exact same problem with the macdeployqt tool also (not in my project though).
Run the exact same command twice, does it make a difference? Sometimes we need 2 runs.
Nope, that didn't solve this problem, but was my solution to another problem actually (if I run the command once, I get runtime problems with OpenGL context, but running it twice solves that issue). But the Quick Controls 1.4 problem is still here. My solution is to do cp /path/to/qt/qml/QtQuick/Controls/* qml/QtQuick/Controls/
, so I'm happy enough. But as I said, this is also a problem with macdeployqt. I have planned to dig into it, but haven't thus far.
I must say thanks though, because this tool really helps!
If you're interested, my project linked to above (rather big though) reproduces the problem on my machine. Build instructions in the readme.
What did you specify as -qmldir=
? Try experimenting with that. You can specify multiple ones.
MyAwesomeQtApp
depends on both QtQuick and QtQuick2.0. It runs fine after a normal build. Strangely, if I am in mybuild
directory, which is one level above the source code, and I runit all works. Yay!
However,
or
leads to
If I look in the directory of the successful
linuxdeployqt
run, then I see that there are files in~/Documents/sandbox/PARC-ul/build/qml/QtQuick/Controls
. However, in the "failed" runs, there are no files in that directory. But when I manually copy over the files, withcp ../build.works/qml/QtQuick/Controls/* ./qml/QtQuick/Controls/
, everything works.Kind of a head scratcher. Unfortunately, I can't figure out how to inject these files into the AppImage, so that leaves it a little broken for me. Aside from that, everything is good, and thanks so much for making this!
P.S. Unrelated, but I have the same problem as identified in https://github.com/probonopd/linuxdeployqt/issues/25.