下面错误造成的原因及解决办法:/home/zdtii/Desktop/zynqqt5.7.1 + cd qtbase +…
- User
下面错误造成的原因及解决办法:/home/zdtii/Desktop/zynq_qt_5.7.1
- cd qtbase
- /home/zdtii/Desktop/zynq_qt_5.7.1/qt-everywhere-opensource-src-5.7.1/qtbase/configure -top-level --prefix=/home/zdtii/zynq_qt5.7.1 -opensource -release -xplatform arm-linux-gnueabihf-g++ -qpa xcb -xcb -xcb-xlib -no-eglfs -no-tslib -no-linuxfb -qt-libjpeg -qt-libpng -qt-zlib -qt-freetype -nomake examples -nomake tools -I /home/zdtii/rootfs/db9sysroot/usr/include -I /home/zdtii/rootfs/db9sysroot/usr/include/X11 -I /home/zdtii/rootfs/db9sysroot/usr/include/xcb -I /home/zdtii/rootfs/db9sysroot/usr/include/xkbcommon -L {SYSROOT}/usr/lib/arm-linux-gnueabihf -L PKG_CONFIG_LIBDIR -v -release
This is the Qt Open Source Edition.
You are licensed to use this software under the terms of the GNU Lesser General Public License (LGPL) versions 3. You are also licensed to use this software under the terms of the GNU General Public License (GPL) versions 2.
Type 'L' to view the GNU Lesser General Public License version 3. Type 'G' to view the GNU General Public License version 2. Type 'yes' to accept this license offer. Type 'no' to decline this license offer.
Do you accept the terms of either license? DEFAULT_INCDIRS="/opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/include/c++/6.2.1 /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/include/c++/6.2.1/arm-linux-gnueabihf /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/include/c++/6.2.1/backward /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf/6.2.1/include /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf/6.2.1/include-fixed /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/include /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/libc/usr/include " DEFAULT_LIBDIRS="/opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf/6.2.1 /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/lib/gcc /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/lib /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/libc/lib /opt/Xilinx/SDK/2017.4/gnu/aarch32/lin/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/libc/usr/lib " Creating qmake... make: Nothing to be done for 'first'. Running configuration tests... Found pkg-config from $PATH: /usr/bin/pkg-config Determining architecture... () arm-linux-gnueabihf-g++ -c -pipe -g -Wall -W -fPIC -I. -I/home/zdtii/rootfs/db9sysroot/usr/include -I/home/zdtii/rootfs/db9sysroot/usr/include/X11 -I/home/zdtii/rootfs/db9sysroot/usr/include/xcb -I/home/zdtii/rootfs/db9sysroot/usr/include/xkbcommon -I../../mkspecs/arm-linux-gnueabihf-g++ -o arch.o arch.cpp arm-linux-gnueabihf-g++ -o arch arch.o -L{SYSROOT}/usr/lib/arm-linux-gnueabihf -LPKG_CONFIG_LIBDIR Found architecture in binary CFG_ARCH="arm" CFG_CPUFEATURES="" Determining architecture... () g++ -c -pipe -g -Wall -W -fPIC -I. -I/home/zdtii/rootfs/db9sysroot/usr/include -I/home/zdtii/rootfs/db9sysroot/usr/include/X11 -I/home/zdtii/rootfs/db9sysroot/usr/include/xcb -I/home/zdtii/rootfs/db9sysroot/usr/include/xkbcommon -I../../mkspecs/linux-g++ -o arch.o arch.cpp In file included from /home/zdtii/rootfs/db9sysroot/usr/include/features.h:364:0, from /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:27, from arch.cpp:43: /usr/include/x86_64-linux-gnu/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 arch.cpp:43:0: /home/zdtii/rootfs/db9sysroot/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/zdtii/rootfs/db9sysroot/usr/include/stdio.h:49:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ In file included from arch.cpp:43:0: /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:110:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:116:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ In file included from arch.cpp:43:0: /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:178:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:183:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:191:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:207:8: error: ‘FILE’ does not name a type extern FILE *tmpfile64 (void) __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:212:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:234:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:244:20: warning: ‘fflush’ initialized and declared ‘extern’ extern int fflush (FILE *__stream); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:244:20: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:244:26: error: ‘__stream’ was not declared in this scope extern int fflush (FILE *__stream); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:244:26: note: suggested alternative: ‘__size_t’ extern int fflush (FILE *__stream); ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:245:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:268:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:280:8: error: ‘FILE’ does not name a type extern FILE *freopen (const char *__restrict __filename, ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:297:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:301:8: error: ‘FILE’ does not name a type extern FILE *freopen64 (const char *__restrict __filename, ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:308:8: error: ‘FILE’ does not name a type extern FILE *fdopen (int __fd, const char *__modes) __THROW __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:314:8: error: ‘FILE’ does not name a type extern FILE *fopencookie (void *__restrict __magic_cookie, ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:321:8: error: ‘FILE’ does not name a type extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:327:8: error: ‘FILE’ does not name a type extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:331:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:338:21: warning: ‘setvbuf’ initialized and declared ‘extern’ extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:338:21: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:338:27: error: expected primary-expression before ‘__restrict’ extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, ^~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:338:48: error: expected primary-expression before ‘char’ extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:339:7: error: expected primary-expression before ‘int’ int __modes, size_t __n) __THROW; ^~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:339:27: error: expected primary-expression before ‘__n’ int __modes, size_t __n) __THROW; ^~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:339:30: error: expression list treated as compound expression in initializer [-fpermissive] int __modes, size_t __n) __THROW; ^ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:340:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:349:25: error: variable or field ‘setlinebuf’ declared void extern void setlinebuf (FILE *__stream) __THROW; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:349:25: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:349:31: error: ‘__stream’ was not declared in this scope extern void setlinebuf (FILE *__stream) __THROW; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:349:31: note: suggested alternative: ‘__size_t’ extern void setlinebuf (FILE *__stream) __THROW; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:353:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:373:22: warning: ‘vfprintf’ initialized and declared ‘extern’ extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:373:22: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:373:28: error: expected primary-expression before ‘__restrict’ extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, ^~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:373:44: error: expected primary-expression before ‘const’ extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, ^~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:374:19: error: expected primary-expression before ‘__arg’ _G_va_list __arg); ^~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:374:24: error: expression list treated as compound expression in initializer [-fpermissive] _G_va_list __arg); ^ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:383:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:395:1: error: ‘__END_NAMESPACE_C99’ does not name a type __END_NAMESPACE_C99 ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:422:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:465:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:524:1: error: ‘__END_NAMESPACE_C99’ does not name a type __END_NAMESPACE_C99 ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:534:18: warning: ‘getc’ initialized and declared ‘extern’ extern int getc (FILE *__stream); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:534:18: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:534:24: error: ‘__stream’ was not declared in this scope extern int getc (FILE *__stream); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:534:24: note: suggested alternative: ‘__size_t’ extern int getc (FILE *__stream); ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:541:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:563:28: warning: ‘fgetc_unlocked’ initialized and declared ‘extern’ extern int fgetc_unlocked (FILE *__stream); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:563:28: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:563:34: error: ‘__stream’ was not declared in this scope extern int fgetc_unlocked (FILE *__stream); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:563:34: note: suggested alternative: ‘__size_t’ extern int fgetc_unlocked (FILE )’ [-Wbuiltin-declaration-mismatch] extern int putc (int __c, FILE )’ [-Wbuiltin-declaration-mismatch] extern int putc_unlocked (int __c, FILE *__stream); ^~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:612:18: warning: ‘getw’ initialized and declared ‘extern’ extern int getw (FILE *__stream); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:612:18: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:612:24: error: ‘__stream’ was not declared in this scope extern int getw (FILE *__stream); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:612:24: note: suggested alternative: ‘__size_t’ extern int getw (FILE *__stream); ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:615:27: error: ‘FILE’ has not been declared extern int putw (int __w, FILE *__stream); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:619:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:642:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:669:11: error: ‘FILE’ has not been declared FILE *__restrict __stream) __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:672:9: error: ‘FILE’ has not been declared FILE )’ [-Wbuiltin-declaration-mismatch] extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, ^~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:746:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:756:24: warning: ‘ftell’ initialized and declared ‘extern’ extern long int ftell (FILE *__stream) __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:756:24: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:756:30: error: ‘__stream’ was not declared in this scope extern long int ftell (FILE *__stream) __wur; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:756:30: note: suggested alternative: ‘__size_t’ extern long int ftell (FILE *__stream) __wur; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:761:21: error: variable or field ‘rewind’ declared void extern void rewind (FILE *__stream); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:761:21: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:761:27: error: ‘__stream’ was not declared in this scope extern void rewind (FILE *__stream); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:761:27: note: suggested alternative: ‘__size_t’ extern void rewind (FILE *__stream); ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:762:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:780:24: warning: ‘ftello’ initialized and declared ‘extern’ extern __off_t ftello (FILE *__stream) __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:780:24: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:780:30: error: ‘__stream’ was not declared in this scope extern __off_t ftello (FILE *__stream) __wur; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:780:30: note: suggested alternative: ‘__size_t’ extern __off_t ftello (FILE *__stream) __wur; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:794:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:805:21: warning: ‘fsetpos’ initialized and declared ‘extern’ extern int fsetpos (FILE *__stream, const fpos_t *__pos); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:805:21: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:805:27: error: ‘__stream’ was not declared in this scope extern int fsetpos (FILE *__stream, const fpos_t *__pos); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:805:27: note: suggested alternative: ‘__size_t’ extern int fsetpos (FILE *__stream, const fpos_t *__pos); ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:805:37: error: expected primary-expression before ‘const’ extern int fsetpos (FILE *__stream, const fpos_t *__pos); ^~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:805:56: error: expression list treated as compound expression in initializer [-fpermissive] extern int fsetpos (FILE *__stream, const fpos_t *__pos); ^ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:817:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:821:28: warning: ‘ftello64’ initialized and declared ‘extern’ extern __off64_t ftello64 (FILE *__stream) __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:821:28: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:821:34: error: ‘__stream’ was not declared in this scope extern __off64_t ftello64 (FILE *__stream) __wur; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:821:34: note: suggested alternative: ‘__size_t’ extern __off64_t ftello64 (FILE *__stream) __wur; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:822:23: warning: ‘fgetpos64’ initialized and declared ‘extern’ extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:822:23: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:822:29: error: expected primary-expression before ‘__restrict’ extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); ^~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:822:50: error: ‘fpos64_t’ was not declared in this scope extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:822:50: note: suggested alternative: ‘_G_fpos64_t’ extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); ^~~~~~~~ _G_fpos64_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:822:60: error: expected primary-expression before ‘__restrict’ extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); ^~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:822:76: error: expression list treated as compound expression in initializer [-fpermissive] extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); ^ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:823:23: warning: ‘fsetpos64’ initialized and declared ‘extern’ extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:823:23: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:823:29: error: ‘__stream’ was not declared in this scope extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:823:29: note: suggested alternative: ‘__size_t’ extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:823:39: error: expected primary-expression before ‘const’ extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); ^~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:823:60: error: expression list treated as compound expression in initializer [-fpermissive] extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); ^ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:826:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:830:18: warning: ‘feof’ initialized and declared ‘extern’ extern int feof (FILE *__stream) __THROW __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:830:18: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:830:24: error: ‘__stream’ was not declared in this scope extern int feof (FILE *__stream) __THROW __wur; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:830:24: note: suggested alternative: ‘__size_t’ extern int feof (FILE *__stream) __THROW __wur; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:832:20: warning: ‘ferror’ initialized and declared ‘extern’ extern int ferror (FILE *__stream) __THROW __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:832:20: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:832:26: error: ‘__stream’ was not declared in this scope extern int ferror (FILE *__stream) __THROW __wur; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:832:26: note: suggested alternative: ‘__size_t’ extern int ferror (FILE *__stream) __THROW __wur; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:833:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:838:27: warning: ‘feof_unlocked’ initialized and declared ‘extern’ extern int feof_unlocked (FILE *__stream) __THROW __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:838:27: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:838:33: error: ‘__stream’ was not declared in this scope extern int feof_unlocked (FILE *__stream) __THROW __wur; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:838:33: note: suggested alternative: ‘__size_t’ extern int feof_unlocked (FILE *__stream) __THROW __wur; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:839:29: warning: ‘ferror_unlocked’ initialized and declared ‘extern’ extern int ferror_unlocked (FILE *__stream) __THROW __wur; ^~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:839:29: error: ‘FILE’ was not declared in this scope /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:839:35: error: ‘__stream’ was not declared in this scope extern int ferror_unlocked (FILE *__stream) __THROW __wur; ^~~~~~~~ /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:839:35: note: suggested alternative: ‘__size_t’ extern int ferror_unlocked (FILE *__stream) __THROW __wur; ^~~~~~~~ __size_t /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:843:1: error: ‘__BEGIN_NAMESPACE_STD’ does not name a type; did you mean ‘__BEGIN_DECLS’? __BEGIN_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~~~ __BEGIN_DECLS /home/zdtii/rootfs/db9sysroot/usr/include/stdio.h:849:1: error: ‘__END_NAMESPACE_STD’ does not name a type __END_NAMESPACE_STD ^~~~~~~~~~~~~~~~~~~ In file included from arch.c
Assistant
从错误信息来看,问题出在编译器在编译
arch.cpp文件时,无法正确处理/home/zdtii/rootfs/db9sysroot/usr/include/stdio.h文件中的某些定义。具体来说,错误信息显示编译器无法识别FILE类型以及其他一些宏定义。以下是可能的原因及解决办法:
原因分析
- 交叉编译器问题:编译器在交叉编译时,可能无法正确处理目标平台的头文件。
- 头文件路径问题:指定的头文件路径可能不正确或不完整。
- 宏定义冲突:某些宏定义在交叉编译时可能存在冲突。
解决办法
- 检查交叉编译器:确保使用的交叉编译器是正确的,并且能够正确处理目标平台的头文件。
- User
checking for sse2... arm-linux-gnueabihf-g++ -c -pipe -msse2 -g -Wall -W -fPIC -I. -I../../../mkspecs/arm-linux-gnueabihf-g++ -o sse2.o sse2.cpp arm-linux-gnueabihf-g++: error: unrecognized command line option ‘-msse2’ Makefile:186: recipe for target 'sse2.o' failed make: *** [sse2.o] Error 1
Assistant
从错误信息来看,问题出在
arm-linux-gnueabihf-g++编译器不支持-msse2选项。-msse2是用于 x86 架构的指令集扩展,而arm-linux-gnueabihf是用于 ARM 架构的编译器,因此不支持这个选项。解决办法
- 移除
-msse2选项:在配置 Qt 时,移除-msse2选项,因为这是针对 x86 架构的,不适用于 ARM 架构。 - 检查配置脚本:确保配置脚本没有自动添加不适用于 ARM 架构的选项。
具体步骤
-
修改配置脚本: 在配置 Qt 时,确保没有添加
-msse2选项。可以通过编辑配置脚本或手动运行配置命令来实现。 -
重新运行配置命令: 确保配置命令中没有
-msse2选项,并重新运行配置和编译命令:sh
- 移除
- User
checking for libdl... arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I../../../mkspecs/arm-linux-gnueabihf-g++ -o dlopen.o ../dlopen/dlopen.cpp arm-linux-gnueabihf-g++ -Wl,-O1 -o libdl dlopen.o -ldl libdl enabled. checking for DB2... arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I../../../mkspecs/arm-linux-gnueabihf-g++ -o db2.o db2.cpp db2.cpp:40:20: fatal error: sqlcli.h: No such file or directory #include <sqlcli.h> ^ compilation terminated. Makefile:186: recipe for target 'db2.o' failed make: *** [db2.o] Error 1 DB2 disabled. checking for InterBase... arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I../../../mkspecs/arm-linux-gnueabihf-g++ -o ibase.o ibase.cpp ibase.cpp:40:19: fatal error: ibase.h: No such file or directory #include <ibase.h> ^ compilation terminated. Makefile:186: recipe for target 'ibase.o' failed make: *** [ibase.o] Error 1 InterBase disabled. checking for MySQL (thread-safe)... arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I../../../mkspecs/arm-linux-gnueabihf-g++ -o mysql.o ../mysql/mysql.cpp ../mysql/mysql.cpp:40:19: fatal error: mysql.h: No such file or directory #include "mysql.h" ^ compilation terminated. Makefile:186: recipe for target 'mysql.o' failed make: *** [mysql.o] Error 1 MySQL (thread-safe) disabled. checking for MySQL (thread-unsafe)... arm-linux-gnueabihf-g++ -c -pipe -O2 -Wall -W -fPIC -I. -I../../../mkspecs/arm-linux-gnueabihf-g++ -o mysql.o mysql.cpp mysql.cpp:40:19: fatal error: mysql.h: No such file or directory #include "mysql.h" ^ compilation terminated. Makefile:186: recipe for target 'mysql.o' failed make: *** [mysql.o] Error 1
Assistant
从错误信息来看,编译器在尝试编译与数据库相关的代码时,找不到相应的头文件。具体来说,
sqlcli.h、ibase.h和mysql.h这些头文件缺失。解决办法
- 安装缺失的头文件:确保目标平台上安装了相应的数据库开发库,这些库通常包含所需的开发头文件。
- 指定正确的头文件路径:如果头文件安装在非标准路径下,需要在编译时指定正确的头文件路径。
具体步骤
-
安装缺失的头文件: 对于 MySQL,可以安装
libmysqlclient-dev包:shsudo apt-get install libmysqlclient-dev