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

[[qanda:topic_unsolved]] Building MySQL driver with Qt 5.13.1

$
0
0
Ok, so I've tried this: C:\Qt\5.13.1\msvc2017_64>cd C:\Qt\5.13.1\Src\qtbase\src\plugins\sqldrivers C:\Qt\5.13.1\Src\qtbase\src\plugins\sqldrivers>qmake -- MYSQL_INCDIR="C:\Program Files\MySQL\Connector C++ 8.0\include" MYSQL_LIBDIR="C:\Program Files\MySQL\Connector C++ 8.0\lib64" Project ERROR: Cannot run compiler 'cl'. Output: =================== =================== Maybe you forgot to setup the environment?

[[qanda:topic_unsolved]] Executable file cannot run with qt.qpa.plugin error

$
0
0

I am trying to run some opencv code and i have included the dll files required by qt and opencv in my executable folder. However this error pops up
pic2.png

Note that i am able to run the program through the IDE itself. How do i fix this? I have also tried running Dependency Walker but i do not get why those files are missing when i have included them already.
pic1.png

[[qanda:topic_unsolved]] I'm new to QtCreator. I am trying to "make" and the following error pops. Help. (version - 5.15.0).

$
0
0

Project ERROR: xcb-xfixes development package not found
make[2]: *** [Makefile:52: sub-virtualkeyboard-make_first] Error 3
make[2]: Leaving directory '/home/rinzler/Downloads/qt-everywhere-src-5.15.0/qtvirtualkeyboard/src'
make[1]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: Leaving directory '/home/rinzler/Downloads/qt-everywhere-src-5.15.0/qtvirtualkeyboard'
make: *** [Makefile:924: module-qtvirtualkeyboard-make_first] Error 2

[[qanda:topic_unsolved]] Can not compile qtopcua for mxe

$
0
0

Hello,

i want to create a new package for mxe.cc.

When i checkout the code with git, everything is ok:

klaus@klaus-MS-7823:~/Downloads$ git clone https://code.qt.io/qt/qtopcua.git
Klone nach 'qtopcua' ...
remote: Counting objects: 8622, done.
remote: Compressing objects: 100% (4649/4649), done.
remote: Total 8622 (delta 5364), reused 6340 (delta 3892)
Empfange Objekte: 100% (8622/8622), 2.55 MiB | 5.18 MiB/s, Fertig.
Löse Unterschiede auf: 100% (5364/5364), Fertig.
klaus@klaus-MS-7823:~/Downloads$ cd qtopcua
klaus@klaus-MS-7823:~/Downloads/qtopcua$ git checkout 5.15
Branch '5.15' folgt nun Remote-Branch '5.15' von 'origin'.
Zu neuem Branch '5.15' gewechselt
klaus@klaus-MS-7823:~/Downloads/qtopcua$ PATH=$PATH:/home/klaus/Downloads/mxe/usr/bin
klaus@klaus-MS-7823:~/Downloads/qtopcua$ /home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake "CONFIG+=release"  "QMAKE_CXXFLAGS +=-fpermissive"
Info: creating stash file /home/klaus/Downloads/qtopcua/.qmake.stash
Info: creating cache file /home/klaus/Downloads/qtopcua/.qmake.cache

Running configuration tests...
Checking for mbedtls... no
Checking for Open62541... no
Checking for Unified Automation C++ SDK... no
Done running configuration tests.

Configure summary:

Qt Opcua:
  Open62541 .............................. yes
  Unified Automation C++ SDK ............. no
  Support for namespace 0 NodeId names ... yes
  Namespace 0 NodeIds generator .......... no
  mbedtls ................................ no
  Support for global discovery server .... yes

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into '/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5'.

Prior to reconfiguration, make sure you remove any leftovers from
the previous build.

