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

[[qanda:topic_solved]] dll error when starting Qt Creator 4.8.2

$
0
0
@helicron I downloaded Python 3.6.8 and moved the python36.dll to my QtCreator/bin folder (C:\Qt\Tools\QtCreator\bin for me). Now it doesn't show the error anymore.

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

$
0
0
I spoke too soon. I do have the application building but video is not yet playing. I was told that the issue may be because I am using MinGW rather than MSVC. I was able to trim down a sample application which I thought that I should share in case anyone else wants to give this a try. I see the video test pattern when I build it from QT Creator but not when I deploy it as a stand alone application. If you are able to see the test pattern as a stand alone application, please post here how you got it working. Thank you! mini.pro: TEMPLATE = app TARGET = videoapp QT += multimedia multimediawidgets network widgets core gui CONFIG += link_pkgconfig PKGCONFIG += gstreamer-1.0 \ glib-2.0 \ gobject-2.0 \ gio-2.0 \ gstreamer-video-1.0 \ gstreamer-audio-1.0 linux { # PKGCONFIG += gstvideo-1.0 LIBS += -L/usr/lib/i386-linux-gnu/ -lgstvideo-1.0 # I don't think you need the INCLUDEPATH below if pkg-config is working correctly INCLUDEPATH += \ /usr/include/gstreamer-1.0 \ /usr/include/glib-2.0/ \ /usr/lib/x86_64-linux-gnu/glib-2.0/include/ } mac { PKG_CONFIG = /usr/local/bin/pkg-config PKGCONFIG += gstreamer-video-1.0 gstreamer-audio-1.0 } win32 { ## - Everything is set in the QT Project Build ENV, including: #Set GSL_PLUGIN_PATH to C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0 #Set GSTREAMER_INCDIR to C:\gstreamer\1.0\x86_64\include\gstreamer-1.0 #Set GSTREAMER_LIBDIR to C:\gstreamer\1.0\x86_64\lib #Add this to Path: C:\gstreamer\1.0\x86_64\bin\ } HEADERS = SOURCES = \ main.cpp main.cpp: #include <QApplication> #include <QTimer> #include <QLabel> #include <QWidget> #include <QVBoxLayout> #include <gst/gst.h> #include <gst/video/videooverlay.h> /* added to work on OSX */ #ifdef __APPLE__ #ifdef TARGET_OS_MAC #include <glib/deprecated/gthread.h> #endif #endif void gst(int argc, char *argv[]) { gst_init (&argc, &argv); QApplication app(argc, argv); app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit ())); QString videosinkStr, audiosinkStr, pipelinestr; GstElement *m_pipeline, *sink; #ifdef _WIN32 // TODO: any difference on videosink definition between _WIN32 and _WIN64? videosinkStr = "d3dvideosink"; // test: dshowvideosink, d3dvideosink, directsoundsink audiosinkStr = "volume ! directsoundsink"; #endif #ifdef __APPLE__ #ifdef TARGET_OS_MAC videosinkStr = "glimagesink"; // also test: osxvideosink, osxaudiosink audiosinkStr = "volume ! osxaudiosink"; #endif #endif #ifdef __linux__ videosinkStr = "xvimagesink"; // ximagesink is a winner on my PopOS machine! //also test: ximagesink, xvimagesink, alsasink, pulsesink audiosinkStr = "volume ! alsasink"; #endif pipelinestr = "videotestsrc ! "+videosinkStr+" name=video_out"; m_pipeline = gst_parse_launch (pipelinestr.toStdString().c_str(), NULL ); sink = gst_bin_get_by_name(GST_BIN(m_pipeline), "video_out"); QWidget window; QLabel *label = new QLabel("Video Test Pattern"); QWidget *widget = new QWidget(); widget->setFixedSize(640,360); WId xwinid = widget->winId(); gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (sink), guintptr(xwinid)); QVBoxLayout qboxLayout; qboxLayout.addWidget(label); qboxLayout.addWidget(widget); window.setLayout(&qboxLayout); window.resize(660, 380); window.show(); // run the pipeline GstStateChangeReturn sret = gst_element_set_state (m_pipeline, GST_STATE_PLAYING); if (sret == GST_STATE_CHANGE_FAILURE) { gst_element_set_state (m_pipeline, GST_STATE_NULL); gst_object_unref (m_pipeline); // Exit application QTimer::singleShot(0, QApplication::activeWindow(), SLOT(quit())); } app.exec(); } int main(int argc, char *argv[]) { gst(argc, argv); return true; }

[[qanda:topic_unsolved]] Problem with qt installer

$
0
0

Hi everyone, i get this error when I try to deploy my qt project with the Qt installer:

[2490] Warning: QFile::remove: Empty or null file name
Caught exception: Cannot find any user interface matching "page.ui" while copying user interface of "AutoLearn_app".

What it means?

[[qanda:topic_unsolved]] Executable from binaries doesn t work

$
0
0

Hello, I have a big problem here. When I build my project in release mode it supposed to give me in a folder the binaries, right? The thing is that the executable from binaries don't want to run. ("Could not display <appname>"). What can I do?

[[qanda:topic_unsolved]] QML plugins are not imported when using CMake and static Qt

$
0
0

Hello!

Recently I have been struggling with CMake & static Qt build.
Consider a very simple application written with QML:

import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Window 2.14

Window {
  visible: true
  width: 640
  height: 480
  title: qsTr("Hello World")

  Button {
    anchors.centerIn: parent
    text: "Button :)"
  }
}

When I build this application using qmake everything works fine. I can run my app without any troubles, everything is packed inside executable. However, using CMake for the same project produces executable that not contain qml plugins (Error in runtime: QQmlApplicationEngine failed to load component qrc:/main.qml:1:1: module "QtQuick" plugin "qtquick2plugin" not found

My CMake file:

cmake_minimum_required(VERSION 3.5)

project(cmake_sample LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(BUILD_SHARED_LIBS OFF)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


find_package(Qt5 COMPONENTS Core Quick REQUIRED)

add_executable(cmake_sample
    main.cpp
    qml.qrc
)

target_compile_definitions(cmake_sample
  PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(cmake_sample
  PRIVATE Qt5::Core Qt5::Quick)

To fix this I have to manually import & link all required QML plugins. While it solves the problem, it's very bulky on larger projects. I have the impression that these plugins should be automatically imported (others, like imageformats are ...)

Question: Is it intended in CMake or it is a bug? If it is intended, is there any correct and elegant solution to properly configure CMake project against static Qt?

[[qanda:topic_unsolved]] qt5.14.1 raspberry pi 4 eglfs_kms failed

$
0
0

I think to get correctly compiled the qt for raspberry pi4 in windows.
On the raspberry I can't use eglfs_kms (works for example with lunuxfb), I hit this error "qt.qpa.egldeviceintegration: Failed to load EGL device integration" eglfs_kms Could not initialize egl display ".
I really can't understand what is wrong, maybe the libraries on the raspberry are not correctly linked?
Please help me, I tried everything..
Thnaks.

Partial config.summary:
EGL .................................... yes
OpenVG ................................. no
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ yes
OpenGL ES 3.0 ........................ yes
OpenGL ES 3.1 ........................ yes
OpenGL ES 3.2 ........................ yes
Vulkan ................................. no
Session Management ..................... yes

EGLFS .................................. yes
EGLFS details:
EGLFS OpenWFD ........................ no
EGLFS i.Mx6 .......................... no
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... yes
EGLFS GBM ............................ no
EGLFS VSP2 ........................... no
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... no
EGLFS X11 ............................ no
LinuxFB ................................ yes
VNC .................................... yes

Library on Raspberry:
pi@raspberrypi:~ $ ls -lisa /usr/local/qt5/plugins/platforms
total 1676
263371 4 drwxr-xr-x 2 pi pi 4096 Mar 30 10:28 .
263327 4 drwxr-xr-x 24 pi pi 4096 Mar 30 10:41 ..
263372 12 -rwxr-xr-x 1 pi pi 9664 Mar 30 10:19 libqeglfs.so
263373 368 -rwxr-xr-x 1 pi pi 372868 Mar 30 10:20 libqlinuxfb.so
263375 128 -rwxr-xr-x 1 pi pi 129912 Mar 30 10:20 libqminimalegl.so
263374 100 -rwxr-xr-x 1 pi pi 100844 Mar 30 10:19 libqminimal.so
263376 116 -rwxr-xr-x 1 pi pi 117436 Mar 30 10:19 libqoffscreen.so
263377 200 -rwxr-xr-x 1 pi pi 204220 Mar 30 10:20 libqvnc.so
263378 744 -rwxr-xr-x 1 pi pi 760108 Mar 30 10:28 libqwebgl.so

pi@raspberrypi:~ $ ldd /usr/local/qt5/plugins/platforms/libqeglfs.so
linux-vdso.so.1 (0xbef68000)
/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so => /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so (0xb6fa3000)
libQt5EglFSDeviceIntegration.so.5 => /usr/local/qt5/plugins/platforms/../../lib/libQt5EglFSDeviceIntegration.so.5 (0xb6ef4000)
libfontconfig.so.1 => /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1 (0xb6e98000)
libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0xb6df5000)
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6dca000)
libQt5Gui.so.5 => /usr/local/qt5/plugins/platforms/../../lib/libQt5Gui.so.5 (0xb683f000)
libQt5DBus.so.5 => /usr/local/qt5/plugins/platforms/../../lib/libQt5DBus.so.5 (0xb67a4000)
libQt5Core.so.5 => /usr/local/qt5/plugins/platforms/../../lib/libQt5Core.so.5 (0xb61d0000)
libGLESv2.so.2 => /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 (0xb61b1000)
libEGL.so.1 => /usr/lib/arm-linux-gnueabihf/libEGL.so.1 (0xb6192000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb6168000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb6155000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb600e000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb5f8c000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb5f5f000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb5e11000)
libexpat.so.1 => /lib/arm-linux-gnueabihf/libexpat.so.1 (0xb5dd0000)
libuuid.so.1 => /lib/arm-linux-gnueabihf/libuuid.so.1 (0xb5db9000)
/lib/ld-linux-armhf.so.3 (0xb6fcb000)
libpng16.so.16 => /usr/lib/arm-linux-gnueabihf/libpng16.so.16 (0xb5d7d000)
libGLdispatch.so.0 => /usr/lib/arm-linux-gnueabihf/libGLdispatch.so.0 (0xb5cfe000)

[[qanda:topic_unsolved]] Want to add a embedded device to Host machine for QT5 as USB device

$
0
0
@Rathore You would first need to cross compile it for your device. Then deploy it to your device and run it there. What device is that and do you have build tools (like compiler) and sysroot for it?

[[qanda:topic_unsolved]] installer not working

$
0
0
@Goddard This is usually caused by bad mirror. There is a tool from @JKSH : https://github.com/JKSH/QtSdkRepoChooser You can use it to choose a different mirror.

[[qanda:topic_unsolved]] What's the proper way to bisect qtbase on windows?

$
0
0

I'd like to know what's the proper way to bisect qtbase in order to find bugs without having to do cold builds over and over. Right now my extremely unefficient workflow to find qtbase bugs looks like this:

  1. I find a bug and I create a mcve
  2. I start bisecting
  3. I'll delete the current build folder (no ccache on windows), I'll configure and build again
  4. Test and if i didn't find the bad guy I'll back to 3)

As you may notice using this method is extremely slow/painful and not practical at all, on win7/msvc2017 using /j8 with no tests/examples each iteration is taking me ~1500s!!! That's nuts!

That said, I'm probably doing something clearly wrong here... so could you please advice to speed up the bug hunting?

Thanks in advance.

[[qanda:topic_solved]] Qt doesn't find MSVC2017 compiler - installed from VS Build Tools 2019

$
0
0
You can configure Qt Creator's compiler to pick up vs2017 compiler installed with VS2019 build tool by passing "amd64 -vcvars_ver=14.16.27023" arguments to the "Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" script.

Slow downloads with the online installer? Try this tool

$
0
0
Fiddler-proxy with hostname-replacing helped me download from fastest mirror in my country. I try this tool, but Qt Installer still download from download.qt.io (only local rep was enabled) I past all links from this page http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe.mirrorlist in DownloadMaster and find the fastest server in Kazakhstan is mirrors.dotsrc.org In Qt Installer settings I add proxy 127.0.0.1:8888 In Fiddler I change Customize Rules "OnBeforeRequest": if (oSession.HostnameIs("download.qt.io") && oSession.PathAndQuery.StartsWith("/online/")) { oSession.hostname = "mirrors.dotsrc.org"; oSession.PathAndQuery = oSession.PathAndQuery.Replace("/online/", "/qtproject/online/"); } downloading speed changed from 300Kb/s to 10MB/s

[[qanda:topic_unsolved]] undefined reference to `qt_resourceFeatureZlib'

$
0
0
yes ,I also have this problem i run my app in imx6ull it show me “ relocation error: ./App: symbol qt_resourceFeatureZlib version Qt_5 not defined in file libQt5Core.so.5 with link time reference ” QT version is 5.14

[[qanda:topic_unsolved]] Add a new font to QtCreator

$
0
0

Hi,

I want to use a font that is not available in QtCreator now, but not using QFontDatabase because I want to see the appearance in the design phase (no need to have to run my application to see how it looks).

Thanks.

[[qanda:topic_unsolved]] Attempting Windows deployment - .exe file not opening with no error messages

$
0
0
@Pablo-J-Rogina Hi, thanks for your quick reply. It does nothing at all unfortunately

[[qanda:topic_unsolved]] Passing target directory from QT Installer to the Application

$
0
0

I am planning to deploy my application to macOS and Windows. Upon reading the documentation of QT Installer Framework, I understand that I can provide a default installation path in the config xml which the user can overwrite.

In my application, I want to generate license files based on the installation path decided by the user. Hence, I need to have the installation path selected by the user passed to the application.

Is there a way that I can get the target installation directory selected by the user in the application.

Thanks.


[[qanda:topic_unsolved]] Setup Qt for android on mac

$
0
0
Hi and welcome to devnet, There have been several similar questions these past days. Please search the forum.

[[qanda:topic_unsolved]] Offline-installer 'make install' equivalent?

$
0
0
@SGaist - Thanks! To ensure that I am using distribution-provided components I installed qtcreator: sudo apt install qtcreator I also tried to install qml-module-qtquick-controls - apparently it is already installed: etna:~$ sudo apt install qml-module-qtquick-controls Reading package lists... Done Building dependency tree Reading state information... Done qml-module-qtquick-controls is already the newest version (5.9.5-0ubuntu1). The following packages were automatically installed and are no longer required: gir1.2-geocodeglib-1.0 libfwup1 ubuntu-web-launchers Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. But qtcreator (distribution-provided) still says Project ERROR: Unknown module(s) in QT: quick Because myproject.pro includes "QT += quick". How do I make qtcreator find "quick"? Thanks Tom

[[qanda:topic_unsolved]] qt examples doesnt start after deployment with windeployqt.exe

$
0
0

Hi everybody, i am new to Qt development., Just recently installed the latest version of Qt 5.14.2 + VS2019 Pro (Windows 10) . I can run the examples inside the Qt Creator without any problem, but cant deploy the examples using windeployqt.exe... I did everything like in this video instruction: https://www.youtube.com/watch?v=gnpPosTbttM&list=PLQMs5svASiXNx0UX7tVTncos4j0j9rRa4&index=3

but after deployment procedure .exe just doesnt start (no errors and no GUI is shown up) . I tried diiferent examples (dashboard, quickGamepad, automotive and so on.. behavior is the same cant start exe outside of Qt Creator)

Help me please to find a solution...

[[qanda:topic_unsolved]] Cross-compiling Qt for ARM target not working - Need help

$
0
0

Hey everyone!

First a little background on what I'm trying to accomplish: I have an old eBook reader, a Tolino Shine to be exact, which I intend to use as a little status monitor, clock, calendar, etc. It's powered by a Freescale i.MX 5 processor and i've already managed to get Debian 8.11 running on it. I have to use such an old version because I'm stuck on kernel 2.6.35 and Debian 8 is the last version that will work with such an old kernel. Now I'd like to use Qt to build the software that's going to run on it and use the LinuxFB plugin to save some ressources by not having to run a X server in the background.

Now, I can't seem to figure out how to compile a Qt installation so I can build an application on my pc which I can then move to my target and run there.

I have already set up a fresh Ubuntu 18.04 VM with only build-essential, perl, python and g++-arm-linux-gnueabihf installed. On my target I have run "apt-get build-dep qt5-default" and installed the latest g++ available, which is 4.9. I then copied the whole filesystem of my target to a folder to use as sysroot. Am I doing this right?

I used this command to configure Qt:

./configure -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot ~/Desktop/sysroot -static -opensource -confirm-license

But I got a whole bunch of errors (log shorted):

vmuser@ubuntu:~/Desktop/qt_5.14.2$ ./configure -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot ~/Desktop/sysroot -static -opensource -confirm-license -v
+ cd qtbase
+ /home/vmuser/Desktop/qt_5.14.2/qtbase/configure -top-level -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot /home/vmuser/Desktop/sysroot -static -opensource -confirm-license -v
Creating qmake...
make: Nothing to be done for 'first'.
Command line: -device linux-tolino-g++ -device-option CROSS_COMPILE=arm-linux-gnueabihf- -no-opengl -no-pch -no-xcb -linuxfb -sysroot /home/vmuser/Desktop/sysroot -static -opensource -confirm-license -v

This is the Qt Open Source Edition.

You have already accepted the terms of the Open Source license.

Running configuration tests...

+ arm-linux-gnueabihf-g++ -dumpmachine
> arm-linux-gnueabihf

+ cd /home/vmuser/Desktop/qt_5.14.2/config.tests/verifyspec && /home/vmuser/Desktop/qt_5.14.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_LFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" -early "CONFIG += cross_compile" /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/verifyspec
+ cd /home/vmuser/Desktop/qt_5.14.2/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make
> arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -DLINUX=1 -Wno-psabi -no-pie -mfloat-abi=hard --sysroot=/home/vmuser/Desktop/sysroot -O2 -w -fPIC  -I/home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/verifyspec -I. -isystem /home/vmuser/Desktop/sysroot/usr/include -I/home/vmuser/Desktop/qt_5.14.2/qtbase/mkspecs/devices/linux-tolino-g++ -o verifyspec.o /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/verifyspec/verifyspec.cpp
> arm-linux-gnueabihf-g++ -Wl,-rpath-link,/home/vmuser/Desktop/sysroot/usr/lib -Wl,-rpath-link,/home/vmuser/Desktop/sysroot/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/home/vmuser/Desktop/sysroot/lib/arm-linux-gnueabihf -no-pie -mfloat-abi=hard --sysroot=/home/vmuser/Desktop/sysroot -Wl,-O1 -o verifyspec verifyspec.o   -L/home/vmuser/Desktop/sysroot/usr/lib -L/home/vmuser/Desktop/sysroot/lib/arm-linux-gnueabihf -L/home/vmuser/Desktop/sysroot/usr/lib/arm-linux-gnueabihf   
Checking for target architecture... 
+ cd /home/vmuser/Desktop/qt_5.14.2/config.tests/arch && /home/vmuser/Desktop/qt_5.14.2/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" "QMAKE_LFLAGS += --sysroot=/home/vmuser/Desktop/sysroot" -early "CONFIG += cross_compile" /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch
+ cd /home/vmuser/Desktop/qt_5.14.2/config.tests/arch && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make
> rm -f arch.o
> rm -f *~ core *.core
> arm-linux-gnueabihf-g++ -c -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -DLINUX=1 -Wno-psabi -no-pie -mfloat-abi=hard --sysroot=/home/vmuser/Desktop/sysroot -O2 -w -fPIC  -I/home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch -I. -isystem /home/vmuser/Desktop/sysroot/usr/include -I/home/vmuser/Desktop/qt_5.14.2/qtbase/mkspecs/devices/linux-tolino-g++ -o arch.o /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp
> In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
>                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/sys/cdefs.h:467:49: error: missing binary operator before token "("
>  #if __GNUC_PREREQ (4,8) || __glibc_clang_prereq (3,5)
>                                                  ^
> In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:225:17: error: missing binary operator before token "("
>  #if __GLIBC_USE (DEPRECATED_GETS)
>                  ^
> In file included from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:0:
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:46:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:49:1: error: ‘__END_NAMESPACE_STD’ does not name a type
>  __END_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~
> In file included from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:0:
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:108:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:114:1: error: ‘__END_NAMESPACE_STD’ does not name a type
>  __END_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~
> In file included from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:0:
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:176:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:181:1: error: ‘__END_NAMESPACE_STD’ does not name a type
>  __END_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:189:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:205:8: error: ‘FILE’ does not name a type
>  extern FILE *tmpfile64 (void) __wur;
>         ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:210:1: error: ‘__END_NAMESPACE_STD’ does not name a type
>  __END_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:232:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:242:20: error: ‘FILE’ was not declared in this scope
>  extern int fflush (FILE *__stream);
>                     ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:242:26: error: ‘__stream’ was not declared in this scope
>  extern int fflush (FILE *__stream);
>                           ^~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:242:26: note: suggested alternative: ‘__ptr_t’
>  extern int fflush (FILE *__stream);
>                           ^~~~~~~~
>                           __ptr_t
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:243:1: error: ‘__END_NAMESPACE_STD’ does not name a type
>  __END_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:266:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:278:8: error: ‘FILE’ does not name a type
>  extern FILE *freopen (const char *__restrict __filename,
>         ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:295:1: error: ‘__END_NAMESPACE_STD’ does not name a type
>  __END_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:299:8: error: ‘FILE’ does not name a type
>  extern FILE *freopen64 (const char *__restrict __filename,
>         ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:306:8: error: ‘FILE’ does not name a type
>  extern FILE *fdopen (int __fd, const char *__modes) __THROW __wur;
>         ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:312:8: error: ‘FILE’ does not name a type
>  extern FILE *fopencookie (void *__restrict __magic_cookie,
>         ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:319:8: error: ‘FILE’ does not name a type
>  extern FILE *fmemopen (void *__s, size_t __len, const char *__modes)
>         ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:325:8: error: ‘FILE’ does not name a type
>  extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW __wur;
>         ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:329:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:336:21: error: ‘FILE’ was not declared in this scope
>  extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
>                      ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:336:27: error: expected primary-expression before ‘__restrict’
>  extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
>                            ^~~~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:336:48: error: expected primary-expression before ‘char’
>  extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
>                                                 ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:337:7: error: expected primary-expression before ‘int’
>        int __modes, size_t __n) __THROW;
>        ^~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:337:27: error: expected primary-expression before ‘__n’
>        int __modes, size_t __n) __THROW;
>                            ^~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:337:30: error: expression list treated as compound expression in initializer [-fpermissive]
>        int __modes, size_t __n) __THROW;
>                               ^
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:338:1: error: ‘__END_NAMESPACE_STD’ does not name a type
>  __END_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:25: error: variable or field ‘setlinebuf’ declared void
>  extern void setlinebuf (FILE *__stream) __THROW;
>                          ^~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:25: error: ‘FILE’ was not declared in this scope
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:31: error: ‘__stream’ was not declared in this scope
>  extern void setlinebuf (FILE *__stream) __THROW;
>                                ^~~~~~~~
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:347:31: note: suggested alternative: ‘__ptr_t’
>  extern void setlinebuf (FILE *__stream) __THROW;
>                                ^~~~~~~~
>                                __ptr_t
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:351:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’?
>  __BEGIN_NAMESPACE_STD
>  ^~~~~~~~~~~~~~~~~~~~~
>  __BEGIN_DECLS
> /home/vmuser/Desktop/sysroot/usr/include/stdio.h:371:22: error: ‘FILE’ was not declared in this scope
>  extern int vfprintf (FILE *__restrict __s, const char *__restrict __format,
>                       ^~~~
>
> In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
>                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:268:15: error: ‘FILE’ has not been declared
>  extern size_t __REDIRECT (__fread_alias,
>                ^
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:272:15: error: ‘FILE’ has not been declared
>  extern size_t __REDIRECT (__fread_chk_warn,
>                ^
> In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:282:8: error: ‘FILE’ has not been declared
>         FILE *__restrict __stream)
>         ^~~~
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:299:17: error: ‘FILE’ has not been declared
>         int __n, FILE *__restrict __stream) __wur;
>                  ^~~~
> In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
>                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:300:14: error: ‘FILE’ has not been declared
>  extern char *__REDIRECT (__fgets_unlocked_alias,
>               ^
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:303:14: error: ‘FILE’ has not been declared
>  extern char *__REDIRECT (__fgets_unlocked_chk_warn,
>               ^
> In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:310:48: error: ‘FILE’ has not been declared
>  fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream)
>                                                 ^~~~
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:328:9: error: ‘FILE’ has not been declared
>          FILE *__restrict __stream) __wur;
>          ^~~~
> In file included from /home/vmuser/Desktop/sysroot/usr/include/features.h:374:0,
>                  from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:27,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:329:15: error: ‘FILE’ has not been declared
>  extern size_t __REDIRECT (__fread_unlocked_alias,
>                ^
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:333:15: error: ‘FILE’ has not been declared
>  extern size_t __REDIRECT (__fread_unlocked_chk_warn,
>                ^
> In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:937:0,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:343:3: error: ‘FILE’ has not been declared
>    FILE *__restrict __stream)
>    ^~~~
> In file included from /home/vmuser/Desktop/sysroot/usr/include/stdio.h:74:0,
>                  from /home/vmuser/Desktop/qt_5.14.2/qtbase/config.tests/arch/arch.cpp:43:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h: In function ‘size_t fread_unlocked(void*, size_t, size_t, int*)’:
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: request for member ‘_IO_read_ptr’ in ‘* __stream’, which is of non-class type ‘int’
>     int __c = _IO_getc_unlocked (__stream);
>               ^
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: request for member ‘_IO_read_end’ in ‘* __stream’, which is of non-class type ‘int’
>     int __c = _IO_getc_unlocked (__stream);
>               ^
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: cannot convert ‘int* __restrict__’ to ‘_IO_FILE*’ for argument ‘1’ to ‘int __uflow(_IO_FILE*)’
>     int __c = _IO_getc_unlocked (__stream);
>               ^
> /usr/arm-linux-gnueabihf/include/bits/stdio2.h:371:14: error: request for member ‘_IO_read_ptr’ in ‘* __stream’, which is of non-class type ‘int’
>     int __c = _IO_getc_unlocked (__stream);
>               ^
> Makefile:184: recipe for target 'arch.o' failed
> make: *** [arch.o] Error 1
Project ERROR: Could not determine target architecture. See config.log for details.

[[qanda:topic_unsolved]] Qtcreator build q5 from git

$
0
0

Linux Slackware-current
I built my qtcreator from source using cmake-gui because the qt.io package depends upon a glib2 version which I don't have.
GLib-CRITICAL **: 08:41:18.206: g_hash_table_contains: assertion 'hash_table != NULL' failed
Now I'm using qtcreator to build qt5 from git. (I can't find the 5.41.2 sources)
After searching high and low, I added "LICENSE.LGPLv3: to qt.pro. Now Build no longer waits for an 'o'. There is probably a way to send that option to the build process, but I don't know how. Of course it may take all day for the build, but it is running nicely. Just wanted to let others in my boat to know about the qt.pro license option.

Viewing all 22112 articles
Browse latest View live


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