Hi and welcome to devnet,
Qt 5.12.1 got released a few days ago, can you try with that one ?
Hi and welcome to devnet,
Qt 5.12.1 got released a few days ago, can you try with that one ?
for any ubuntu 18.04 users (like me) finding this discussion through web search... don't use the ubuntu QT install from apt-get, instead install open-source-QT from the QT website. It's installer program will install binaries, including qt-for-android into it's own subdirectory.
Hi,
Is it possible to customize the Boot to Qt system to add the Xenomai features?
My problem is that I have an application working on Vxworks with a very old graphical environment and real time constrains (< 1ms). Now I have to replace the old GUI by a new one, using Qt, but keeping the existing real time functions. The low layers of my application work fine on linux with Xenomai.
My goal is to have the GUI (Qt/Qml) running in the main process connected with a second process, executed on a second core, using Xenomai to execute the low layres of my application with its real time constrains.
Is-it possible to do that with Qt for device creation and Boot to Qt?
Thanks.
I was trying to upgrade my Centos 7.5 Dockerfile from using 5.12.0 to 5.12.1.
The only thing that I change in the Dockerfile were the version numbers (5.12.0 to 5.12.1) in the following lines:
#install qt5.12
ADD qt-installer-noninteractive.qs .
RUN wget -q http://download.qt.io/archive/qt/5.12/5.12.1/qt-opensource-linux-x64-5.12.1.run
RUN chmod +x qt-opensource-linux-x64-5.12.1.run
RUN ./qt-opensource-linux-x64-5.12.1.run --platform minimal --script qt-installer-noninteractive.qs --verbose
RUN /opt/Qt/Tools/QtCreator/bin/qbs setup-toolchains --detect
RUN /opt/Qt/Tools/QtCreator/bin/qbs setup-qt '/opt/Qt/5.12.1/gcc_64/bin/qmake' QtProfile
RUN /opt/Qt/Tools/QtCreator/bin/qbs config profiles.QtProfile.baseProfile clang
ENV PATH="/opt/Qt/5.12.1/gcc_64/bin:${PATH}"
ENV LD_LIBRARY_PATH="/opt/Qt/5.12.1/gcc_64/lib:${LD_LIBRARY_PATH}"
Now when I run a very basic application (just a empty QMainwindow) using a docker-compose file it crashes.
I saw in another post here on the forum that suggested using QT_DEBUG_PLUGINS=1
Where I got the following error message:
application-run | Got keys from plugin meta data ("xcb")
application-run | QFactoryLoader::QFactoryLoader() checking directory path "/home/polaris/bin/platforms" ...
application-run | Cannot load library /opt/Qt/5.12.1/gcc_64/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
application-run | QLibraryPrivate::loadPlugin failed on "/opt/Qt/5.12.1/gcc_64/plugins/platforms/libqxcb.so" : "Cannot load library /opt/Qt/5.12.1/gcc_64/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)"
application-run | qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
application-run | This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
application-run |
application-run | Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
application-run |
I've tried all the suggestions in the post that I linked to above, and non of them fix this problem.
Again this application runs fine on Qt 5.12.0.
I'm trying to use QTCharts 2.1.0 for QT 5.4.1 version. I use opensource QT and tried to install QTCharts as the instructions shown in this qtcharts github release-2.1.0 link
I build without any problems but when I try to run it with nmake I get the exception shown belown and I genuinely have no idea about the reason. So, I'd appreciate any help. I'm using VS2012 x86 Native Tools Command Prompt btw.
Exception:
C:\Qt\Qt5.4.1\5.4\msvc2012_opengl\bin\moc.exe -DUNICODE -DWIN32 -DQT_CHA
RTS_LIBRARY -DQT_BUILD_CHARTS_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_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_COR
E_LIB -DNDEBUG -D_MSC_VER=1700 -D_WIN32 @.moc/release/mocinclude.tmp axis\cartes
ianchartaxis_p.h -o .moc\release\moc_cartesianchartaxis_p.cpp
axis\cartesianchartaxis_p.h(44): Error: Undefined interface
NMAKE : fatal error U1077: 'C:\Qt\Qt5.4.1\5.4\msvc2012_opengl\bin\moc.exe' : ret
urn code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
Greetings everyone. I'm needing to get the nativeHandle for a QOpenGLWidget in order to set up initialisation for some OpenCL (note: CL, not GL) functions. As I am on Mac, it seems I need to include some specific Qt headers.
#include <QtPlatformHeaders/QCocoaNativeContext>
However, in QtCreator it doesn't seem to be finding these specific platform headers.
I can confirm my Qt installation contains them at: (MyQtDir)/5.12.1/clang_64/include/QtPlatformHeaders/
I have also tried
#include <QCocoaNativeContext>
as indicated here: https://doc.qt.io/qt-5/qcocoanativecontext.html
I figured it was perhaps a missed Add-On, but I've looked in the Maintenance Tool -> Add / Remove Components... but I don't see any items that either refer to this QtPlatformHeaders Add-On module directly.
https://doc.qt.io/qt-5/qtplatformheaders-index.html
Sadly I'm at something of a loss as to how to resolve this.
Hi all,
I would like to build QT in debug mode on Win10 with MSVC with compiler option /D _ITERATOR_DEBUG_LEVEL=0
Could you please help me where or how should I set the flag. Preferably only once for all QT modules.
IMHO there isn't option for setting CXXFLAGS in configure.bat
Thanks
More about _ITERATOR_DEBUG_LEVEL
https://docs.microsoft.com/cs-cz/cpp/standard-library/iterator-debug-level?view=vs-2017
Hello,
I'm working on the installation of qt for cross-compiling.
For the installation I followed tho wiki:
https://wiki.qt.io/RaspberryPi2EGLFS
The Qt-Version is: 5.10.1 for raspberry#zero w
On step 10 I tried to execute the following command:
./configure -release -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/raspi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
But I got an error
You don't seem to have 'make' or 'gmake' in your PATH.
Cannot proceed.
This is my PC:
Ubuntu 18.04.2 LTS
4.15.0-29-generic x86_64
Please could somebody give me a solution?
Thanks in advance.
http://download.qt.io/archive/qt/5.6/5.6.3/single/qt-everywhere-opensource-src-5.6.3.tar.xz
./configure -static -debug-and-release -nomake examples -nomake tests -prefix ~/Qt/5.6.3_static_osx -qt-sql-sqlite -plugin-sql-sqlite -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -opensource -confirm-license -opengl -qt-freetype
qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mm
file before executionmake
is not an error, but make install
errorI solved the problem. Actually this is the linker error. Some required libraries were missing, so I added them as per the Readme document of the GLG toolkit(for C++).
I installed the compatible GLG program and in .pro file of Qt program the library path was properly included as :
INCLUDEPATH += . /opt/glg3.7/include #comment (this line includes the header files)
LIBS = -L/opt/glg3.7/lib -lglg_x11 -lglg_map_stub
-lXt -lX11 -ljpeg -lpng -lz -ldl -lXft -lfontconfig -lfreetype #comment (-L includes the library folder and -l include the libraries itself)
Hi,
i am running iMx6 with Debian and trying to configure Qt5.12.0.
So this is my configuration:
../qt-everywhere-src-5.12.0/configure \
-v \
-opengl es2 -eglfs \
-no-gtk \
-opensource -confirm-license -release \
-reduce-exports \
-force-pkg-config \
-nomake examples -no-compile-examples \
-skip qtwayland \
-skip qtwebengine \
-skip qtscript \
-no-feature-geoservices_mapboxgl \
-qt-pcre \
-no-pch \
-ssl \
-evdev \
-system-freetype \
-fontconfig \
-glib \
-prefix /usr/local/Qt5.12 \
-qpa eglfs \
QMAKE_CFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon" \
QMAKE_CXXFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=neon" \
QMAKE_LIBS_EGL="-lEGL -lGLESv2" QMAKE_LIBS_OPENVG="-lEGL -lOpenVG -lGLESv2" \
QMAKE_LIBDIR_OPENGL_ES2=/usr/lib QMAKE_INCDIR_OPENGL_ES2="/usr/include" \
QMAKE_LIBDIR_EGL=/usr/lib QMAKE_INCDIR_EGL="/usr/include" \
QMAKE_LIBDIR_OPENVG=/usr/lib QMAKE_INCDIR_OPENVG="/usr/include" \
-DEGLFS_DEVICE_INTEGRATION=eglfs
this is the issue:
ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.
ERROR: Feature 'eglfs' was enabled, but the pre-condition '!config.android && !config.darwin && !config.win32 && features.egl' failed.
ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
Here my Output text
Configure summary:
Build type: linux-g++ (arm, CPU features: neon)
Compiler: gcc 4.9.2
Configuration: use_gold_linker enable_new_dtags largefile neon shared rpath release c++11 c++14 concurrent dbus reduce_exports stl
Build options:
Mode ................................... release
Optimize release build for size ........ no
Building shared libraries .............. yes
Using C standard ....................... C89
Using C++ standard ..................... C++14
Using ccache ........................... no
Using gold linker ...................... yes
Using new DTAGS ........................ yes
Using precompiled headers .............. no
Using LTCG ............................. no
Target compiler supports:
NEON ................................. yes
Build parts ............................ libs tools
Qt modules and options:
Qt Concurrent .......................... yes
Qt D-Bus ............................... yes
Qt D-Bus directly linked to libdbus .... yes
Qt Gui ................................. yes
Qt Network ............................. yes
Qt Sql ................................. yes
Qt Testlib ............................. yes
Qt Widgets ............................. yes
Qt Xml ................................. yes
Support enabled for:
Using pkg-config ....................... yes
udev ................................... no
Using system zlib ...................... yes
Qt Core:
DoubleConversion ....................... yes
Using system DoubleConversion ........ no
GLib ................................... yes
iconv .................................. no
ICU .................................... yes
Tracing backend ........................ <none>
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
Using system PCRE2 ..................... no
Qt Network:
getifaddrs() ........................... yes
IPv6 ifname ............................ yes
libproxy ............................... no
Linux AF_NETLINK ....................... yes
OpenSSL ................................ yes
Qt directly linked to OpenSSL ........ no
OpenSSL 1.1 ............................ no
DTLS ................................... no
SCTP ................................... no
Use system proxies ..................... yes
Qt Gui:
Accessibility .......................... yes
FreeType ............................... yes
Using system FreeType ................ yes
HarfBuzz ............................... yes
Using system HarfBuzz ................ no
Fontconfig ............................. yes
Image formats:
GIF .................................. yes
ICO .................................. yes
JPEG ................................. yes
Using system libjpeg ............... yes
PNG .................................. yes
Using system libpng ................ yes
EGL .................................... no
OpenVG ................................. no
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ no
OpenGL ES 3.0 ........................ no
OpenGL ES 3.1 ........................ no
OpenGL ES 3.2 ........................ no
Vulkan ................................. no
Session Management ..................... yes
Features used by QPA backends:
evdev .................................. yes
libinput ............................... no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. yes
xkbcommon-evdev ........................ yes
QPA backends:
DirectFB ............................... no
EGLFS .................................. no
LinuxFB ................................ yes
VNC .................................... yes
Mir client ............................. no
Qt Sql:
SQL item models ........................ yes
Qt Widgets:
GTK+ ................................... no
Styles ................................. Fusion Windows
Qt PrintSupport:
CUPS ................................... no
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... no
Qt Testlib:
Tester for item models ................. yes
Qt SerialBus:
Socket CAN ............................. yes
Socket CAN FD .......................... yes
Qt QML:
QML network support .................... yes
QML debugging and profiling support .... yes
QML sequence object .................... yes
QML list model ......................... yes
QML XML http request ................... yes
QML Locale ............................. yes
QML delegate model ..................... yes
Qt Quick:
Direct3D 12 ............................ no
AnimatedImage item ..................... yes
Canvas item ............................ yes
Support for Qt Quick Designer .......... yes
Flipable item .......................... yes
GridView item .......................... yes
ListView item .......................... yes
TableView item ......................... yes
Path support ........................... yes
PathView item .......................... yes
Positioner items ....................... yes
Repeater item .......................... yes
ShaderEffect item ...................... yes
Sprite item ............................ yes
Qt Scxml:
ECMAScript data model for QtScxml ...... yes
Qt Gamepad:
SDL2 ................................... no
Qt 3D:
Assimp ................................. yes
System Assimp .......................... no
Output Qt3D Job traces ................. no
Output Qt3D GL traces .................. no
Use SSE2 instructions .................. no
Use AVX2 instructions .................. no
Aspects:
Render aspect ........................ yes
Input aspect ......................... yes
Logic aspect ......................... yes
Animation aspect ..................... yes
Extras aspect ........................ yes
Qt 3D Renderers:
OpenGL Renderer ........................ yes
Qt 3D GeometryLoaders:
Autodesk FBX ........................... no
Qt Bluetooth:
BlueZ .................................. no
BlueZ Low Energy ....................... no
Linux Crypto API ....................... no
WinRT Bluetooth API (desktop & UWP) .... no
Qt Sensors:
sensorfw ............................... no
Qt Quick Controls 2:
Styles ................................. Default Fusion Imagine Material Universal
Qt Quick Templates 2:
Hover support .......................... yes
Multi-touch support .................... yes
Qt Positioning:
Gypsy GPS Daemon ....................... no
WinRT Geolocation API .................. no
Qt Location:
Qt.labs.location experimental QML plugin . yes
Geoservice plugins:
OpenStreetMap ........................ yes
HERE ................................. yes
Esri ................................. yes
Mapbox ............................... yes
MapboxGL ............................. no
Itemsoverlay ......................... yes
QtXmlPatterns:
XML schema support ..................... yes
Qt Multimedia:
ALSA ................................... yes
GStreamer 1.0 .......................... no
GStreamer 0.10 ......................... no
Video for Linux ........................ yes
OpenAL ................................. no
PulseAudio ............................. yes
Resource Policy (libresourceqt5) ....... no
Windows Audio Services ................. no
DirectShow ............................. no
Windows Media Foundation ............... no
Note: Also available for Linux: linux-clang linux-icc
Any idea?
Hello !
I'm trying to install "serialbus" module. Because, I would like to code a communication between two devices with modbus protocol.
But it doesn't work.
I'm working with :
Here, my Build & run's configuration :
I don't know what linux package to install.
Thank you for your help.
PP
Re: Unable to get sedkit-env-webkit package
E: The repository 'http://ppa.launchpad.net/u-szeged/sedkit/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
This is the error I get when you try adding the ppa by the command
sudo apt-add-repository ppa:u-szeged/sedkit
Hello,
with your help I got qt running on my UBUNTU-PC and I also can remotely create software for a raspberry#Zero-w.
But now I can't debug.
As I start debugging I get the following error:
The selected build of GDB does not support Python scripting.
It cannot be used in Qt Creator.
I found something that I need to install gdb-multiarch on Ubuntu. s this correct? and where I have to setup the GDB?
Who can give me some help?
Kurt
I am new to qt. I just install qt tools for visual studio 2017 but when ever I try to create a project it returns an error dialog saying "Object reference not set to an instance of an object". Thanks in advance.
@martonmiklos said in Qt Installer Framework: Spaces in target paths (Windows7-64):
How did you managed to import the Dir component?
In QIF 3 dynamic page example, there is the following definition (installscript.js):
var Dir = new function () { this.toNativeSparator = function (path) { if (systemInfo.productType === "windows") return path.replace(/\//g, '\\'); return path; } };@SGaist Ahh, okay I see it.
Clone Build Config -> Delete Build Steps -> add Custom Process Step
Thanks for the inspiration!
You found a solution "Add Repositories". Have you succeeded populating that repository list via that button? I would imagine that it is impossible for anyone needing the installer in the first place.
Hi,
I just installed Qt 5.12 with MinGW 7.30 64bit (and VS2017 64bit). Qt Creator auto detects both compilers and generates the kits, but for MinGW it identifies the wrong directories to the compiler/debugger (32bit instead of 64bit).
Is there a way to change it? I temporary resolved it by renaming the dir in the Qt installation directory, but I would like my auto detected kits to point to the intended dirs :)
Thanks for the help,
Jan
@RDORG said in What are the source and build directories for a plugin testing Qt Creator instance?:
I am not able to find Source code
Did you mean Qt 4.6.0 setup ?