klaus@klaus-MS-7823:~/Downloads/qtopcua$ make
cd src/ && ( test -e Makefile || /home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake -o Makefile /home/klaus/Downloads/qtopcua/src/src.pro CONFIG+=release 'QMAKE_CXXFLAGS +=-fpermissive' ) && make -f Makefile 
make[1]: Verzeichnis „/home/klaus/Downloads/qtopcua/src“ wird betreten
cd opcua/ && ( test -e Makefile || /home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake -o Makefile /home/klaus/Downloads/qtopcua/src/opcua/opcua.pro CONFIG+=release 'QMAKE_CXXFLAGS +=-fpermissive' ) && make -f Makefile 
Project MESSAGE: perl -w /home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/bin/syncqt.pl -module QtOpcUa -version 5.15.1 -outdir /home/klaus/Downloads/qtopcua -builddir /home/klaus/Downloads/qtopcua /home/klaus/Downloads/qtopcua
<srcbase> = /home/klaus/Downloads/qtopcua 
<bldbase> = /home/klaus/Downloads/qtopcua 
<outbase> = /home/klaus/Downloads/qtopcua 
QtOpcUa: created fwd-include header(s) for <srcbase>/src/opcua/ { qopcuaglobal.h (1) }
QtOpcUa: created fwd-include header(s) for <srcbase>/src/opcua/client/ { qopcuaaddnodeitem.h (2), qopcuaaddreferenceitem.h (2), qopcuaapplicationdescription.h (2), qopcuaapplicationidentity.h (2), qopcuaapplicationrecorddatatype.h (2), qopcuaargument.h (2), qopcuaattributeoperand.h (2), qopcuaauthenticationinformation.h (2), qopcuaaxisinformation.h (2), qopcuabackend_p.h (1), qopcuabinarydataencoding.h (2), qopcuabrowsepathtarget.h (2), qopcuabrowserequest.h (2), qopcuaclient.h (2), qopcuaclient_p.h (1), qopcuaclientimpl_p.h (1), qopcuacomplexnumber.h (2), qopcuacontentfilterelement.h (2), qopcuacontentfilterelementresult.h (2), qopcuadeletereferenceitem.h (2), qopcuadoublecomplexnumber.h (2), qopcuaelementoperand.h (2), qopcuaendpointdescription.h (2), qopcuaerrorstate.h (2), qopcuaeuinformation.h (2), qopcuaeventfilterresult.h (2), qopcuaexpandednodeid.h (2), qopcuaextensionobject.h (2), qopcuagdsclient.h (2), qopcuagdsclient_p.h (1), qopcualiteraloperand.h (2), qopcualocalizedtext.h (2), qopcuamonitoringparameters.h (2), qopcuamonitoringparameters_p.h (1), qopcuamultidimensionalarray.h (2), qopcuanode.h (2), qopcuanode_p.h (1), qopcuanodecreationattributes.h (2), qopcuanodecreationattributes_p.h (1), qopcuanodeids.h (1), qopcuanodeimpl_p.h (1), qopcuapkiconfiguration.h (2), qopcuaqualifiedname.h (2), qopcuarange.h (2), qopcuareaditem.h (2), qopcuareadresult.h (2), qopcuareferencedescription.h (2), qopcuarelativepathelement.h (2), qopcuasimpleattributeoperand.h (2), qopcuatype.h (1), qopcuausertokenpolicy.h (2), qopcuawriteitem.h (2), qopcuawriteresult.h (2), qopcuaxvalue.h (2) }
QtOpcUa: created fwd-include header(s) for <srcbase>/src/opcua/core/ { qopcuaplugin.h (2), qopcuaprovider.h (2) }
QtOpcUa: created fwd-include header(s) for <srcbase>/src/opcua/x509/ { openssl_symbols_p.h (1), qopcuakeypair.h (2), qopcuakeypair_p.h (1), qopcuax509certificatesigningrequest.h (2), qopcuax509certificatesigningrequest_p.h (1), qopcuax509distinguishedname.h (2), qopcuax509extension.h (2), qopcuax509extension_p.h (1), qopcuax509extensionbasicconstraints.h (2), qopcuax509extensionextendedkeyusage.h (2), qopcuax509extensionkeyusage.h (2), qopcuax509extensionsubjectalternativename.h (2), qopcuax509utils_p.h (1), qsslsocket_openssl11_symbols_p.h (1), qsslsocket_opensslpre11_symbols_p.h (1) }
QtOpcUa: created version header
QtOpcUa: created master header
QtOpcUa: created headers.pri file
make[2]: Verzeichnis „/home/klaus/Downloads/qtopcua/src/opcua“ wird betreten
make -f Makefile.Release
make[3]: Verzeichnis „/home/klaus/Downloads/qtopcua/src/opcua“ wird betreten
i686-w64-mingw32.shared-g++ -c -pipe -fno-keep-inline-dllexport -fpermissive -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1y -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_OPCUA_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_FOREACH -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQ_USE_SYBASE -I. -I../../include -I../../include/QtOpcUa -I../../include/QtOpcUa/5.15.1 -I../../include/QtOpcUa/5.15.1/QtOpcUa -Itmp -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork/5.15.0 -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork/5.15.0/QtNetwork -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore/5.15.0 -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore/5.15.0/QtCore -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore -I.moc/release -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/mkspecs/win32-g++  -o .obj/release/qopcuaprovider.o core/qopcuaprovider.cpp
core/qopcuaprovider.cpp: In function 'QHash<QString, QJsonObject> loadPluginMetadata()':
core/qopcuaprovider.cpp:110:82: warning: 'QHash<K, V>::iterator QHash<K, V>::insertMulti(const Key&, const T&) [with Key = QString; T = QJsonObject]' is deprecated: Use QMultiHash for hashes storing multiple values with the same key. [-Wdeprecated-declarations]
     plugins.insertMulti(obj.value(QStringLiteral("Provider")).toString(), obj);
                                                                              ^
In file included from core/qopcuaprovider.h:42:0,
                 from core/qopcuaprovider.cpp:38:
/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore/qhash.h:1225:55: note: declared here
 Q_OUTOFLINE_TEMPLATE typename QHash<Key, T>::iterator QHash<Key, T>::insertMult
                                                       ^
