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

Unsolved Qt charts - licensing issue

$
0
0

Hey,
i am developing an application that will visualize data from databases ( drawing charts,etc. ). I wanted to develop this app in qt ( i have some experience with this framework ), but Qt charts are non avaliable under LGPL license ( GPL is not an option, my company does not want to share our code ). Would it be hard to write app in qt and to visualize data use some other library ( from boost for example ). Or is it better to just drop Qt for this project and use Windows Forms or MFC?
What would you advise me?
Greetings


Unsolved Qt 5.10.0, msvc2015, windeployqt with -sql stops Qt from finding drivers

$
0
0

Hello Community,
I'm having some perplexing problems. My program runs fine from Qt Creator at first, but as soon as I use windeploy qt, I'm getting the following errors right at the start of the program, before the first line in my main method is reached:

QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers:
QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins

My windeployqt command is as follows: windeployqt.exe -qmldir <...> ./<executable> -sql -network

In my pro, QT += sql is present.
As the errors indicate, SQL functionality is indeed non present, including errors such as Could not open Database and Driver not loaded.

Checking my executable folder after windeployqt, I can see that the sqldrivers folder is there and contains the relevant dlls.

I suppose it should be noted, that my the sql functions are in a dll and in its cpp file, the line

QSqlDatabase database = QSqlDatabase::addDatabase("QSQLITE");

is outside of any method, as in, it's a sort of global variable. Perhaps this is the cause of the error happening even before the main method is entered? But then, why would it only cause errors after executing windeployqt ... ?
My application is a QML application, so rather than directly instantiating QCoreApplication, I have an instance of QGuiApplication allocated on the heap, before any other SQL functions are called.

Thank you for reading, I hope you can help me with this rather strange error :)

Unsolved Qt 5.10 mingw64 static building failed

$
0
0

Hi,
I have been tried to build a static version of Qt 5.10 from source using mingw64 (v5.3, 64-bit).
My configuration is:
-static -debug-and-release -platform win32-g++ -prefix C:\Qt\Static_64\5.10.0 -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -sql-sqlite -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
The building stopped at errors:
g++: error:
C:\Qt\Static_64\src\qt-everywhere-src-5.10.0\qtimageformats\plugins\imageformats\libqwebp.a: No
such file or directory
mingw32-make[4]: *** [....\bin\dumpdoc.exe] Error 1
mingw32-make[4]: Target 'first' not remade because of errors.
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Target 'first' not remade because of errors.
mingw32-make[2]: *** [sub-dumpdoc-make_first-ordered] Error 2
mingw32-make[2]: Target 'first' not remade because of errors.
mingw32-make[1]: *** [sub-tools-make_first] Error 2
mingw32-make[1]: Target 'first' not remade because of errors.
mingw32-make: *** [module-qtactiveqt-make_first] Error 2

compiler\qqmlpropertyvalidator.cpp: In member function 'QVector<QQmlCompileError>
QQmlPropertyValidator::validateObject(int, const QV4::CompiledData::Binding*, bool) const':
compiler\qqmlpropertyvalidator.cpp:82:27: warning: assuming signed overflow does not occur when
assuming that (X + c) < X is always false [-Wstrict-overflow]
QVector<QQmlCompileError> QQmlPropertyValidator::validateObject(int objectIndex, const
QV4::CompiledData::Binding *instantiatingBinding, bool populatingValueTypeGroupProperty) const
^

C
:\Qt\Static_64\src\qt-everywhere-src-5.10.0\qtbase\plugins\platforms\libqwindows.a(qwindowssystemtr
ayicon.o):qwindowssystemtrayicon.cpp:(.text+0x9c6): undefined reference to
`__imp_ChangeWindowMessageFilterEx
'
collect2.exe: error: ld returned 1 exit status

mingw32-make[4]: *** [....\bin\qmltestrunner.exe] Error 1
mingw32-make[4]: Target 'first' not remade because of errors.
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Target 'first' not remade because of errors.
mingw32-make[2]: *** [sub-qmltestrunner-make_first] Error 2

C
:\Qt\Static_64\src\qt-everywhere-src-5.10.0\qtbase\plugins\platforms\libqwindows.a(qwindowssystemtr
ayicon.o):qwindowssystemtrayicon.cpp:(.text+0x9c6): undefined reference to
`__imp_ChangeWindowMessageFilterEx
'
collect2.exe: error: ld returned 1 exit status

