[[qanda:topic_solved]] dll error when starting Qt Creator 4.8.2
[[qanda:topic_solved]] Building with Gstreamer on Windows
[[qanda:topic_unsolved]] Problem with qt installer
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
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
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
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
[[qanda:topic_unsolved]] installer not working
[[qanda:topic_unsolved]] What's the proper way to bisect qtbase on windows?
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:
- I find a bug and I create a mcve
- I start bisecting
- I'll delete the current build folder (no ccache on windows), I'll configure and build again
- 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
Slow downloads with the online installer? Try this tool
[[qanda:topic_unsolved]] undefined reference to `qt_resourceFeatureZlib'
[[qanda:topic_unsolved]] Add a new font to QtCreator
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
[[qanda:topic_unsolved]] Passing target directory from QT Installer to the Application
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
[[qanda:topic_unsolved]] Offline-installer 'make install' equivalent?
[[qanda:topic_unsolved]] qt examples doesnt start after deployment with windeployqt.exe
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
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
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.