i686-w64-mingw32.shared-g++ -c -pipe -fno-keep-inline-dllexport -fpermissive -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1y -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_OPCUA_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_FOREACH -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQ_USE_SYBASE -I. -I../../include -I../../include/QtOpcUa -I../../include/QtOpcUa/5.15.1 -I../../include/QtOpcUa/5.15.1/QtOpcUa -Itmp -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork/5.15.0 -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork/5.15.0/QtNetwork -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore/5.15.0 -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore/5.15.0/QtCore -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore -I.moc/release -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/mkspecs/win32-g++  -o .obj/release/qopcuaplugin.o core/qopcuaplugin.cpp
.......

When i use the zip file from https://github.com/qt/qtopcua/archive/5.15.zip, i can't compile it.

klaus@klaus-MS-7823:~/Downloads/qtopcua-5.15$ PATH=$PATH:/home/klaus/Downloads/mxe/usr/bin
klaus@klaus-MS-7823:~/Downloads/qtopcua-5.15$ /home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake "CONFIG+=release"  "QMAKE_CXXFLAGS +=-fpermissive"
Info: creating stash file /home/klaus/Downloads/qtopcua-5.15/.qmake.stash
Info: creating cache file /home/klaus/Downloads/qtopcua-5.15/.qmake.cache

Running configuration tests...
Checking for mbedtls... no
Checking for Open62541... no
Checking for Unified Automation C++ SDK... no
Done running configuration tests.

Configure summary:

Qt Opcua:
  Open62541 .............................. yes
  Unified Automation C++ SDK ............. no
  Support for namespace 0 NodeId names ... yes
  Namespace 0 NodeIds generator .......... no
  mbedtls ................................ no
  Support for global discovery server .... yes

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into '/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5'.

Prior to reconfiguration, make sure you remove any leftovers from
the previous build.

klaus@klaus-MS-7823:~/Downloads/qtopcua-5.15$ make
cd src/ && ( test -e Makefile || /home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake -o Makefile /home/klaus/Downloads/qtopcua-5.15/src/src.pro CONFIG+=release 'QMAKE_CXXFLAGS +=-fpermissive' ) && make -f Makefile 
make[1]: Verzeichnis „/home/klaus/Downloads/qtopcua-5.15/src“ wird betreten
cd opcua/ && ( test -e Makefile || /home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/bin/qmake -o Makefile /home/klaus/Downloads/qtopcua-5.15/src/opcua/opcua.pro CONFIG+=release 'QMAKE_CXXFLAGS +=-fpermissive' ) && make -f Makefile 
make[2]: Verzeichnis „/home/klaus/Downloads/qtopcua-5.15/src/opcua“ wird betreten
make -f Makefile.Release
make[3]: Verzeichnis „/home/klaus/Downloads/qtopcua-5.15/src/opcua“ wird betreten
i686-w64-mingw32.shared-g++ -c -pipe -fno-keep-inline-dllexport -fpermissive -msse2 -mstackrealign -mfpmath=sse -O2 -std=c++1y -fno-exceptions -Wall -Wextra -Wextra -Wvla -Wdate-time -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_OPCUA_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_FOREACH -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQ_USE_SYBASE -I. -I../../include -I../../include/QtOpcUa -I../../include/QtOpcUa/5.15.1 -I../../include/QtOpcUa/5.15.1/QtOpcUa -Itmp -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork/5.15.0 -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork/5.15.0/QtNetwork -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore/5.15.0 -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore/5.15.0/QtCore -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtNetwork -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/include/QtCore -I.moc/release -I/home/klaus/Downloads/mxe/usr/i686-w64-mingw32.shared/qt5/mkspecs/win32-g++  -o .obj/release/qopcuaprovider.o core/qopcuaprovider.cpp
In file included from core/qopcuaprovider.cpp:37:0:
core/qopcuaplugin.h:40:34: fatal error: QtOpcUa/qopcuaglobal.h: No such file or directory
compilation terminated.
make[3]: *** [Makefile.Release:1569: .obj/release/qopcuaprovider.o] Fehler 1
make[3]: Verzeichnis „/home/klaus/Downloads/qtopcua-5.15/src/opcua“ wird verlassen
make[2]: *** [Makefile:45: release] Fehler 2
make[2]: Verzeichnis „/home/klaus/Downloads/qtopcua-5.15/src/opcua“ wird verlassen
make[1]: *** [Makefile:52: sub-opcua-make_first] Fehler 2
make[1]: Verzeichnis „/home/klaus/Downloads/qtopcua-5.15/src“ wird verlassen
make: *** [Makefile:53: sub-src-make_first] Fehler 2

But if i copy the .git directory to the zip file directory, it compiles. I am confused!

It runs a perl script, when there is this .git directory, why?

Best regards,
Klaus

[[qanda:topic_unsolved]] Elevated priviledges for setting system environment variable (Windows 10) does not work

$
0
0

