psi-im / qconf Goto Github PK
View Code? Open in Web Editor NEWQt5 compatible qconf - Qt configuration tool
License: Other
Qt5 compatible qconf - Qt configuration tool
License: Other
I've seen two different kinds of errors when Qt 4 is not installed but Qt 5 is.
One where the configure script immediately fails while trying to locate qmake:
$ ./configure
Configuring Project ...
Verifying Qt build environment ... ./configure: 204: local: '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake':: bad variable name
And another where conf compilation fails:
$ ./configure
Configuring Project ...
Verifying Qt build environment ... fail
Reason: There was an error compiling 'conf'. See conf.log for details.
Be sure you have a proper Qt 4.0+ build environment set up. This means not
just Qt, but also a C++ compiler, a make tool, and any other packages
necessary for compiling C++ programs.
If you are certain everything is installed, then it could be that Qt is not
being recognized or that a different version of Qt is being detected by
mistake (for example, this could happen if $QTDIR is pointing to a Qt 3
installation). At least one of the following conditions must be satisfied:
1) --qtdir is set to the location of Qt
2) $QTDIR is set to the location of Qt
3) QtCore is in the pkg-config database
4) qmake is in the $PATH
This script will use the first one it finds to be true, checked in the above
order. #3 and #4 are the recommended options. #1 and #2 are mainly for
overriding the system configuration.
$ cat conf.log
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DHAVE_MODULES -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. conf4.cpp -o conf4.moc
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DHAVE_MODULES -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o conf4.o conf4.cpp
In file included from conf4.cpp:9:0:
conf4.h:12:18: fatal error: QtCore: No such file or directory
compilation terminated.
Makefile:211: recipe for target 'conf4.o' failed
make: *** [conf4.o] Error 1
Running with --qtselect=5
works around both of these issues, but IMO this shouldn't be needed if only Qt 5 is installed.
If an app only supports a particular Qt version, it should be possible to set this in the project.qc file so that autodetection prefers this version rather than requiring the user select the version.
currently on Windows it's requried to repeat the same pathes for all the dependencies. quite annoying
would be very nice
The version check in qmake_check
uses ?.?.?
, expecting a single digit for each version part.
Move qconf to psi instead of psi-plus.
Hi,
I downloaded QConf (latest from git) and opened it in QT Creator (bundled with QT5).
I did a clean then a build and I got a qconf.exe
I execute this qconf.exe which produced the configure.exe file.
However, when I launch this configure.exe, I get the following error:
Configuring QConf ...
Verifying Qt 4 build environment ... fail
Reason: Unable to find the 'qmake' tool for Qt 4.
Be sure you have a proper Qt 4.0 build environment set up. This means not
just Qt, but also a C++ compiler, a make tool, and any other packages
necessary for compiling C++ programs.
If you are certain everything is installed, then it could be that Qt 4 is not
being recognized or that a different version of Qt is being detected by
mistake (for example, this could happen if %QTDIR% is pointing to a Qt 3
installation). At least one of the following conditions must be satisfied:
This program will use the first one it finds to be true, checked in the above
order.
The qmake is in the PATH and it works, when I type qmake -query, I get the following:
QT_SYSROOT:
QT_INSTALL_PREFIX:C:\Qt\Qt5.0.1\5.0.1\mingw47_32
QT_INSTALL_ARCHDATA:C:\Qt\Qt5.0.1\5.0.1\mingw47_32
QT_INSTALL_DATA:C:\Qt\Qt5.0.1\5.0.1\mingw47_32
QT_INSTALL_DOCS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\doc
QT_INSTALL_HEADERS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include
QT_INSTALL_LIBS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib
QT_INSTALL_LIBEXECS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\libexec
QT_INSTALL_BINS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin
QT_INSTALL_TESTS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\tests
QT_INSTALL_PLUGINS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins
QT_INSTALL_IMPORTS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\imports
QT_INSTALL_QML:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\qml
QT_INSTALL_TRANSLATIONS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\translations
QT_INSTALL_CONFIGURATION:
QT_INSTALL_EXAMPLES:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\examples
QT_INSTALL_DEMOS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\examples
QT_HOST_PREFIX:C:\Qt\Qt5.0.1\5.0.1\mingw47_32
QT_HOST_DATA:C:\Qt\Qt5.0.1\5.0.1\mingw47_32
QT_HOST_BINS:C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin
QMAKE_SPEC:win32-g++
QMAKE_XSPEC:win32-g++
QMAKE_VERSION:3.0
QT_VERSION:5.0.1
qconf has dependencies qt5-base and qt5-translations, but If I need to compile a project with qt6 support, then I get an error:
Project ERROR: Qt 5.15.10 is not suited to compile PreviSat. Use Qt 6.4.3 in preference
And there is no option to specify to use qt6.
unrecognized option
in the log...
QObject::startTimer: QTimer can only be used with threads started with QThread
subj
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.