Quantcast
Channel: Installation and Deployment
Viewing all 22112 articles
Browse latest View live

[[qanda:topic_unsolved]] Custom build step for mysql

$
0
0

Hello,

So here is my question,
I would like to use QMYSQL on my QtQuick application running on a colibri iMX8X.
I already managed to make it work when running it on my desktop. where I had to build the mysql library from the sources (following this link: https://doc.qt.io/qt-5/sql-driver.html)

Now I would like to know how to buil it easily for my embedded device. Is there a good way to add a custom build step on QtCreator to do it? If so, could someone explain me how I could do it?

Thanks,


[[qanda:topic_unsolved]] [Link error]Cross-Compiling QT 5.14.2 To RPi4 failed.

$
0
0

Hi Everyone,
I want to develop QT app on RPi4 and I hope I can use the ssh to develop and test my app.
According this guide https://wiki.qt.io/RaspberryPi2EGLFS and the comment on https://code.qt.io/cgit/qt/qtbase.git/tree/mkspecs/devices/linux-rasp-pi4-v3d-g++/qmake.conf?h=5.14.2.
I write the configuration command below,

./configure -release -opengl es2 -device linux-rasp-pi4-v3d-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -sysroot /home/lake/Qt/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix /home/lake/Qt/raspi/qt5pi -v -no-use-gold-linker

But I cannot link succeed, it always throw the error like the following,

make[3]: Entering directory `/home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/tools/qmltime'
arm-linux-gnueabihf-g++ -mfloat-abi=hard --sysroot=/home/lake/Qt/raspi/sysroot -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath,/usr/local/qt5pi/lib -Wl,-rpath-link,/home/lake/Qt/raspi/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/lake/Qt/raspi/sysroot/lib/arm-linux-gnueabihf -o qmltime .obj/qmltime.o   /home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/lib/libQt5Quick.so /home/lake/Qt/qt-everywhere-src-5.14.1/qtbase/lib/libQt5Gui.so /home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/lib/libQt5QmlModels.so /home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/lib/libQt5Qml.so /home/lake/Qt/qt-everywhere-src-5.14.1/qtbase/lib/libQt5Network.so /home/lake/Qt/qt-everywhere-src-5.14.1/qtbase/lib/libQt5Core.so -L/home/lake/Qt/raspi/sysroot/usr/lib/arm-linux-gnueabihf -lGLESv2 -lpthread   
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: /home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/lib/libQt5Qml.so: undefined reference to `log2@GLIBC_2.29'
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: /home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/lib/libQt5Qml.so: undefined reference to `pow@GLIBC_2.29'
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: /home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/lib/libQt5Qml.so: undefined reference to `exp@GLIBC_2.29'
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: /home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/lib/libQt5Qml.so: undefined reference to `log@GLIBC_2.29'
collect2: error: ld returned 1 exit status
make[3]: *** [qmltime] Error 1
make[3]: Leaving directory `/home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/tools/qmltime'
make[2]: *** [sub-qmltime-make_first] Error 2
make[2]: Leaving directory `/home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative/tools'
make[1]: *** [sub-tools-make_first] Error 2
make[1]: Leaving directory `/home/lake/Qt/qt-everywhere-src-5.14.1/qtdeclarative'
make: *** [module-qtdeclarative-make_first] Error 2

It seems QT perbuilt libraries need to use the LIBC 2.29 but Raspberry Pi is only support to 2.28 so far.

Package: libc6
Version: 2.28-10+rpi1
Priority: optional
Section: libs
Source: glibc
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Installed-Size: 9,198 kB
Depends: libgcc1
Recommends: libidn2-0 (>= 2.0.5~)
Suggests: glibc-doc, debconf | debconf-2.0, libc-l10n, locales
Conflicts: openrc (<< 0.27-2~)
Breaks: hurd (<< 1:0.5.git20140203-1), libtirpc1 (<< 0.2.3), locales (<< 2.28), locales-all (<< 2.28), nocache (<< 1.1-1~), nscd (<< 2.28), r-cran-later (<< 0.7.5+dfsg-2)

Could anyone help me or give me some suggestion? This problem is stuck me over 4 day....
Thanks a lot.

[[qanda:topic_unsolved]] Error with MQTT Client GUI Written with Qt

$
0
0
@Juancinho_cardecan Do you mean you have that in your pro file? If so: did you actually built and installed MQTT?

[[qanda:topic_unsolved]] QSerial Port

$
0
0

Hi everyone,

I have issues in using QSerial port. Actually, I have reading/writting data in my QT project using arduino. I have initialized my serial port in this way:

serialport = new QSerialPort(this);
serialport->setPortName("COM3");
serialport->setBaudRate(QSerialPort::Baud19200);
serialport->setDataBits(QSerialPort::Data8);
serialport->setFlowControl(QSerialPort::NoFlowControl);
serialport->setParity(QSerialPort::NoParity);
serialport->setStopBits(QSerialPort::OneStop);
qDebug()<<"Serial Port Opened"<<serialport->open(QSerialPort::ReadWrite);

After reading/writing data from arduino at desired time, I want to stop it.
I am stopping the serial port by using the command:

serial->close();

When I run my code for the first time, serial port doesn't stop. So, I stop my serial port forcefully through arduino's Serial Monitor. And then when I run my app again, it works alright. It start working perfectly 2nd time and ownwards. What I need to do, in order to close serial port in the first attempt.

Waiting for guidance

TIA,

[[qanda:topic_unsolved]] Maintenance Tool mandatory account and NO valid license

$
0
0
@porcupinebrux said in Maintenance Tool mandatory account and NO valid license: protesting loudly to the management of the Qt Company (like 5 years ago) will be the only way to revert this intrusive policy. This will only work if You are big customers, or a lot of customers do that This company is not going to backrupt. For me, looks like they are going to die soon enough, that is why they try desperately to collect the data of users in order to sell this company with higher prices. Check their report, you could see they did not earn a penny many years.

[[qanda:topic_unsolved]] I get an error "Cannot Download Archive" during the installation.

[[qanda:topic_unsolved]] I can NOT find any useful solution while compiling the source code of Qt 4.8.7 with MSVC 2010 Express?

$
0
0
After installed Windows SDK v7.1 , I executed the building procedure again. Now, the compilation error has changed. jit" -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\profiler" -I"..\JavaScrip tCore\runtime" -I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\wtf\gobject" -I"c: \Qt\4.8.7\src\3rdparty\webkit\Source\JavaScriptCore\wtf\symbian" -I"..\JavaScrip tCore\wtf\unicode" -I"..\JavaScriptCore\yarr" -I"..\JavaScriptCore\API" -I"..\Ja vaScriptCore\ForwardingHeaders" -I"..\JavaScriptCore\generated" -I"bridge\qt" -I "page\qt" -I"platform\graphics\qt" -I"platform\network\qt" -I"platform\qt" -I".. \WebKit\qt\Api" -I"..\WebKit\qt\WebCoreSupport" -I"." -I"accessibility" -I"bindi ngs" -I"bindings\generic" -I"bridge" -I"css" -I"dom" -I"dom\default" -I"editing" -I"fileapi" -I"history" -I"html" -I"html\canvas" -I"html\parser" -I"html\shadow " -I"inspector" -I"loader" -I"loader\appcache" -I"loader\archive" -I"loader\cach e" -I"loader\icon" -I"mathml" -I"notifications" -I"page" -I"page\animation" -I"p latform" -I"platform\animation" -I"platform\audio" -I"platform\graphics" -I"plat form\graphics\filters" -I"platform\graphics\filters\arm" -I"platform\graphics\te xmap" -I"platform\graphics\transforms" -I"platform\image-decoders" -I"platform\l eveldb" -I"platform\mock" -I"platform\network" -I"platform\sql" -I"platform\text " -I"platform\text\transcoder" -I"plugins" -I"rendering" -I"rendering\mathml" -I "rendering\style" -I"rendering\svg" -I"storage" -I"svg" -I"svg\animation" -I"svg \graphics" -I"svg\graphics\filters" -I"svg\properties" -I"testing" -I"webaudio" -I"websockets" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Source\WebCore\wml" -I"workers " -I"xml" -I"bridge\jsc" -I"bindings\js" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Sour ce\WebCore\bindings\js\specialization" -I"bridge\c" -I"testing\js" -I"generated" -I"..\JavaScriptCore\os-win32" -I"..\..\Source" -I"..\..\include" -I"..\include \QtWebKit" -I"..\include" -I"..\..\..\sqlite" -I"platform\win" -I"plugins\win" - I"platform\win" -I"platform\graphics\win" -I"..\..\..\..\..\include\ActiveQt" -I "tmp\moc\release_shared" -I"..\..\..\..\..\mkspecs\win32-msvc2010" -Fotmp\obj\re lease_shared\ @C:\Users\Charley\AppData\Local\Temp\ImageFrameQt.obj.4056.1555642 .jom ImageFrameQt.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Generating Code... jom: C:\Qt\4.8.7\src\3rdparty\webkit\Source\WebCore\Makefile.WebKit.Release [tmp \obj\release_shared\Arena.obj] Error 2 cl -c -nologo -Zm200 -Zc:wchar_t- -wd4291 -wd4344 -wd4396 -wd4503 -wd480 0 -wd4819 -wd4996 -O2 -MD -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DENABLE_XSLT=0 -DENABLE_WEB_TIMING=0 -DENABL E_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFL INE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_C HANNEL_MESSAGING=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_Q UOTA=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=1 -DENABL E_XPATH=1 -DENABLE_WCSS=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_ XHTMLMP=0 -DENABLE_DETAILS=1 -DENABLE_METER_TAG=1 -DENABLE_PROGRESS_TAG=1 -DENAB LE_BLOB=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_INPUT_SPEECH=0 -DENABLE_INSPECTOR=1 -DENABLE_3D_RENDERING=1 -DENABLE_WEB_AUDIO=0 -DENABLE_WEBGL=0 -DENABLE_MEDIA_STA TISTICS=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_ANIMATIO N_API=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENAB LE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_DATALIST= 1 -DENABLE_TILED_BACKING_STORE=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DENABLE_WEB_SOC KETS=1 -DWTF_USE_QT_BEARER=1 -DENABLE_TOUCH_EVENTS=1 -DENABLE_VIDEO=0 -DSQLITE_C ORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -D_HAS_TR1=0 -DBUILDING_ JavaScriptCore -DBUILDING_WTF -DBUILDING_WEBKIT -DQT_MAKEDLL -DQT_NO_DEBUG -DQT_ GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_S SE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\..\include \QtCore" -I"..\..\..\..\..\include\QtNetwork" -I"..\..\..\..\..\include\QtGui" - I"..\..\..\..\..\include" -I"..\JavaScriptCore" -I"..\..\Source" -I"..\ThirdPart y" -I"..\JavaScriptCore\assembler" -I"..\JavaScriptCore\bytecode" -I"..\JavaScri ptCore\bytecompiler" -I"..\JavaScriptCore\heap" -I"..\JavaScriptCore\dfg" -I"..\ JavaScriptCore\debugger" -I"..\JavaScriptCore\interpreter" -I"..\JavaScriptCore\ jit" -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\profiler" -I"..\JavaScrip tCore\runtime" -I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\wtf\gobject" -I"c: \Qt\4.8.7\src\3rdparty\webkit\Source\JavaScriptCore\wtf\symbian" -I"..\JavaScrip tCore\wtf\unicode" -I"..\JavaScriptCore\yarr" -I"..\JavaScriptCore\API" -I"..\Ja vaScriptCore\ForwardingHeaders" -I"..\JavaScriptCore\generated" -I"bridge\qt" -I "page\qt" -I"platform\graphics\qt" -I"platform\network\qt" -I"platform\qt" -I".. \WebKit\qt\Api" -I"..\WebKit\qt\WebCoreSupport" -I"." -I"accessibility" -I"bindi ngs" -I"bindings\generic" -I"bridge" -I"css" -I"dom" -I"dom\default" -I"editing" -I"fileapi" -I"history" -I"html" -I"html\canvas" -I"html\parser" -I"html\shadow " -I"inspector" -I"loader" -I"loader\appcache" -I"loader\archive" -I"loader\cach e" -I"loader\icon" -I"mathml" -I"notifications" -I"page" -I"page\animation" -I"p latform" -I"platform\animation" -I"platform\audio" -I"platform\graphics" -I"plat form\graphics\filters" -I"platform\graphics\filters\arm" -I"platform\graphics\te xmap" -I"platform\graphics\transforms" -I"platform\image-decoders" -I"platform\l eveldb" -I"platform\mock" -I"platform\network" -I"platform\sql" -I"platform\text " -I"platform\text\transcoder" -I"plugins" -I"rendering" -I"rendering\mathml" -I "rendering\style" -I"rendering\svg" -I"storage" -I"svg" -I"svg\animation" -I"svg \graphics" -I"svg\graphics\filters" -I"svg\properties" -I"testing" -I"webaudio" -I"websockets" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Source\WebCore\wml" -I"workers " -I"xml" -I"bridge\jsc" -I"bindings\js" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Sour ce\WebCore\bindings\js\specialization" -I"bridge\c" -I"testing\js" -I"generated" -I"..\JavaScriptCore\os-win32" -I"..\..\Source" -I"..\..\include" -I"..\include \QtWebKit" -I"..\include" -I"..\..\..\sqlite" -I"platform\win" -I"plugins\win" - I"platform\win" -I"platform\graphics\win" -I"..\..\..\..\..\include\ActiveQt" -I "tmp\moc\release_shared" -I"..\..\..\..\..\mkspecs\win32-msvc2010" -Fotmp\obj\re lease_shared\ @C:\Users\Charley\AppData\Local\Temp\FloatQuad.obj.4056.1557031.jo m FloatQuad.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FloatRect.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' cl -c -nologo -Zm200 -Zc:wchar_t- -wd4291 -wd4344 -wd4396 -wd4503 -wd480 0 -wd4819 -wd4996 -O2 -MD -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DENABLE_XSLT=0 -DENABLE_WEB_TIMING=0 -DENABL E_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFL INE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_C HANNEL_MESSAGING=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_Q UOTA=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=1 -DENABL E_XPATH=1 -DENABLE_WCSS=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_ XHTMLMP=0 -DENABLE_DETAILS=1 -DENABLE_METER_TAG=1 -DENABLE_PROGRESS_TAG=1 -DENAB LE_BLOB=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_INPUT_SPEECH=0 -DENABLE_INSPECTOR=1 -DENABLE_3D_RENDERING=1 -DENABLE_WEB_AUDIO=0 -DENABLE_WEBGL=0 -DENABLE_MEDIA_STA TISTICS=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_ANIMATIO N_API=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENAB LE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_DATALIST= 1 -DENABLE_TILED_BACKING_STORE=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DENABLE_WEB_SOC KETS=1 -DWTF_USE_QT_BEARER=1 -DENABLE_TOUCH_EVENTS=1 -DENABLE_VIDEO=0 -DSQLITE_C ORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -D_HAS_TR1=0 -DBUILDING_ JavaScriptCore -DBUILDING_WTF -DBUILDING_WEBKIT -DQT_MAKEDLL -DQT_NO_DEBUG -DQT_ GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_S SE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\..\include \QtCore" -I"..\..\..\..\..\include\QtNetwork" -I"..\..\..\..\..\include\QtGui" - I"..\..\..\..\..\include" -I"..\JavaScriptCore" -I"..\..\Source" -I"..\ThirdPart y" -I"..\JavaScriptCore\assembler" -I"..\JavaScriptCore\bytecode" -I"..\JavaScri ptCore\bytecompiler" -I"..\JavaScriptCore\heap" -I"..\JavaScriptCore\dfg" -I"..\ JavaScriptCore\debugger" -I"..\JavaScriptCore\interpreter" -I"..\JavaScriptCore\ jit" -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\profiler" -I"..\JavaScrip tCore\runtime" -I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\wtf\gobject" -I"c: \Qt\4.8.7\src\3rdparty\webkit\Source\JavaScriptCore\wtf\symbian" -I"..\JavaScrip tCore\wtf\unicode" -I"..\JavaScriptCore\yarr" -I"..\JavaScriptCore\API" -I"..\Ja vaScriptCore\ForwardingHeaders" -I"..\JavaScriptCore\generated" -I"bridge\qt" -I "page\qt" -I"platform\graphics\qt" -I"platform\network\qt" -I"platform\qt" -I".. \WebKit\qt\Api" -I"..\WebKit\qt\WebCoreSupport" -I"." -I"accessibility" -I"bindi ngs" -I"bindings\generic" -I"bridge" -I"css" -I"dom" -I"dom\default" -I"editing" -I"fileapi" -I"history" -I"html" -I"html\canvas" -I"html\parser" -I"html\shadow " -I"inspector" -I"loader" -I"loader\appcache" -I"loader\archive" -I"loader\cach e" -I"loader\icon" -I"mathml" -I"notifications" -I"page" -I"page\animation" -I"p latform" -I"platform\animation" -I"platform\audio" -I"platform\graphics" -I"plat form\graphics\filters" -I"platform\graphics\filters\arm" -I"platform\graphics\te xmap" -I"platform\graphics\transforms" -I"platform\image-decoders" -I"platform\l eveldb" -I"platform\mock" -I"platform\network" -I"platform\sql" -I"platform\text " -I"platform\text\transcoder" -I"plugins" -I"rendering" -I"rendering\mathml" -I "rendering\style" -I"rendering\svg" -I"storage" -I"svg" -I"svg\animation" -I"svg \graphics" -I"svg\graphics\filters" -I"svg\properties" -I"testing" -I"webaudio" -I"websockets" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Source\WebCore\wml" -I"workers " -I"xml" -I"bridge\jsc" -I"bindings\js" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Sour ce\WebCore\bindings\js\specialization" -I"bridge\c" -I"testing\js" -I"generated" -I"..\JavaScriptCore\os-win32" -I"..\..\Source" -I"..\..\include" -I"..\include \QtWebKit" -I"..\include" -I"..\..\..\sqlite" -I"platform\win" -I"plugins\win" - I"platform\win" -I"platform\graphics\win" -I"..\..\..\..\..\include\ActiveQt" -I "tmp\moc\release_shared" -I"..\..\..\..\..\mkspecs\win32-msvc2010" -Fotmp\obj\re lease_shared\ @C:\Users\Charley\AppData\Local\Temp\FontDescription.obj.4056.1555 658.jom FontDescription.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FontFallbackList.cpp cl -c -nologo -Zm200 -Zc:wchar_t- -wd4291 -wd4344 -wd4396 -wd4503 -wd480 0 -wd4819 -wd4996 -O2 -MD -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DENABLE_XSLT=0 -DENABLE_WEB_TIMING=0 -DENABL E_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFL INE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_C HANNEL_MESSAGING=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_Q UOTA=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=1 -DENABL E_XPATH=1 -DENABLE_WCSS=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_ XHTMLMP=0 -DENABLE_DETAILS=1 -DENABLE_METER_TAG=1 -DENABLE_PROGRESS_TAG=1 -DENAB LE_BLOB=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_INPUT_SPEECH=0 -DENABLE_INSPECTOR=1 -DENABLE_3D_RENDERING=1 -DENABLE_WEB_AUDIO=0 -DENABLE_WEBGL=0 -DENABLE_MEDIA_STA TISTICS=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_ANIMATIO N_API=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENAB LE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_DATALIST= 1 -DENABLE_TILED_BACKING_STORE=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DENABLE_WEB_SOC KETS=1 -DWTF_USE_QT_BEARER=1 -DENABLE_TOUCH_EVENTS=1 -DENABLE_VIDEO=0 -DSQLITE_C ORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -D_HAS_TR1=0 -DBUILDING_ JavaScriptCore -DBUILDING_WTF -DBUILDING_WEBKIT -DQT_MAKEDLL -DQT_NO_DEBUG -DQT_ GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_S SE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\..\include \QtCore" -I"..\..\..\..\..\include\QtNetwork" -I"..\..\..\..\..\include\QtGui" - I"..\..\..\..\..\include" -I"..\JavaScriptCore" -I"..\..\Source" -I"..\ThirdPart y" -I"..\JavaScriptCore\assembler" -I"..\JavaScriptCore\bytecode" -I"..\JavaScri ptCore\bytecompiler" -I"..\JavaScriptCore\heap" -I"..\JavaScriptCore\dfg" -I"..\ JavaScriptCore\debugger" -I"..\JavaScriptCore\interpreter" -I"..\JavaScriptCore\ jit" -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\profiler" -I"..\JavaScrip tCore\runtime" -I"..\JavaScriptCore\wtf" -I"..\JavaScriptCore\wtf\gobject" -I"c: \Qt\4.8.7\src\3rdparty\webkit\Source\JavaScriptCore\wtf\symbian" -I"..\JavaScrip tCore\wtf\unicode" -I"..\JavaScriptCore\yarr" -I"..\JavaScriptCore\API" -I"..\Ja vaScriptCore\ForwardingHeaders" -I"..\JavaScriptCore\generated" -I"bridge\qt" -I "page\qt" -I"platform\graphics\qt" -I"platform\network\qt" -I"platform\qt" -I".. \WebKit\qt\Api" -I"..\WebKit\qt\WebCoreSupport" -I"." -I"accessibility" -I"bindi ngs" -I"bindings\generic" -I"bridge" -I"css" -I"dom" -I"dom\default" -I"editing" -I"fileapi" -I"history" -I"html" -I"html\canvas" -I"html\parser" -I"html\shadow " -I"inspector" -I"loader" -I"loader\appcache" -I"loader\archive" -I"loader\cach e" -I"loader\icon" -I"mathml" -I"notifications" -I"page" -I"page\animation" -I"p latform" -I"platform\animation" -I"platform\audio" -I"platform\graphics" -I"plat form\graphics\filters" -I"platform\graphics\filters\arm" -I"platform\graphics\te xmap" -I"platform\graphics\transforms" -I"platform\image-decoders" -I"platform\l eveldb" -I"platform\mock" -I"platform\network" -I"platform\sql" -I"platform\text " -I"platform\text\transcoder" -I"plugins" -I"rendering" -I"rendering\mathml" -I "rendering\style" -I"rendering\svg" -I"storage" -I"svg" -I"svg\animation" -I"svg \graphics" -I"svg\graphics\filters" -I"svg\properties" -I"testing" -I"webaudio" -I"websockets" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Source\WebCore\wml" -I"workers " -I"xml" -I"bridge\jsc" -I"bindings\js" -I"c:\Qt\4.8.7\src\3rdparty\webkit\Sour ce\WebCore\bindings\js\specialization" -I"bridge\c" -I"testing\js" -I"generated" -I"..\JavaScriptCore\os-win32" -I"..\..\Source" -I"..\..\include" -I"..\include \QtWebKit" -I"..\include" -I"..\..\..\sqlite" -I"platform\win" -I"plugins\win" - I"platform\win" -I"platform\graphics\win" -I"..\..\..\..\..\include\ActiveQt" -I "tmp\moc\release_shared" -I"..\..\..\..\..\mkspecs\win32-msvc2010" -Fotmp\obj\re lease_shared\ @C:\Users\Charley\AppData\Local\Temp\FileSystem.obj.4056.1551976.j om FileSystem.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' GeolocationService.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' KillRingNone.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FloatSize.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FontData.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Font.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' KURL.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FontFamily.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FontCache.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' BitmapImage.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Language.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' GeneratedImage.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Color.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Length.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Gradient.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Generating Code... ContextShadow.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' LinkHash.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Logging.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FloatPoint3D.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' FloatPoint.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' MIMETypeRegistry.cpp C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\yvals.h(21) : war ning C4005: '_HAS_TR1' : macro redefinition command-line arguments : see previous definition of '_HAS_TR1' Generating Code... Generating Code... jom: C:\Qt\4.8.7\src\3rdparty\webkit\Source\WebCore\Makefile.WebKit [release-all ] Error 2 jom: C:\Qt\4.8.7\src\3rdparty\webkit\Source\Makefile.WebKit [sub-WebCore-make_de fault-ordered] Error 2 jom: C:\Qt\4.8.7\Makefile [sub-webkit-make_default-ordered] Error 2

[[qanda:topic_solved]] Windows build nmake paths too long

$
0
0
Have you tried 'long path tool'? it's very helpful for me.

[[qanda:topic_unsolved]] Linux application failed to run with error: qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "plugins/platforms/"

$
0
0

Hi all,
I have built QT 5.14.1 on linux with -qt-xcb flag in configure and when I try to run my application with these QT libs and plugins, I get following error:

*****qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "plugins/platforms/"
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs (from plugins/platforms/), linuxfb (from plugins/platforms/), minimal (from plugins/platforms/), minimalegl (from plugins/platforms/), offscreen (from plugins/platforms/), vnc (from plugins/platforms/), webgl (from plugins/platforms/), xcb (from plugins/platforms/), eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.**


I have set QT_QPA_PLATFORM_PLUGIN_PATH=plugins/platforms/ and placed this folder where my program is. Also I tried setting QT_DEBUG_PLUGINS=1 and ran, but could not find any error, except at the end which gives error as mentioned above.
Also I ran ldd for exe, qxcb plugin so, and related so and all dependent libs were present in output.

Strange thing is earlier I had built QT 5.13.2 with exact same configuration and same procedure to run the application and I did not get any error.

Please suggest if you have any other thing that can be tried out here. Or is there any issue with my build that you suspect?

Thanks in advance.
Sheetal

[[qanda:topic_solved]] Building with Gstreamer on Windows

$
0
0
OK. I got it to work by switching to MSVC, creating a plugins directory, setting a Gstreamer ENV to that path, like so: set GST_PLUGIN_PATH=C:\Users\vivoh\Desktop\mini\plugins, and dropping in the two required plugins, in this case: gstvideotestsrc.dll and gstd3d.dll

[[qanda:topic_unsolved]] Added DESTDIR

$
0
0
@debian I had a similar problem recently and posting here since it's still unsolved and other people may need. I've found a variable called INSTALL_ROOT at least in recent Qt: using the command "make INSTALL_ROOT=<dir> install" made the job.

[[qanda:topic_unsolved]] How to make QT MOC built project to be compatible for project that uses Custom build step?

$
0
0

How to make a Qt Moc built (New) project to be compatible to run on Custom build approach(old)?
is it possible to make it backward compatible to run on old compilers (VS13 Custom build approach)?

[[qanda:topic_unsolved]] QT with MSVC2017 64bits - Error when executing make

$
0
0

Hi,
I worked with MinGW 64-bits and it works. In order to use the webengine module from QT, I need to compile my application with MSCV. Therefore I installed Visual Studio 2017 (previous version than current) and I also installed QT for MSCV2017-64bits. I tried before to install visualstudio 2019 but it did not work neither.
To test it, I run a simple hello world script and it does not compile. The error is
jom: C:\Users\xxxx...\build-testMSCV-Desktop_Qt_5_14_2_MSVC2017_64bit-Debug\Makefile [debug] Error 2

The process "C:\Qt\Tools\QtCreator\bin\jom.exe" exited with code 2.
Error while building/deploying project testMSCV (kit: Desktop Qt 5.14.2 MSVC2017 64bit)
When executing step "Make"

Here is a screen shot of my kit configuration.
5928204d-c213-4357-9c4c-78fc9bedc7ae-image.png

Any idea how I can fix it?
Thanks
Thombou

[[qanda:topic_unsolved]] Transfer application with different languages

$
0
0
I realised that i Had written language incorrect to the qrc,i have corrected that but no success. I will compile new.

[[qanda:topic_unsolved]] WebAssembly - Project ERROR: Unknown module(s) in QT: quick quickcontrols2

$
0
0

Hello I have build Qt for WebAssembly manually. Here is what I have done to setup my enviorment:

#Goes to home folder
cd

#Download Emscripten 
git clone https://github.com/juj/emsdk.git
cd emsdk
./emsdk install sdk-fastcomp-1.38.30-64bit
./emsdk activate --embedded sdk-fastcomp-1.38.30-64bit

#Goes to home folder
cd

#Create a folder folder for Qt stuff
mkdir Qt
cd Qt

#Download Qt and init-repository
git clone -b 5.14.2 https://code.qt.io/qt/qt5.git
mv qt5 5.14.2
cd 5.14.2
./init-repository -f --module-subset=qtbase,qtdeclarative,qtwebsockets,qtsvg,qtquickcontrols,qtquickcontrols2,qtgraphicaleffects,qtcharts,qtdatavis3d,qtspeech,qtgraphicaleffects

#Create Shadow Build directory
mkdir ~/5.14.2-WebAssembly
cd ~/5.14.2-WebAssembly

#Configure and Build Qt for WebAssembly
source ~/emsdk/emsdk_env.sh
~/Qt/5.14.2/qtbase/configure -opensource -confirm-license -xplatform wasm-emscripten -debug -feature-thread -opensource -nomake examples -nomake tests -prefix ~/Qt/5.14.2-WebAssembly-Debug
make -j$(nproc)
make install -j$(nproc)

#Goes to home folder
cd

# Build a test project
git clone https://github.com/msorvig/qt-webassembly-examples.git
cd qt-webassembly-examples/quick_controls2_gallery
~/Qt/5.14.2-WebAssembly-Debug/bin/qmake #ERROR 
make #Never executed because an ERROR happens on the line above

Here is the outuput of qmake:

Project MESSAGE: Setting PTHREAD_POOL_SIZE to 4
Project MESSAGE: Setting TOTAL_MEMORY to 1GB
Project WARNING: This Qt was built with Emscripten version 1.38.30. You have . The difference may cause issues.
Project ERROR: Unknown module(s) in QT: quick quickcontrols2

I tried:

sudo apt install qtquickcontrols2-5-dev

But nothing changed, I still get the error.


[[qanda:topic_unsolved]] Refreshing the build directory

$
0
0
Then please start using out of source builds. Call "make distclean" and then check for files like .qmake.cache. Remove them all. If you are using git then you can do "git clean -ddfx"

[[qanda:topic_unsolved]] Newbie needs static compile assistance

$
0
0

I began learning Qt about 3 weeks ago, and I am totally self-taught. I have managed to negotiate Qt Creator, and have developed a fairly (for me) complicated program which works really well! I am using Qt 5.14.1, and the MinGW 64-bit compile kit version 7.3.0, the opensource package. So I am at the point where I want to run this program on another computer, and I understand I need a second version of Qt, compiled for static development. So I found instructions here: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW, and I followed them. Unfortunately the compile process ended with errors, and I did not document what they were. But now I have lots of stuff in the \Qt\static folder, and I can't seem to use them. So I am hoping for some advice about what to do next. Should I attempt to reinstall the static version? If so, should I remove the existing static residue first? And if so, how do I do that? I am hoping to get a static version I can employ from Qt Creator. I keep thinking that it should not be s...\o hard to do this. But I am a newbie, and I realize there is lots I don't yet understand which probably would make this process seem more simple. I hope someone can help! One of the problems I encountered is that I could not find a Qt installation file named "qt-everywhere-opensource-src-5.14.1.zip", which the instructions seemed to specify. I did find a file named "qt-everywhere-src-5.14.1.zip" which I used. I'm wondering if this was the right install file to use. I see a note in this forum that "Static linking of Qt requires a license." If this is correct, it explains a lot! In case it is correct, do I have any other options for porting the program to another computer? Thanks in advance.

[[qanda:topic_unsolved]] module "Qt.labs.platform" is not installed, macdeployqt not copy qt/labs/platform?

$
0
0

Enviroment:

  QT 5.14.2, MacOSX 10.15.4 Catalina,  
  build-trytodolist-Desktop_x86_darwin_generic_mach_o_64bit

project.pro:
QT += quick
QT += widgets
CONFIG += c++11

I use SystemTrayIcon:

   SystemTrayIcon {
        visible: true
        icon.source: "media/todo.png"

        menu: Menu {
            MenuItem {
                text: qsTr("Quit")
                onTriggered: Qt.quit()
            }
        }
    }

Everything ok in QT debug running mode.

And I deploy the dmg:

~/Qt/5.14.2/clang_64/bin/macdeployqt  trytodolist.app -qmldir=/Users/username/Qt/5.14.2/clang_64/qml  -dmg

the dmg is generated, but when I run the app, I got:

QQmlApplicationEngine failed to load component
qrc:/main.qml:4:1: module "Qt.labs.platform" is not installed

I check the path: "build-trytodolist-Desktop_x86_darwin_generic_mach_o_64bit-Debug/trytodolist.app/Contents/Resources/qml/Qt/labs"

not find the "platform" subdirectory, but find "calendar" and "settings".

so, how to fix this? or is it a bug a macdeployqt?

[[qanda:topic_unsolved]] How can I make the Qt Creator auto-update the ui header file ?

$
0
0

Hi.
I want to make the Qt Creator auto-update the ui header file when I change something in the designer.
I remember that it can do it but it isn't in linux.

[[qanda:topic_solved]] Qt installer fails on Windows 7, exception Code: c0000005

$
0
0
I am sorry to open this old topic but I was facing same problem just now (Apr 14, 2020) on quite old computer with windows 7. I am using this version of the installer qt-unified-windows-x86-3.2.2-online.exe and "stuck" just before installation process to start. So I decided to try Primer solution about the "kernel32.dll.dll" file not found. I made a copy of the file "kernel32.dll" in folders windows\system32\ and windows\sysWOW64\ and rename the copied files like the missing one "kernel32.dll.dll" and the installer just continue with the installation. Thank you Primer for your research!
Viewing all 22112 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>