I just have started using the Qt Installer Framework (current version 3.2 from Qt's online installer, Windows 10). I have spent hours trying to figure out why setting the PATH environment variable system wide fails when the installer was not started using "Run as administrator". Maybe someone can help me out.

I have added <RequireAdminRights>true</RequireAdminRights> to my package.xml. I call installer.gainAdminRights() in my installer script – just in case. And I use component.addElevatedOperation("EnvironmentVariable", ...) to adjust the environment variable. Now, I am out of ideas how to get this to work when the user just double clicks the installer.

Another approach would be if the installer launched as administrator automatically. From what I have read so far this is not possible. Or maybe there is a way to check if the installer has admin rights at the beginning in order to stop the installer with a message to run it as administrator. BTW, copying my files to C:\Program Files (which needs admin priviledges) works.

Here is a minimal example to test this:
config/config.xml

<?xml version="1.0" encoding="UTF-8"?>
<Installer>
	<Name>Test</Name>
	<Version>1.0.0</Version>
	<Title>Test Installer</Title>
	<Publisher>me</Publisher>
	<ProductUrl>https://example.com</ProductUrl>
	<RunProgram>@TargetDir@/bin/MyApp</RunProgram>
	<RunProgramDescription>Run MyApp now.</RunProgramDescription>
	<MaintenanceToolName>MyAppMaintenanceTool</MaintenanceToolName>
	<AllowNonAsciiCharacters>true</AllowNonAsciiCharacters>
	<StartMenuDir>MyApp</StartMenuDir>
	<TargetDir>@ApplicationsDirX64@/MyApp</TargetDir>
	<Translations>
	</Translations>
</Installer>

packages/com.example.test/meta/package.xml

<?xml version="1.0" encoding="UTF-8"?>
<Package>
	<DisplayName>MyApp @ProductVersion@</DisplayName>
	<Description>Install MyApp @ProductVersion@ with all necessary components.</Description>
	<Version>1.0.0</Version>
	<ReleaseDate>2020-08-18</ReleaseDate>
	<Default>true</Default>
	<Script>installscript.qs</Script>
	<RequireAdminRights>true</RequireAdminRights>
</Package>

packages/com.example.test/meta/installscript.qs

function Component()
{
}

Component.prototype.createOperations = function()
{
    // call default implementation
    installer.gainAdminRights();
    component.createOperations();

    var path = installer.environmentVariable("PATH");
    var mybin = installer.value("TargetDir") + "\\bin";

    if(installer.isInstaller())
    {
        // add mybin to the front
        path = path.replace(mybin,"");
        path = mybin + ";" + path;

        component.addElevatedOperation("EnvironmentVariable", "PATH",
                                                              path,
                                                              true,     // persistent
                                                              true);    // system
    }
    else if(installer.isUninstaller())
    {
        // delete mybin from path
        path = path.replace(mybin,"");

        component.addElevatedOperation("EnvironmentVariable", "PATH",
                                                              path,
                                                              true,     // persistent
                                                              true);    // system
    }
}

Create installer:

C:\Qt\Tools\QtInstallerFramework\3.2\bin\binarycreator.exe -c .\config\config.xml -p packages  installer.exe

Double-click installer (not running as administrator), click through it => error on install when trying to change the environment variable. Works when using "Run as administrator".

[[qanda:topic_unsolved]] qtmqtt build on windows

$
0
0
If you did nothing special, then you have the dev branch checked out. Switch the the branch matching your Qt version.

[[qanda:topic_solved]] Issue launching code

$
0
0
I solved the problem installing uninstalling Qt Creator and reinstalling Qt and Qt Creator from terminal.

[[qanda:topic_unsolved]] halted 3rd party build - qtdeploy command itself is missing - now what?

$
0
0

How do I get the missing qtdeploy command inserted into my QT5 build environment? I am running openSuse Leap 15.2 x86_64 OS and trying to build the git Proton-Mail-Bridge package, but "make build" stopped when it could not find the qtdeploy command. This exec file seems to be missing, I did search the openSuse repos for it, but nothing came up. I understand it is part of the Qt development system?

What steps are necessary to obtain this important build tool? I am licensed as open-source client of QT5 company.

  • Randall

[[qanda:topic_unsolved]] What is required for link Widgets?

$
0
0
@continue98 said in What is required for link Widgets?: there is no difference at all what you use for the build system (cmake, premake, etc..) It is - I know that I don't need to add extra libs when Qt is linked statically with cmake or qmake. So in there scripts there must be something which is not added by premake /edit: and as you can see here it looks like even you added Qt5Gui, a symbol from there is not found so it must be something with the build system picking up the wrong libs or similar problems: /home/continue/qt5/qtbase/src/widgets/../../include/QtGui/5.15.0/QtGui/private/../../../../../src/gui/kernel/qguiapplication_p.h:284: undefined reference to `QTouchEvent::TouchPoint::TouchPoint(QTouchEvent::TouchPoint const&)'

[[qanda:topic_unsolved]] The last Qt version that supported Windows xp?

$
0
0
@mrjj I assumed that with an interest in XP @mzimmers was targeting the home/gaming market.... :)

[[qanda:topic_unsolved]] Struggling Android installation for Qt

$
0
0

