Hi,
Die Anleitung hat vor einer Weile noch gut funktioniert, aber jetzt bekomme ich beim Konfigurieren des Builds folgende Fehler:
/opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:101:12: error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
^~~~~~~~~
In file included from /usr/include/c++/8/cstdio:42,
from /usr/include/c++/8/ext/string_conversions.h:43,
from /usr/include/c++/8/bits/basic_string.h:6391,
from /usr/include/c++/8/string:52,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/../../src/corelib/tools/qbytearray.h:52,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/qbytearray.h:1,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:49,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/qstring.h:1,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/../../src/corelib/io/qiodevice.h:50,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/qiodevice.h:1,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/../../src/corelib/io/qfiledevice.h:43,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/include/QtCore/qfiledevice.h:1,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfile.h:44,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_p.h:54,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:43:
/usr/include/stdio.h:164:12: note: previous declaration of ‘int renameat2(int, const char*, int, const char*, unsigned int)’
extern int renameat2 (int __oldfd, const char *__old, int __newfd,
^~~~~~~~~
In file included from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:106:
/usr/include/linux/stat.h:56:8: error: redefinition of ‘struct statx_timestamp’
struct statx_timestamp {
^~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/x86_64-linux-gnu/bits/statx.h:25:8: note: previous definition of ‘struct statx_timestamp’
struct statx_timestamp
^~~~~~~~~~~~~~~
In file included from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:106:
/usr/include/linux/stat.h:99:8: error: redefinition of ‘struct statx’
struct statx {
^~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/x86_64-linux-gnu/bits/statx.h:36:8: note: previous definition of ‘struct statx’
struct statx
^~~~~
/opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:107:12: error: ‘int statx(int, const char*, int, unsigned int, statx*)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
^~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/stat.h:446,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from /opt/qt5pi/qt-everywhere-src-5.10.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/x86_64-linux-gnu/bits/statx.h:87:5: note: previous declaration of ‘int statx(int, const char*, int, unsigned int, statx*)’
int statx (int __dirfd, const char *__restrict __path, int __flags,
^~~~~
make: *** [Makefile:429: qfilesystemengine_unix.o] Error 1
(Ubuntu 18.10, 64-bit)
Ich werde nicht schlau daraus und hoffe, es gib jemanden hier, bei dem das anders ist
Viele Grüße
Dorian