Comments (12)
I found a bug in the code.
it's not work for you because your qt located in specify folder x86_64-w64-mingw32
but at now cqtdeployer supports only
"x86_64-linux-gnu";
"aarch64-linux-gnu";
"x86_32-linux-gnu";
"arm-linux-gnu";
system folders. I will fix it and add support, a custom platform.
from cqtdeployer.
It should be the same environment. I'm invoking CQtDeployer through a custom CMake command. I can also reproduce the issue by simply launching CQtDeployer from my shell.
The mingw-w64-qt6-base version of qmake6 is actually a bash script which runs the native version of qmake6 together with a qtconf
file argument:
#!/bin/sh
# The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
script_dir_path=`dirname $0`
script_dir_path=`(cd "$script_dir_path"; /bin/pwd)`
/usr/lib/qt6/bin/qmake6 -qtconf "$script_dir_path/target_qt.conf" $*
Any chance something goes wrong here?
/edit
Maybe you can work around any such issues by introducing a qtconf
parameter which can be passed to CQtDeployer? Then there would be no need to go through this bash magic stuff.
from cqtdeployer.
Hm, very strange. I've just built CQtDeployer from source and passed the same arguments and that worked (invoking the CQtDeployer executable directly, not through the script).
Looks like this has rather something todo with the launch script of CQtDeployer itself?
Hm, looks as trouble in the QProcess behavior between different builds in qt.
The CQtDeployer built with official qt pre-buildet binaries, but for arch binaries it may be different behavior because the QProcess class works with low level system invokes.
Can you run make deploy for built cqtdeployer tool, and run your own cqtdeployer distribution using launch script? To test my theory.
I think your own built cqtdeploy will be works correctly with launch script and without.
from cqtdeployer.
You're correct yes, the version I've compiled myself works with the launch script as well.
God this is confusing... 😆
from cqtdeployer.
You're correct yes, the version I've compiled myself works with the launch script as well. God this is confusing... 😆
It is fine for classes as QProcess. Therefore, I will try to add support new option for work with target_qt.conf. It may solve similar issues in the future.
from cqtdeployer.
About the qmake6 -query it's not work for snap applications. So cqtdeployer try to initialize qt by default templates.
from cqtdeployer.
Hm, I don't understand?
I'm not using snap applications?
from cqtdeployer.
Hm, I don't understand? I'm not using snap applications?
No, it looks as bug, I will fix it. But for now you can try to use deb (if it's possible to you (libc version equal Ubuntu 22.04 required)) version of cqtdeployer - its may solve your issue.
from cqtdeployer.
@higaski I take this issue to work, but still not understand why the started QProcess of qmake6 returns empty result string of the qt configuration
Warning: Wrong output from the qmake process. /usr/x86_64-w64-mingw32/lib/qt6/bin/qmake6
Verbose log: Raw output:
Verbose log: Parsed Qt configuration:
Qt Inforamtion:
Platform:
Major version: 0
Binaries dir:
Libraries dir:
Libexecs dir:
Plugins dir:
QMLs dir:
Translations dir:
Resources dir:
The CQtDeployer have the same system environment as your console (where you run qmake6)? Probably it's a different environment and cqtdeployer receive different (wrong) result from qmake6
Now I see you use the classic version of cqtdeployer (not snap) so the QProcess should work correctly, but this doesn't happen.
from cqtdeployer.
It should be the same environment. I'm invoking CQtDeployer through a custom CMake command. I can also reproduce the issue by simply launching CQtDeployer from my shell.
The mingw-w64-qt6-base version of qmake6 is actually a bash script which runs the native version of qmake6 together with a
qtconf
file argument:#!/bin/sh # The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory. script_dir_path=`dirname $0` script_dir_path=`(cd "$script_dir_path"; /bin/pwd)` /usr/lib/qt6/bin/qmake6 -qtconf "$script_dir_path/target_qt.conf" $*Any chance something goes wrong here?
/edit Maybe you can work around any such issues by introducing a
qtconf
parameter which can be passed to CQtDeployer? Then there would be no need to go through this bash magic stuff.
Yes, sounds good, I will try to add supports for qtconf. And we will check your issue again.
It may be done in this week.
If you need this fix immediately, you can boost our Patreon (CQtDeployer Personal support).
from cqtdeployer.
Hm, very strange. I've just built CQtDeployer from source and passed the same arguments and that worked (invoking the CQtDeployer executable directly, not through the script).
Looks like this has rather something todo with the launch script of CQtDeployer itself?
from cqtdeployer.
Related Issues (20)
- Drop name validation for qmake option.
- How to uninstall CQtDeployer in linux? HOT 2
- Cant run deployed sh :"/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found" HOT 2
- How to install CQtDeployer in docker ubuntu 20 HOT 6
- Illegal instruction (core dumped) HOT 15
- libxcb-xinerama not found HOT 8
- Qt 6.6 support HOT 1
- The link in docs shows wrong page that doesn't exist HOT 2
- Подскажите а как завернуть в qif подготовленную CQtDeployer директорию HOT 2
- Cmake support HOT 3
- Refactoring qmake option HOT 1
- Deployment on Fedora 39 HOT 17
- Copy extraData to multiple directories HOT 2
- QIF banner/logo on cross-compiled app (Linux->Windows) HOT 9
- error while loading shared libraries: libb2.so.1 HOT 5
- xcb-cursor0, libxcb-cursor0 & QtMultimedia support HOT 3
- platform integration problem HOT 10
- Deploy application with custom QML library/plugin HOT 2
- Implementation of copying multiple directories HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cqtdeployer.