Is Visual Studio 2019 supported with Qt 5.12.5 (LTS)?
[[qanda:topic_unsolved]] Qt 5.12.5 with Visual Studio 2019
[[qanda:topic_unsolved]] How to link a gfortran static library?
Hi, I saw this post below:
Re: [SOLVED] Compiling Fortran code with gfortran within a C++ project
I added the @LIBS += -lgfortran@
in my *.pro file, but I still got a lot of linking errors like:
undefined reference to `_gfortran_date_and_time'
undefined reference to `_gfortran_st_write'
undefined reference to `_gfortran_adjustl'
undefined reference to `_gfortran_transfer_integer_write'
I added my static Fortran library by Qt Creator IDE Wizard, and it added these lines in my *.pro file:
unix:!macx: LIBS += -L$$PWD/../test/ -lmylib
INCLUDEPATH += $$PWD/../test
DEPENDPATH += $$PWD/../test
unix:!macx: PRE_TARGETDEPS += $$PWD/../test/libmylib.a
How can I solve it?
[[qanda:topic_unsolved]] Default repositories aren't visible for fresh install on Windows
Hi,
Default repositories are the ones defined in config.xml. You can add temporary and user defined repositories either from the Settings dialog or from command line with --addTempRepository or --addRepository
Is it possible to run remotely an executable built with CMake ?
@moutie Hi This is M.Ijaz from Pakistan, I am working on qt application to run remotely. I tried much time but not successful yet. will you please help me.?
[[qanda:topic_unsolved]] Qt maintenance tool crashes with unhandled win32 exception [37360]
Qt maintenance tool crashes with unhandled win32 exception [37360]
Steps to reproduce:
- Start Qt Maintenance Tool
- Click next, and skip
- Choose "Update Components". Now it's retrieving meta information.
At the "Select Components" window, the following updates are checked:
Qt Creator 4.10.0 (installed 4.7.2)
Qt Creator 4.10 CDB Debugger Support (installed 4.7.2)
Python ... License version 2 (installed 1.0.0) - Click next, and then click Update. Now the text "Updating components of Qt" and a progress bar is drawn. One second later, I see "MaintenanceTool.exe has stoppen working" with a debug and close program option.
- Choose Debug. Now "Visual Studio just in time debugger" is opened, with the message "An unhandled win32 exception occurred in Maintenancetool.exe [37360]"
- Choose "yes", so visual studio 2010 is started, then the message "invalid license data". comes up. Click close, and choose "no" at the question if you want to use another debugger. Now the maintenance tool is closed.
Versions:
Qt Maintenance Tool: Digital Signature signing time: "dinsdag 14 mei 2019 13:08:26" Date modified 03-06-2019 8:46
Windows 7 enterprise SP1 64 bit
Qt: 5.11.1 mingw53_32
How to get around this?
[[qanda:topic_unsolved]] Bitdefender block 4.10.0-0wininterrupt64.7z file during installation
I've infomed Qt Company about this a week ago, but received no reply yet. Most probably it is a false positive, but I don't know for sure.
[[qanda:topic_unsolved]] opcua module on ubuntu
Hello,
I am trying to install qt opcua into ubuntu with qt creator.
Cant fint any solution on google, tried it with this tutorial -> https://blog.basyskom.com/building-qt-opc-ua-with-open62541/
On macOS it wors perfectly but on ubuntu ( 19.04 ) installation finished and no module is found in Qt
[[qanda:topic_unsolved]] Android Building and cannot find -lc++
Hi,
I am trying to make an app for android. So far the app is working on desktop. But as soon as I change its kit to android Clang Qt 5.12.4 for android ARMv7 and try to build it.
It shows me an error with " error: cannot find -lc++
clang++: error: linker command failed with exit code 1 (use -v to see invocation)"
I have used "android-ndk-r16b" and JDK "1.8.0_141".
I am using QT Creator 4.10.0 Based on Qt 5.13.1 (Clang 10.0 (Apple), 64 bit)
Please help me to build/compile it. I can see my android device under compatible devices in qt.
[[qanda:topic_unsolved]] Why the VS2019 that installed the latest Qt Addin does not have the Qt project template?
I installed the latest VS2019 commnity , and then installed the latest Qt Addin plugin into it. I built the latest Qt5.13.1 with VS2019 , and configured the Qt Addin with the output.
But the VS2019's new project/solution still dones NOT have the qt project template .
There is also a very strange thing : VS2019 loaded a VS2013+Qt5.7 solution into it and build it successfully , then any small change in one .cpp file will lead all the solution to be rebuilt. build operation become rebuild operation.
[[qanda:topic_unsolved]] What things are needed to change installation location?
I'm trying to create a Conan binary package for VS2017 but moving qt binary files from the original install location (after building from source) seems to cause issues. What things do I need to factor in when moving files. What environment values need to considered when doing such a thing?
QT_QPA_GENERIC_PLUGINS and QT_QPA_PLATFORM_PLUGIN_PATH are needed not to fail when loading plugins, but QML doesn't seem to work and theming seems to be not present.
[[qanda:topic_unsolved]] make[1]: *** [makefile:1624: obj/release/pcre_exec.o] Error 1
Hi @sekhar,
you will need to show some more lines before the ones you posted.
Also, which compiler version is that? Note that Qt 4.8 is quite old and with modrn compilers you may run into issues.
Regards
[[qanda:topic_solved]] Qt Online/Offline installers getting stuck on Mac
@taytoo Still happening.
I'm installing 5.13.1 from the offline installer, to the same directory you were (/Developer).
It stalls at:
Installing component Sources...
Extracting "5.13.1-0qt3d-everywhere-src-5.13.1.7z"
The thing is, it prompted for permission. I'm the admin and I authenticated, so there shouldn't be a problem. It manages to install
Qt 5.13.1 Src qt3d config.tests dist examples include src tests tools usecases dist installer-changelogthen nothing else.
[[qanda:topic_unsolved]] Thank you
[[qanda:topic_unsolved]] module “QtMultimedia” is not installed
I've installed Qt and Qtcreator on a Raspberry Pi 3 using the normal apt-get install method. Everything seems to work fine except when I try to build the declarative-camera example or other multimedia examples I get an error saying "module "QtMultimedia" is not installed". Then the empty white application window pops up.
I've tried installing and reinstalling all the required packages such as libqt5multimedia5, qtmultimedia5-dev, etc and it just says they are installed with newest version.
Has anyone had success with getting qt multimedia working on raspberry pi?
[[qanda:topic_unsolved]] QT installation failed on arm71
@SGaist Thank you very much. I cross compiled qt-4.8.7 with gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux cross compiler. I created .img file of the installed folder and mounted on root of my target device. then i created a simple application on my host system for the target device with same cross compiler and qmake. I checked my executable as follow
file <myexe> <myexe>: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.1.1, BuildID[sha1]=67324567f3bc1d67e9bc876e670ed6e8fcd3a061, not strippedThe image file on which qt is installed is mounted on /mnt/
Now when i try to execute my executable file, something appears but vanishes instantly with following error on terminal ( I tried ./myexe and ./myexe -qws but got same error message)
Fontconfig warning:ignoring C.UTF-8: not a valid language tag ./myexe: symbol lookup error: ./myexe: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEventI'm feeling that i'm missing some path setting but i have no clue about that. I have searched this error but nothing resolved it.
[[qanda:topic_unsolved]] Statically build app still requires .dll files
Hello guys!
I tried to build a static application according to this guide:
https://wiki.qt.io/Build_Standalone_Qt_Application_for_Windows
and everything seemed to be working fine.
I used the nmake command from "x64 Native Tools Command Prompt for VS 2017" and used MSVC2017 64bit in my project.
My PATH includes:
"C:\Qt\Qt5.13.0\5.13.0\msvc2017_64\bin"
"C:\Program Files (x86)\Windows Kits\10\bin\x64"
but my .exe file still requires .dll files (from Qt) when it's used on a different machine
after I build the static version of Qt, my Qt installation path looks like this:
C:\Qt
C:\Qtold
my .pro file looks like this:
#-------------------------------------------------
#
# Project created by QtCreator 2019-08-16T09:17:07
#
#-------------------------------------------------
QT += core gui widgets printsupport webenginewidgets webchannel websockets
greaterThan(QT_MAJOR_VERSION, 5): QT += widgets
TARGET = PA_creator
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += c++11 static
INCLUDEPATH += "C:/Program Files (x86)/Visual Leak Detector/include/"
LIBS += -L"C:/Program Files (x86)/Visual Leak Detector/lib/Win64"
SOURCES += \
datapassing.cpp \
main.cpp \
mainwindow.cpp \
pdfwindow.cpp \
potenzialandspecifics.cpp \
specificandbutton.cpp \
taskandpotenziale.cpp
HEADERS += \
datapassing.h \
mainwindow.h \
pdfwindow.h \
potenzialandspecifics.h \
specificandbutton.h \
taskandpotenziale.h
FORMS += \
mainwindow.ui \
pdfwindow.ui
#Manifest
win32 {
QMAKE_POST_LINK += mt -nologo -manifest $$PWD/manifest.xml -outputresource:$$OUT_PWD/release/$$TARGET".exe" $$escape_expand(\n\t)
}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
resources.qrc
DISTFILES +=
Feel free to ask for more information, and thank you for your time and help!
[[qanda:topic_unsolved]] Error During QT (5.7.1) Cross Compilation
Hello Guys,
I Face the following error when i have just compiling the qt 5.7.1 for Phytec Wega Board.
Error :-
"
*```
/home/teqdiligent/Teq_Projects/HMI/QT/qt-everywhere-opensource-src-5.7.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:313:20: note: the mangling of 'va_list' has changed in GCC 4.4
~/Teq_Projects/HMI/QT/toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf-g++ -o "../bin/qmake" project.o option.o property.o main.o ioutils.o proitems.o qmakevfs.o qmakeglobals.o qmakeparser.o qmakeevaluator.o qmakebuiltins.o makefile.o unixmake2.o unixmake.o mingw_make.o winmakefile.o projectgenerator.o meta.o makefiledeps.o metamakefile.o xmloutput.o pbuilder_pbx.o msvc_vcproj.o msvc_vcxproj.o msvc_nmake.o msvc_objectmodel.o msbuild_objectmodel.o cesdkhandler.o qtextcodec.o qutfcodec.o qstring.o qstring_compat.o qstringbuilder.o qtextstream.o qiodevice.o qringbuffer.o qdebug.o qmalloc.o qglobal.o qarraydata.o qbytearray.o qbytearraymatcher.o qdatastream.o qbuffer.o qlist.o qfiledevice.o qfile.o qfilesystementry.o qfilesystemengine.o qfsfileengine.o qfsfileengine_iterator.o qregexp.o qvector.o qbitarray.o qdir.o qdiriterator.o quuid.o qhash.o qfileinfo.o qdatetime.o qstringlist.o qabstractfileengine.o qtemporaryfile.o qmap.o qmetatype.o qsettings.o qsystemerror.o qlibraryinfo.o qvariant.o qvsnprintf.o qlocale.o qlocale_tools.o qlinkedlist.o qnumeric.o qcryptographichash.o qxmlstream.o qxmlutils.o qlogging.o qjson.o qjsondocument.o qjsonparser.o qjsonarray.o qjsonobject.o qjsonvalue.o qfilesystemengine_unix.o qfilesystemiterator_unix.o qfsfileengine_unix.o qlocale_unix.o -Wl,--gc-sections
Running configuration tests...
Failed to process makespec for platform 'linux-arm-cortex-gnueabihf-g++'
/home/teqdiligent/Teq_Projects/HMI/QT/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake: 1: /home/teqdiligent/Teq_Projects/HMI/QT/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake: Syntax error: word unexpected (expecting ")")
"
I have Following version of Tool chain :- **arm-cortexa8-linux-gnueabihf**
I use following Configuration :-
teqdiligent@ubuntu:~/Teq_Projects/HMI/QT/qt-everywhere-opensource-src-5.7.1$ ./configure -opensource -confirm-license -platform linux-arm-cortex-gnueabihf-g++ -device-option CROSS_COMPILE=~/Teq_Projects/HMI/QT/toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf- -sysroot /media/teqdiligent/rootfs/usr/lib -make libs -prefix ~/Teq_Projects/HMI/QT/phytec_wega_build -v -no-use-gold-linker -no-gbm -opengl es2
Please Help me to sort out this question.
[[qanda:topic_unsolved]] Cross Compilation error
Hello Guys,
I am cross-compiling the qt 5.13.1 in 64-bit Ubuntu PC.
Target platform is Phytec WEGA Board (AM335X - core).
I use "arm-cortexa8-linux-gnueabihf" Toolchain for cross compilation.
Following configuration i have used to buid qt :-
./configure -opensource -confirm-license -platform linux-arm-cortex-gnueabihf-g++ -device linux-arm-cortex-gnueabihf-g++ -device-option CROSS_COMPILE=/home/tdp0009/Teq_Projects/Aug_2019/HMI/Phytec_Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf- -sysroot /media/tdp0009/rootfs -make libs -prefix ~/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/Build_For_Phytec -v -no-use-gold-linker -no-gbm -opengl es2
and during compilation i face following error.
root@tdp0009-desktop:/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1#
root@tdp0009-desktop:/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1# ./configure -opensource -confirm-license -platform linux-arm-cortex-gnueabihf-g++ -device linux-arm-cortex-gnueabihf-g++ -device-option CROSS_COMPILE=/home/tdp0009/Teq_Projects/Aug_2019/HMI/Phytec_Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf- -sysroot /media/tdp0009/rootfs -make libs -prefix ~/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/Build_For_Phytec -v -no-use-gold-linker -no-gbm -opengl es2
+ cd qtbase
+ /home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/configure -top-level -opensource -confirm-license -platform linux-arm-cortex-gnueabihf-g++ -device linux-arm-cortex-gnueabihf-g++ -device-option CROSS_COMPILE=/home/tdp0009/Teq_Projects/Aug_2019/HMI/Phytec_Toolchain/arm-cortexa8-linux-gnueabihf/bin/arm-cortexa8-linux-gnueabihf- -sysroot /media/tdp0009/rootfs -make libs -prefix /root/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/Build_For_Phytec -v -no-use-gold-linker -no-gbm -opengl es2
Creating qmake...
arm-cortexa8-linux-gnueabihf-g++ -c -o qrandom.o -std=c++11 -ffunction-sections -fdata-sections -g -g -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/qmake -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/qmake/library -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/qmake/generators -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/qmake/generators/unix -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/qmake/generators/win32 -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/qmake/generators/mac -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/include -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/include/QtCore -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/include/QtCore/5.13.1 -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/include/QtCore/5.13.1/QtCore -I../src/corelib/global -I/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/mkspecs/linux-arm-cortex-gnueabihf-g++ -DQT_VERSION_STR=\"5.13.1\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=13 -DQT_VERSION_PATCH=1 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.cpp
In file included from /home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.cpp:43:0:
/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.h:204:9: error: 'is_trivially_destructible' is not a member of 'std'
/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.h:204:9: error: '::value' has not been declared
/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.h:204:9: error: expected primary-expression before 'bool'
/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.h:204:9: error: expected ',' before 'bool'
/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.h:204:9: error: expected string-literal before 'bool'
/home/tdp0009/Teq_Projects/Aug_2019/HMI/QT/qt_source_hmi/qt-everywhere-src-5.13.1/qtbase/src/corelib/global/qrandom.h:204:9: error: expected ')' before 'bool'
Makefile:315: recipe for target 'qrandom.o' failed
make: *** [qrandom.o] Error 1
what is error says?
can you guys please help me to sort out this error?
i am waiting for reply.
[[qanda:topic_unsolved]] Qt Installer Framework: How to disable/enable Next button in script
Hello all.
I'm trying to define a condition on the path allowed for my application to be installed to,. I'm detecting the textChanged
signal from TargetDirectoryLineEdit QLineEdit
, and doing my condition there.
The issue is, whatever I use, I can't disable the "Next" button. Tried:
var widget = gui.pageById(QInstaller.TargetDirectory);
and
widget.complete = false;
and
buttons.NextButton.disabled = false;
and
widget.setComplete(false);
but nothing works (last isn't exposed to JS side).
Any ideas?
[[qanda:topic_unsolved]] libQt5Core.so.5: version `Qt_5.13' not found
Hi, I building an app in Debian Testing with KDE my app compiles fine but when a run it I get the error /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.13' not found, i am using some numerical libraries located in /usr/lib/x86_64-linux-gnu/ so this path is added to the LD_LIBRARY_PATH variable. It seems that there is an older Qt version installed by the OS and when I try to run the app just find this version of Qt. There is any solution to this.
English is not my native language, please forgive me if i write something grammatically wrong.