mingw32-make[4]: *** [....\bin\qml.exe] Error 1
mingw32-make[4]: Target 'first' not remade because of errors.
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Target 'first' not remade because of errors.
mingw32-make[2]: *** [sub-qml-make_first] Error 2
mingw32-make[2]: Target 'first' not remade because of errors.
mingw32-make[1]: *** [sub-tools-make_first] Error 2
mingw32-make[1]: Target 'first' not remade because of errors.
mingw32-make: *** [module-qtdeclarative-make_first] Error 2
mingw32-make: Target 'first' not remade because of errors.

mingw32-make : C:\Qt\Static_64\src\qt-everywhere-src-5.10.0\qtbase\plugins\platforms\libqwindows.a(
qwindowssystemtrayicon.o):qwindowssystemtrayicon.cpp:(.text+0x9c6): undefined reference to
`__imp_ChangeWindowMessageFilterEx'
(C:\Qt\Static_64...essageFilterEx':String) [], RemoteE
xception
+ FullyQualifiedErrorId : NativeCommandError

collect2.exe: error: ld returned 1 exit status

mingw32-make[4]: *** [....\bin\dumpdoc.exe] Error 1
mingw32-make[4]: Target 'install' not remade because of errors.
mingw32-make[3]: *** [release-install] Error 2
mingw32-make[3]: Target 'install' not remade because of errors.
mingw32-make[2]: *** [sub-dumpdoc-install_subtargets-ordered] Error 2
mingw32-make[2]: Target 'install' not remade because of errors.
mingw32-make[1]: *** [sub-tools-install_subtargets] Error 2
mingw32-make[1]: Target 'install' not remade because of errors.
mingw32-make: *** [module-qtactiveqt-install_subtargets] Error 2

C
:\Qt\Static_64\src\qt-everywhere-src-5.10.0\qtbase\plugins\platforms\libqwindows.a(qwindowssystemtr
ayicon.o):qwindowssystemtrayicon.cpp:(.text+0x9c6): undefined reference to
`__imp_ChangeWindowMessageFilterEx
'
collect2.exe: error: ld returned 1 exit status
mingw32-make[4]: *** [....\bin\qml.exe] Error 1
mingw32-make[4]: Target 'install' not remade because of errors.
mingw32-make[3]: *** [release-install] Error 2
mingw32-make[3]: Target 'install' not remade because of errors.
mingw32-make[2]: *** [sub-qml-install_subtargets] Error 2