For the past week, I have been struggling to figure out how to run a Qt quick application with the Android kit. I have encountered numerous errors. Earlier, my OpenSSL settings on Android where not working, but I was able to fix it by downloading new OpenSSL files from online. After that, all the settings in Android settings have a checkmark to signify that they are working.
3185de4a-ec00-44c6-982b-e53d41c00376-image.png
After that, I tried to run the program with the Android kit. However, unlike for you in the videos, Qt Creator did not auto detect an Android kit. In fact, I have uninstalled and reinstalled Qt numerous times to see if it would detect an Android kit. However, since this still did not work, I manually created my own kit. Here is a screenshot of what I filled out for it:
2bc1ddd3-4a3f-459a-85b5-415de44a5286-image.png
However, as you can see on the Qt version section, "Qt 5.15.0 for Android" is considered invalid. I have installed previous versions and the current version of Android numerous times on the Qt maintenance tool but all of them show as invalid. As a result, I changed the Qt version to "5.15.0 MinGW 32-bit".

When I tried to run the program, I got an error about not finding the gradle scripts. After researching, I found that since my Android SDK is past version 26.0.0, it is not downloaded with the SDK but should have been downloaded when I installed Qt. Since it clearly was not, and downgraded my version of Android SDK tools to one with the gradle scripts. There is still a green checkmark after it, so it was the correct SDK.

When I tried to run again, my Qt Creator crashes (meaning my laptop exits from Qt Creator immediately). As a result, I only try to build it. When I built it, I get the error that "Android deploy settings file not found, not building an APK. ". I tried researching the problem on the Qt forums and stack overflow but I could not find a valid solution. I continued to experiment more to get to the bottom of my problem.

Additionally, even before I run or do anything, when I start Qt, I get the following errors in general messages:
9483721b-5f34-4ca8-9c3c-bdc6a1d26eea-image.png
There are only 3 errors which seem to be repeated every couple of minutes. I have no idea what the some of the errors mean, but for the first one, I created a Android_NDK_ROOT environment variable, in the build settings for the project, Qt environment settings(tools->External->Configure->Environment->External Tools->Update Translations), and my Windows Environment variable settings and wrote "ANDROID_NDK_ROOT = ANDROID_NDK_ROOT=C:\Users\arjun\AppData\Local\Android\Sdk\ndk\21.3.6528147". However, even after all if this, my program still gave the same errors. Additionally, I could not figure out what the other two errors meant and choose to ignore them.

After this, I completely deleted my Qt Creator, and all the things I downloaded along with Qt. I then downloaded Qt. It basically did not change anything, except when I run it, I get a completely different error.

Here is the current state of errors and settings my Qt is in:

My Kits:
f884fb4e-a7e5-4866-b42e-5141cd6be58c-image.png
My Qt versions:
891774fb-8906-41db-a75b-4cfb9d0debe7-image.png
My manually created android kit:
cac0b263-8bda-47be-9de9-228943d18d5a-image.png
Current compile output error:
5491579b-06fe-4874-a144-ebe30ce4dbc8-image.png
Current Android settings:
ff468062-951e-4b20-95a3-06e41404746f-image.png
Current general messages:
f34715b5-dd52-4e51-9bb5-23f6a26b7d15-image.png
These are some file errors I have been getting randomly on Qt, usually when I try to run something. For the most part, I have been ignoring them and but they might be relevant to my problem. These come back to back, usually more at a time:
dcbc0a23-8049-4508-a09b-f7a60e23c58e-image.png
5509ecb1-65d9-4637-97ea-6849ea4a00dd-image.png
Issues I get when building:
bb44bb43-b74d-4844-b2ed-9ba1f01f2577-image.png
In conclusion, my Qt is being difficult and I cannot seem to figure out how to run Android. I have followed all your instructions on the video as well as a lot more but I still cannot figure it out. Can you please help me fix the problem so that I can run Qt Applications on virtual android devices?

Thank You so much for your time and effort!

[[qanda:topic_unsolved]] 3rd Part SDK, nort finding DLLs

$
0
0

Hello, I have downloaded an SDK from Sony and I'm having trouble using it from my QT Qindows project. The SDK consists of a .lib and .dll in one directory, a sub directory with two additional .dlls, and a directory of .h files.

