http://blog.csdn.net/kkvvll2/article/details/23468533 ,但是当我输入./configure ...配置的时候报错如下: Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set. Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.
Could not determine the target architecture! Turn on verbose messaging (-v) to see the final report. No QPA platform plugin enabled! If you really want to build without a QPA platform plugin you must pass -no-qpa-platform-guard to configure. Doing this will produce a Qt that can not run GUI applications. The dependencies needed for xcb to build are listed in src/plugins/platforms/xcb/README
我已经看过那个README,也下载了全部的库,还是update了,还是不行,请问时怎么回事?
uidab
2017-04-10 17:53
Could not determine the target architecture! 这个有点问题, 你编译时加上-v ,看看更多输出
14dzqiu
2017-04-11 09:52
uidab:Could not determine the target architecture! 这个有点问题, 你编译时加上-v ,看看更多输出 (2017-04-10 17:53)
加了-v报错如下,请指教! Determining architecture... () g++ -c -pipe -g -Wall -W -fPIE -I../../mkspecs/linux-g++ -I. -o arch.o arch.cpp g++ -o arch arch.o { test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9][^0-9]*\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true Found architecture in binary CFG_HOST_ARCH="i386" CFG_HOST_CPUFEATURES="" System architecture: 'unknown' Host architecture: 'i386' C++11 auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -std=c++0x -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o c++11.o c++11.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [c++11.o] Error 127 C++11 disabled. floatmath auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o floatmath.o floatmath.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [floatmath.o] Error 127 floatmath disabled. sse2 auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -msse2 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o sse2.o sse2.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [sse2.o] Error 127 sse2 disabled. mtdev auto-detection... () Project ERROR: mtdev development package not found make: *** No targets specified and no makefile found. Stop. mtdev disabled. DB2 auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o db2.o db2.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [db2.o] Error 127 DB2 disabled. InterBase auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o ibase.o ibase.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [ibase.o] Error 127 InterBase disabled. MySQL (thread-safe) auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o mysql.o ../mysql/mysql.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [mysql.o] Error 127 MySQL (thread-safe) disabled. MySQL (thread-unsafe) auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o mysql.o mysql.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [mysql.o] Error 127 MySQL (thread-unsafe) disabled. OCI auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o oci.o oci.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [oci.o] Error 127 OCI disabled. ODBC auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o odbc.o odbc.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [odbc.o] Error 127 ODBC disabled. iODBC auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o iodbc.o iodbc.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [iodbc.o] Error 127 iODBC disabled. PostgreSQL auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o psql.o psql.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [psql.o] Error 127 PostgreSQL disabled. SQLite2 auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o sqlite2.o sqlite2.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [sqlite2.o] Error 127 SQLite2 disabled. TDS auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o tds.o tds.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [tds.o] Error 127 TDS disabled. Cups auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o cups.o cups.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [cups.o] Error 127 Cups disabled. POSIX iconv auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o iconv.o iconv.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [iconv.o] Error 127 POSIX iconv disabled. SUN libiconv auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o gnu-libiconv.o ../gnu-libiconv/gnu-libiconv.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [gnu-libiconv.o] Error 127 SUN libiconv disabled. GNU libiconv auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o gnu-libiconv.o gnu-libiconv.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [gnu-libiconv.o] Error 127 GNU libiconv disabled. D-Bus auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o dbus.o dbus.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [dbus.o] Error 127 D-Bus disabled. Glib auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o glib.o glib.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [glib.o] Error 127 Glib disabled. ICU auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o icu.o icu.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [icu.o] Error 127 ICU disabled. PulseAudio auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o pulseaudio.o pulseaudio.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [pulseaudio.o] Error 127 PulseAudio disabled. OpenGL auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o opengldesktop.o opengldesktop.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [opengldesktop.o] Error 127 OpenGL disabled. OpenGL ES 2.x auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o opengles2.o opengles2.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [opengles2.o] Error 127 OpenGL ES 2.x disabled. FontConfig auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o fontconfig.o fontconfig.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [fontconfig.o] Error 127 FontConfig disabled. libudev auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o libudev.o libudev.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [libudev.o] Error 127 libudev disabled. evdev auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o evdev.o evdev.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [evdev.o] Error 127 evdev disabled. XLib auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o xlib.o xlib.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [xlib.o] Error 127 XLib disabled. xcb auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o xcb.o xcb.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [xcb.o] Error 127 xcb disabled. LinuxFB auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o linuxfb.o linuxfb.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [linuxfb.o] Error 127 LinuxFB disabled. KMS auto-detection... () Project ERROR: libudev development package not found make: *** No targets specified and no makefile found. Stop. KMS disabled. EGL auto-detection... () /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++ -lts -c -pipe -O2 -O2 -march=armv5te -Wall -W -fPIE -I../../../mkspecs/linux-arm-test -I. -o egl.o egl.cpp make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found make: *** [egl.o] Error 127 EGL disabled. No QPA platform plugin enabled! If you really want to build without a QPA platform plugin you must pass -no-qpa-platform-guard to configure. Doing this will produce a Qt that can not run GUI applications. The dependencies needed for xcb to build are listed in src/plugins/platforms/xcb/README
14dzqiu
2017-04-11 10:06
make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found 于是我将arm-linux-gnueabi-g++改为arm-linux-g++,配置成功 因为我的编译器是arm-none-linux-gnueabi-g++,这样应该没有问题吧?
14dzqiu
2017-04-11 10:08
make: /opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gnueabi-g++: Command not found 于是我将arm-linux-gnueabi-g++改为arm-linux-g++,配置成功 因为我的编译器是arm-none-linux-gnueabi-g++,这样应该没有问题吧?
14dzqiu
2017-04-11 10:12
uidab:Could not determine the target architecture! 这个有点问题, 你编译时加上-v ,看看更多输出 (2017-04-10 17:53)