C
:\Qt\Static_64\src\qt-everywhere-src-5.10.0\qtbase\plugins\platforms\libqwindows.a(qwindowssystemtr
ayicon.o):qwindowssystemtrayicon.cpp:(.text+0x9c6): undefined reference to
`__imp_ChangeWindowMessageFilterEx
'
collect2.exe: error: ld returned 1 exit status

mingw32-make[4]: *** [....\bin\qmltestrunner.exe] Error 1
mingw32-make[4]: Target 'install' not remade because of errors.
mingw32-make[3]: *** [release-install] Error 2

It seems Qt could not locate 'libuser32.a', which actually exists. Any idea how to fix it? The same compiler and configuration builds successfully with Qt 5.9.1

Make: Nothing to be done for 'first'

$
0
0

@biswasp said in Make: Nothing to be done for 'first':

"make: Nothing to be done for 'first'"

This isn't a problem. As already said in this thread it means that the project is already built and up to date. If you app doesn't start then you have another problem. Build your app in Debug mode and then try to start it with debugger pressing F5. Maybe it simply crashes or some DLLs are missing.

Unsolved Qt 5.9.1 winrt prebuilt binaries.

$
0
0

Recently, we have migrated to QT 5.9.1, now we want to integrate windows notification services in our Qt application. For, that we need Qt 5.9.1 with winrt support. But we are getting trouble building 5.9.1 version of Qt with winrt and openssl support. Is there any source from where we can get prebuilt libraries for Qt with WinRT and OpenSSL too?
Is https://download.qt.io/archive/qt/5.9/5.9.1/qt-opensource-windows-x86-pdb-files-uwp-5.9.1.zip can help us in resolving this?
Also, another question is are these windows desktop binaries and uwp binaries compatible with each other, Meaning can we use only winrt dlls from rt/uwp and other dlls like qtcore, qtgui etc of desktop version?

Thanks.

Unsolved Cannot Run Compiler 'cl'

$
0
0

@drhalftone It sounds like you don't have your kit set up properly. That is where you point it at the compiler you want to use. Check that in settings and make sure you have a kit and there are no red exclamations.

Unsolved Qt mkspec have warning

$
0
0

@darongyi Go to the Kit you're using and select clang as compiler there instead of GCC.

Unsolved QT 5.10 MSVC2015 Windows 10 32bit app VCRUNTIME140.dll error.

$
0
0

To try and track down the problem, ive ran the maintenance tool and removed all compilers and debuggers apart from QT 5.10, QT 5.8 MSVC2015 32bit.

Then ive built the release program in QT5.8 MSVC2015, taken the *.exe together with the bin, plugin and qml files from the QT5.8 MSVC2015 file and ran it and it works fine on the x64 bit host computer. Added the vcruntime140.dll and MSVCP140.dll from system32 file and copied it over the the tablet.

I then got the following errors;
QT5Gui.dll is either not deigned to run on windows or contains an error.
QT5Qml.dll is either not deigned to run on windows or contains an error.
QT5SerialPort.dll is either not deigned to run on windows or contains an error.
QT5Core.dll is either not deigned to run on windows or contains an error.

@hskoglund i got this when trying to install - Error 0x80070666: Cannot install a product when a newer version is installed.


Solved Compiling Qt 5.10.0 with GCC on macOS 10.13?

$
0
0

Thanks, I didn't know it was deprecated. I'll use Clang.

Unsolved Installing Qt on Budgie Ubuntu

$
0
0

Hello,

I am trying to get Qt work on Ubuntu. I have installed Qt, cmake and g++. However, for some reason when setting up a simple test program I can click the green button to build the program, but nothing happens afterwards. I don't get any error either. Those are my settings:0_1519135485124_VirtualBox_2018-02-20_14-34-17.png 0_1519135496767_VirtualBox_2018-02-20_14-35-18.png
Any ideas about what could be wrong?

Unsolved Compiling QT on windows for cross compilation with raspberry, fails. Project ERROR: Cannot run target compiler

$
0
0

Hello,

I am running windows on my computer, trying to build QT 5.10.1 for cross compilation on my Raspberry Pi Zero Wireless.

I am trying to follow the tutorial here: https://wiki.qt.io/RaspberryPi2EGLFS

I came all the way until step 10, and stuck there.

Running the following command:

configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=C:/qt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot C:/qt/raspi/sysroot -no-use-gold-linker -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix C:/qt/raspi/qt5pi -hostprefix C:/qt/raspi/qt5 -v

the output is:

C:\qt\raspi\qtbase>configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=C:/qt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot C:/qt/raspi/sysroot -no-use-gold-linker -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix C:/qt/raspi/qt5pi -hostprefix C:/qt/raspi/qt5 -v
Running syncqt ...
<srcbase> = C:/qt/raspi/qtbase
<outbase> = C:/qt/raspi/qtbase
Bootstrapping qmake ...
mingw32-make: Nothing to be done for 'first'.
Command line: -release -opengl es2 -device linux-rasp-pi3-g++ -device-option "CROSS_COMPILE=C:/qt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-" -sysroot C:/qt/raspi/sysroot -no-use-gold-linker -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix C:/qt/raspi/qt5pi -hostprefix C:/qt/raspi/qt5 -v
Project ERROR: Cannot run target compiler 'C:/qt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++'. Output:
===================
'C:/qt/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++' is not recognized as an internal or external command,
operable program or batch file.
===================
Maybe you forgot to setup the environment?

I checked, and the file exists but windows doesnt let me to run it this way. any help appreciated.

Thanks in advance.

Unsolved Qt 5.9.4 OpenGL examples crash

$
0
0

The source code for qtbase/examples/opengl/contextinfo are very similar in 5.3.2 and 5.9.4. The latter has some command line arguments, and minor fixes.

Can the issue be related to existence of /usr/include/drm directory during compilation?
I am asking, because I have seen that, while packaging ArchLinux linux-api-headers , /usr/include/drm is removed:

# use headers from libdrm rm -r "$pkgdir/usr/include/drm"

During the compilation of contextinfo example, 5.9.4 has an extra /usr/include/libdrm include path, while 5.3.2 does not.

Here is the sorted output of ldd contextinfo for 5.9.4 on the left and 5.3.2 on the right (both link libdrm):

Unsolved HelloWorld 5.10.1 / MSVC2013 build fails in qstringview.h

$
0
0

For a new first time install (and user of Qt) on Win10 with MS Visual Studio 2013, I'm trying to create a simple helloWorld application. (File->NewFile or Project: Qt Widgets Application)

I've installed 5.10.1 for MinGW & MSVC2013-64b, as well as 5.6.2 for MinGW & MSVC2013-32&64b.

I can build and run 5.6.2 for all combinations of compilers, and 5.10.1 for MinGW.

However, when I try to build for 5.10.1 I get build errors and warnings.

The warning is:
cl : Command line warning D9002 : ignoring unknown option '-Zc:inline'

The error is:
C:\Qt\5.10.1\msvc2013_64\include\QtCore/qstringview.h(178) : fatal error C1001: An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\convert.cpp', line 10610)

Most importantly, I'd like to know how to get past the compile error. Second I'd like to know how to get rid of the -Z warning.

Any hints??

Unsolved qt design tab is disabled

$
0
0

Hello guys I cannot use GUI designer of qt because it is disabled.

here's what happen first I open the qt then the dialog show some problem.
The dialog messages
The following plugins have errors and cannot be loaded:
-QmlDesigner
-QmlProfiler

The Details:
Plugin initialization failed: Cannot create OpenGL context.

How to solve this?

Unsolved No examples/program is getting executed with Qt5.10.0

$
0
0

Hello , i have made a new install of Qt 5.10.0 ( earlier i was using Qt5.9.1 )
Platform : Windows 10

Everything was working fine with Qt5.9.1 . All examples and projects were running fine . When i downloaded Qt5.10.0 .

No program / example is running . It do builds but when i click on run . it says "The program has unexpectedly finished.
The process was ended forcefully."

I did searched on google , most of the answers were about installing MSVC 2015 and windows 10 SDK. I am sure i have both ( that's why 5.9.1 was working fine in first place )

Qt settings as shown in my Qt creator

0_1519328473203_plag.PNG

P.S. what is the stable version of current Qt , is it 5.9 or 5.10 .


Solved Unable to compile Qt5.8 with MingW 64 bit compiler

$
0
0

A bit dirty, yet effective solution:

sed -i ‘/^ *# *define *HAS_UI_VIEW_SETTINGS_INTEROP *$/d‘ qtbase/src/plugins/platforms/windows/qwin10helpers.cpp

Unsolved Can not remote Run QT Example-Camera on i.Mx6Q

$
0
0

This is the application output:

sh: /root/camera: not found
Application finished with exit code 127.

How to fix this problem? Thanks

I'm using Buildroot 'imx6-sabresd_qt5_defconfig' and adding 'openssh', 'gdb'

And the following is what I set up Qt Creator for i.Mx6Q:

  1. Tools > Options > Build & Run > Compilers
    Name : imx6 buildroot GCC
    buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-g++

  2. Tools > Options > Build & Run > Debuggers
    Name : IMX6 buildroot gdb
    buildroot/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gdb

  3. Tools > Options > Build & Run > Qt Versions
    Version Name : Qt %{Qt:Version} (buildroot)
    buildroot/output/host/usr/bin/qmake

  4. camera.pro
    ++ target.path = /root
    ++ INSTALLS += target
    -- target.path = $$[QT_INSTALL_EXAMPLES]/multimediawidgets/camera
    -- INSTALLS += target

Unsolved QtIFW QtPatch.cpp

Unsolved windeployqt.exe for exe QT dependencies

$
0
0

Hi,

AFAIK, you only need to run it against your application.

Note that's typically something that is faster tested than waiting for an answer on the forum.

Unsolved Could not start process "mingw32-make.exe" qmake_all

$
0
0

I just noticed this error:
"GNU gdb7.10.1 for MinGW 5.3.0 C:\Qt\Tools\mingw530_32\bin\gdb.exe NOT Recognized " in the Buit and Run --> Debuggers dialog box.

I just wanted to add that I got this Kits and Qt Version:
Desktop Qt5.10.0 MinGW 32bits3
Desktop Qt5.10.1 MinGW 32bits3
Desktop Qt5.9.3 MinGW 32bits3
They have a yellow exclamation mark warning sign ico

Viewing all 22112 articles
Browse latest View live


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