I added an "external library" pointing to the .lib and the directory of header files .. and it runs but the program is not working properly (it should be connecting to a Sony camera). I think the problem is that the main DLL depends on those DLL's in the sub directory and no matter what I seem to do it can't seem to find them. (I've moved them to the working directory, added them to the PATH, even plunked them in the system folder.

The SDK has a visual studio program that works. There is a Debug folder that the program runs from, and in that Debug directory is a sub directory with the DLL's. I tried to mimic this structure in a number of different ways in Qt with no luck. If I temporarily remove one of those DLL's in the visual studio project I get the same behavior as my QT program (it works but does not find the camera) .. which is why I think my problem is these additional DLL's.

Any ideas? Really stumped (I want to stick with Qt, please don't make me go back to Visual Studio ;-)

Respectfully,
A. Messier

[[qanda:topic_unsolved]] qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" (static build)

$
0
0

How to solve a problem?

QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3" since plugins are disabled in static builds
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

If you add Q_IMPORT_PLUGIN (QXcbIntegrationPlugin) then an error appears with undefined reference:

/home/continue/qt5/qtbase/src/plugins/platforms/xcb/qxcbmain.cpp:56: undefined reference to `QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**)'

[[qanda:topic_unsolved]] qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

$
0
0
Thanks, I just checked on that! Installing the package didn't help, but the debug output gives: Cannot load library /home/ubuntu/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden) QLibraryPrivate::loadPlugin failed on "/home/ubuntu/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /home/ubuntu/Qt/5.15.0/gcc_64/plugins/platforms/libqxcb.so: (libxcb-icccm.so.4… (German Version -> says: "file libxcb-icccm.so not found") So after installing the following packages it works: sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 Cheers! :)

[[qanda:topic_solved]] 3rd Part SDK, not finding DLLs

$
0
0
@amess Ugh, my bad. it would help to know the directory that my program was running from .. once I found that I just put the two DLL's in there (in a sub-directory that I think the main DLL wanted).

[[qanda:topic_unsolved]] Is it possible with QT Installer framework?

$
0
0

I have two questions.

Capture.PNG

  • Is it possible to adjust the text position?
    I want to change location of text "Setup - Change Installer UI Example".
    The text is above the image, but I want the text to be below the image.

  • Can the installation screen size be fixed?
    I don't want to resize it.
    If resize installation screen, I can see empty part because images(banner and watermark) are not expanded.

Capture.PNG

[[qanda:topic_unsolved]] Finding configure options for a Qt kit?

$
0
0

I'm trying to figure out what options were used to configure when building the kits that come with Qt Creator by default. Is there such a way to figure this out?

Let me explain a little about what I'm trying to achieve as well as that might help answer the question a different way. What I want to do is rebuild Qt for Windows ensuring that everything is built as it would be with the supplied binaries, but with a patch I want applied. When I first compiled for example, I had no OpenSSL support and so had to figure out what to set there. And now I'm concerned by all the options like -qt-pcre etc and I want to make sure that I'm building it with the same settings as the default kits that are supplied by Qt.

[[qanda:topic_unsolved]] qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

$
0
0

Ah yes. Another such topic :-)

My goal is to compile a QtWidgets application in docker, statically, using Qt 5.15.0, that I can run on a target desktop machine Ubuntu 20.04.

Currently I get:

./helloworld
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""

I configure Qt5 like this:

./configure --prefix=/usr -platform linux-g++-64 -opensource -confirm-license -release -static -no-avx \
    -opengl desktop -qpa xcb -system-freetype -fontconfig -glib \
    -no-dbus -no-openssl -no-sql-sqlite -no-use-gold-linker \
    -qt-harfbuzz -qt-libjpeg -qt-libpng -qt-pcre -qt-zlib \
    -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d \
    -skip qtdoc -skip qtquickcontrols -skip qtquickcontrols2 -skip qtspeech  -skip qtgamepad \
    -skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtpurchasing -optimize-size \
    -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools \
    -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview \
    -skip qtwinextras -skip qtx11extras -skip gamepad -skip serialbus -skip location -skip webengine \
    -skip qtdeclarative -skip qtmultimedia  \
    -no-feature-cups -no-feature-ftp -no-feature-pdf -no-feature-animation \
    -nomake examples -nomake tests -nomake tools

Result:

Features used by QPA backends:
  evdev .................................. yes
  libinput ............................... no
  INTEGRITY HID .......................... no
  mtdev .................................. no
  tslib .................................. no
  xkbcommon .............................. yes
  X11 specific:
    XLib ................................. no
    XCB Xlib ............................. no
    EGL on X11 ........................... no
    xkbcommon-x11 ........................ no
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. yes
  EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... no
    EGLFS GBM ............................ no
    EGLFS VSP2 ........................... no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGLFS X11 ............................ no
  LinuxFB ................................ yes
  VNC .................................... yes

question 1: Does this look OK?

question 2: I noticed that I don't have libQt5XcbQpa under /usr in the docker build image. Should I have it? How do I get it?

Random info:

# aptitude search libxkb
i   libxkbcommon-dev                                  - library interface to the XKB compiler - development files
p   libxkbcommon-doc                                  - library interface to the XKB compiler - documentation
i A libxkbcommon-x11-0                                - library to create keymaps with the XKB X11 protocol
i   libxkbcommon-x11-dev                              - library to create keymaps with the XKB X11 protocol - devel
i A libxkbcommon0                                     - library interface to the XKB compiler - shared library
p   libxkbfile-dev                                    - X11 keyboard file manipulation library (development headers
p   libxkbfile1                                       - X11 keyboard file manipulation library

Dockerfile

To reproduce:

FROM ubuntu:20.04

ARG THREADS=1

RUN apt update

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Amsterdam
RUN apt install -y libxkbcommon-dev libxkbcommon-x11-dev build-essential nano vim aptitude ccache tzdata

RUN apt install -y automake git pkg-config python xutils-dev && \
    git clone -b xorgproto-2020.1 --depth 1 https://gitlab.freedesktop.org/xorg/proto/xorgproto && \
    cd xorgproto && \
    git reset --hard c62e8203402cafafa5ba0357b6d1c019156c9f36 && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b 1.12 --depth 1 https://gitlab.freedesktop.org/xorg/proto/xcbproto && \
    cd xcbproto && \
    git reset --hard 6398e42131eedddde0d98759067dde933191f049 && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN apt install -y libtool-bin && \
    git clone -b libXau-1.0.9 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxau && \
    cd libxau && \
    git reset --hard d9443b2c57b512cfb250b35707378654d86c7dea && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN apt install -y libpthread-stubs0-dev && \
    git clone -b 1.12 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxcb && \
    cd libxcb && \
    git reset --hard d34785a34f28fa6a00f8ce00d87e3132ff0f6467 && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b v1.2.11 --depth 1 https://github.com/madler/zlib && \
    cd zlib && \
    git reset --hard cacf7f1d4e3d44d871b605da3b647f07d718623f && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b VER-2-10-2 --depth 1 https://git.sv.nongnu.org/r/freetype/freetype2.git && \
    cd freetype2 && \
    git reset --hard 132f19b779828b194b3fede187cee719785db4d8 && \
    ./autogen.sh && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --disable-shared --enable-static --with-zlib=no && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b R_2_2_9 --depth 1 https://github.com/libexpat/libexpat && \
    cd libexpat/expat && \
    git reset --hard a7bc26b69768f7fb24f0c7976fae24b157b85b13 && \
    ./buildconf.sh && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN apt install -y autopoint gettext gperf libpng-dev && \
    git clone -b 2.13.92 --depth 1 https://gitlab.freedesktop.org/fontconfig/fontconfig && \
    cd fontconfig && \
    git reset --hard b1df1101a643ae16cdfa1d83b939de2497b1bf27 && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static --sysconfdir=/etc --localstatedir=/var && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b release-64-2 --depth 1 https://github.com/unicode-org/icu && \
    cd icu/icu4c/source && \
    git reset --hard e2d85306162d3a0691b070b4f0a73e4012433444 && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --disable-shared --enable-static --disable-tests --disable-samples && \
    make -j$THREADS && \
    make -j$THREADS install

RUN apt install -y wget && \
    wget https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.gz && \
    echo "9995e192e68528793755692917f9eb6422f3052a53c5e13ba278a228af6c7acf boost_1_73_0.tar.gz" > hashsum.txt && \
    sha256sum -c hashsum.txt && \
    tar -xvzf boost_1_73_0.tar.gz && \
    cd boost_1_73_0 && \
    ./bootstrap.sh && \
    ./b2 --with-atomic --with-system --with-filesystem --with-thread --with-date_time --with-chrono --with-regex --with-serialization --with-program_options --with-locale variant=release link=static runtime-link=static cflags='-fPIC' cxxflags='-fPIC' install -a --prefix=/usr

RUN wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz && \
    echo "ddb04774f1e32f0c49751e21b67216ac87852ceb056b75209af2443400636d46 openssl-1.1.1g.tar.gz" > hashsum.txt && \
    sha256sum -c hashsum.txt && \
    tar -xzf openssl-1.1.1g.tar.gz && \
    cd openssl-1.1.1g && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./config no-asm no-shared no-zlib-dynamic --openssldir=/usr && \
    make -j$THREADS && \
    make -j$THREADS install

RUN wget https://download.qt.io/archive/qt/5.15/5.15.0/single/qt-everywhere-src-5.15.0.tar.xz && \
    echo "22b63d7a7a45183865cc4141124f12b673e7a17b1fe2b91e433f6547c5d548c3 qt-everywhere-src-5.15.0.tar.xz"  > hashsum.txt && \
    sha256sum -c hashsum.txt && \
    tar -xf qt-everywhere-src-5.15.0.tar.xz

RUN apt install -y libgl1-mesa-dev libglib2.0-dev libxkbcommon-dev && \
    cd qt-everywhere-src-5.15.0 && \
    sed -ri s/\(Libs:.*\)/\\1\ -lexpat/ /usr/local/lib/pkgconfig/fontconfig.pc && \
    sed -ri s/\(Libs:.*\)/\\1\ -lz/ /usr/local/lib/pkgconfig/freetype2.pc && \
    sed -ri s/\(Libs:.*\)/\\1\ -lXau/ /usr/local/lib/pkgconfig/xcb.pc && \
    ./configure --prefix=/usr -platform linux-g++-64 -opensource -confirm-license -release -static -no-avx \
    -opengl desktop -qpa xcb -system-freetype -fontconfig -glib \
    -no-dbus -no-openssl -no-sql-sqlite -no-use-gold-linker \
    -qt-harfbuzz -qt-libjpeg -qt-libpng -qt-pcre -qt-zlib \
    -skip qt3d -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d \
    -skip qtdoc -skip qtquickcontrols -skip qtquickcontrols2 -skip qtspeech  -skip qtgamepad \
    -skip qtlocation -skip qtmacextras -skip qtnetworkauth -skip qtpurchasing -optimize-size \
    -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qttools \
    -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview \
    -skip qtwinextras -skip qtx11extras -skip gamepad -skip serialbus -skip location -skip webengine \
    -skip qtdeclarative -skip qtmultimedia  \
    -no-feature-cups -no-feature-ftp -no-feature-pdf -no-feature-animation \
    -nomake examples -nomake tests -nomake tools && \
    make -j$THREADS && \
    make -j$THREADS install

RUN cd qt-everywhere-src-5.15.0/qttools/src/linguist/lrelease && \
    qmake && \
    make -j$THREADS && \
    make -j$THREADS install

RUN apt install -y libudev-dev && \
    git clone -b v1.0.23 --depth 1 https://github.com/libusb/libusb && \
    cd libusb && \
    git reset --hard e782eeb2514266f6738e242cdcb18e3ae1ed06fa && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b hidapi-0.9.0 --depth 1 https://github.com/libusb/hidapi && \
    cd hidapi && \
    git reset --hard 7da5cc91fc0d2dbe4df4f08cd31f6ca1a262418f && \
    ./bootstrap && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b libX11-1.6.9 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libx11 && \
    cd libx11 && \
    git reset --hard db7cca17ad7807e92a928da9d4c68a00f4836da2 && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b libXext-1.3.4 --depth 1 https://gitlab.freedesktop.org/xorg/lib/libxext && \
    cd libxext && \
    git reset --hard ebb167f34a3514783966775fb12573c4ed209625 && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./autogen.sh --disable-shared --enable-static && \
    make -j$THREADS && \
    make -j$THREADS install

RUN apt install -y libsodium-dev && \
    git clone -b v4.3.2 --depth 1 https://github.com/zeromq/libzmq && \
    cd libzmq && \
    git reset --hard a84ffa12b2eb3569ced199660bac5ad128bff1f0 && \
    ./autogen.sh && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --disable-shared --enable-static --disable-libunwind --with-libsodium && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b libgpg-error-1.38 --depth 1 git://git.gnupg.org/libgpg-error.git && \
    cd libgpg-error && \
    git reset --hard 71d278824c5fe61865f7927a2ed1aa3115f9e439 && \
    ./autogen.sh && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --disable-shared --enable-static --disable-doc --disable-tests && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b libgcrypt-1.8.5 --depth 1 git://git.gnupg.org/libgcrypt.git && \
    cd libgcrypt && \
    git reset --hard 56606331bc2a80536db9fc11ad53695126007298 && \
    ./autogen.sh && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --disable-shared --enable-static --disable-doc && \
    make -j$THREADS && \
    make -j$THREADS install

RUN git clone -b v3.10.0 --depth 1 https://github.com/protocolbuffers/protobuf && \
    cd protobuf && \
    git reset --hard 6d4e7fd7966c989e38024a8ea693db83758944f1 && \
    ./autogen.sh && \
    CFLAGS='-fPIC' CXXFLAGS='-fPIC' ./configure --enable-static --disable-shared && \
    make -j$THREADS && \
    make -j$THREADS install

RUN apt install -y cmake && \
    git clone -b v4.0.2 --depth 1 https://github.com/fukuchi/libqrencode.git && \
    cd libqrencode && \
    git reset --hard 59ee597f913fcfda7a010a6e106fbee2595f68e4 && \
    cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr . && \
    make -j$THREADS && \
    make -j$THREADS install

To build:

docker build -f Dockerfile --tag foo:foo --build-arg THREADS=8 .

Enter shell inside docker

docker run --rm -it foo:foo sh -c '/bin/bash'

[[qanda:topic_unsolved]] Error when trying to attach GDB to project

$
0
0
@alex1 that error comes from method GdbEngine::handlePythonSetup in Qt Creator source code. You may want to check why your GDB setup reports Python version as 0.0 back to Qt Creator GdbMi data = response.data; watchHandler()->addDumpers(data["dumpers"]); m_pythonVersion = data["python"].toInt(); if (m_pythonVersion < 20700) { int pythonMajor = m_pythonVersion / 10000; int pythonMinor = (m_pythonVersion / 100) % 100; You may find more information about Qt Creator and GDB interaction here. Additionally, you may want to contact the Qt Creator mailing list

[[qanda:topic_unsolved]] How to enable ClangRefactoring and ClangPchManager plugin ?

$
0
0

How to enable the following plugins ?

Plugin ClangPchManager, with CONDITION TARGET libclang
Plugin ClangRefactoring, with CONDITION TARGET libclang

The following are enabled, with the same condition:

 * Plugin ClangFormat, with CONDITION TARGET libclang
 * Plugin ClangCodeModel, with CONDITION TARGET libclang

I'm building it on macOS, QtCreator is at the latest master: 6efb09a86ac5581f2453aa070804d896692e065b. LLVM - clang 11.
I buillt clang with the following options

-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PROJECTS=“clang;clang-tools-extra” -DCMAKE_CXX_STANDARD=17 \
-DLLVM_INCLUDE_TESTS=OFF \
-DLLVM_CCACHE_BUILD=ON - \
-DLLVM_ENABLE_RTTI=ON
Viewing all 22112 articles
Browse latest View live


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