tar xzvf qt-everywhere-opensource-src-4.8.5.tar.gz
mkspecs/qws/linux-arm-gnueabi-g++/qmake.conf
- #
- # qmake configuration for building with arm-none-linux-gnueabi-g++
- #
-
- include(../../common/linux.conf)
- include(../../common/gcc-base-unix.conf)
- include(../../common/g++-unix.conf)
- include(../../common/qws.conf)
-
- QMAKE_LIBS_EGL += -lEGL
- QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lGAL
- QMAKE_LIBS_OPENVG += -lOpenVG -lEGL -lGAL
-
- IMX6_CFLAGS = -march=armv7-a -mfpu=neon -DLINUX=1 -DEGL_API_FB=1
- QMAKE_CFLAGS += $$IMX6_CFLAGS
- QMAKE_CXXFLAGS += $$IMX6_CFLAGS
-
- DISTRO_OPTS += hard-float
-
-
- # modifications to g++.conf
- QMAKE_CC = /opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -lts
- QMAKE_CXX = /opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -lts
- QMAKE_LINK = /opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -lts
- QMAKE_LINK_SHLIB = /opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -lts
-
- # modifications to linux.conf
- QMAKE_AR = /opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar cqs
- QMAKE_OBJCOPY = /opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-objcopy
- QMAKE_STRIP = /opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip
-
- load(qt_config)
- #!/bin/bash
- ./configure -prefix /usr/local/Trolltech/Qt-4.8.5 \
- -opensource \
- -confirm-license \
- -device-option CROSS_COMPILE=/opt/arm-5.2/gcc-linaro-5.2-2015.11-2-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- \
- -release -shared \
- -embedded arm \
- -xplatform qws/linux-arm-gnueabi-g++ \
- -fast \
- -optimized-qmake \
- -no-pch \
- -qt-libjpeg \
- -qt-zlib \
- -qt-libpng \
- -qt-freetype \
- -little-endian \
- -host-little-endian \
- -no-qt3support \
- -no-libtiff \
- -no-libmng \
- -no-opengl \
- -no-mmx \
- -no-sse \
- -no-sse2 \
- -no-3dnow \
- -no-openssl \
- -no-webkit \
- -no-qvfb \
- -no-phonon \
- -no-nis \
- -no-cups \
- -no-glib \
- -qt-mouse-tslib \
- -nomake tools \
- -nomake docs \
- -nomake examples \
- -qt-sql-sqlite \
- -plugin-sql-sqlite \
- -rpath \
- -v \
- -I/home/lyp/workspace/qt/arm-tslib/include \
- -L/home/lyp/workspace/qt/arm-tslib/lib
4.编译及安装
make
sudo make install
-I../../include/QtCore -I../../include/QtNetwork -I../../include -I../../include/QtGui -I.rcc/release-shared-emb-arm -Iimage -I../3rdparty/libpng -I../3rdparty/zlib -I../3rdparty/zlib -I../3rdparty/freetype/builds/unix -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared-emb-arm -I.uic/release-shared-emb-arm -o .obj/release-shared-emb-arm/qprintdialog_unix.o dialogs/qprintdialog_unix.cpp
dialogs/qprintdialog_unix.cpp: In destructor 'virtual QPrintPropertiesDialog::~QPrintPropertiesDialog()':
dialogs/qprintdialog_unix.cpp:281:19: error: 'class Ui::QPrintPropertiesWidget' has no member named 'cupsPropertiesPage'
delete widget.cupsPropertiesPage;
^
dialogs/qprintdialog_unix.cpp: In member function 'void QPrintPropertiesDialog::applyPrinterProperties(QPrinter*)':
dialogs/qprintdialog_unix.cpp:287:12: error: 'class Ui::QPrintPropertiesWidget' has no member named 'pageSetup'
widget.pageSetup->setPrinter(p);
^
dialogs/qprintdialog_unix.cpp: In member function 'void QPrintPropertiesDialog::setupPrinter() const':
dialogs/qprintdialog_unix.cpp:292:12: error: 'const class Ui::QPrintPropertiesWidget' has no member named 'pageSetup'
widget.pageSetup->setupPrinter();
^
dialogs/qprintdialog_unix.cpp: In member function 'void QPrintPropertiesDialog::selectPrinter()':
dialogs/qprintdialog_unix.cpp:337:16: error: 'class Ui::QPrintPropertiesWidget' has no member named 'cupsPropertiesPage'
widget.cupsPropertiesPage->setEnabled(false);
^
dialogs/qprintdialog_unix.cpp:338:16: error: 'class Ui::QPrintPropertiesWidget' has no member named 'pageSetup'
widget.pageSetup->selectPrinter(0);
^
dialogs/qprintdialog_unix.cpp: In member function 'void QPrintPropertiesDialog::selectPdfPsPrinter(const QPrinter*)':
dialogs/qprintdialog_unix.cpp:345:12: error: 'class Ui::QPrintPropertiesWidget' has no member named 'pageSetup'
widget.pageSetup->selectPdfPsPrinter(p);
^
dialogs/qprintdialog_unix.cpp:346:12: error: 'class Ui::QPrintPropertiesWidget' has no member named 'tabs'
widget.tabs->setTabEnabled(1, false); // disable the advanced tab
^
dialogs/qprintdialog_unix.cpp: In member function 'void QPrintDialogPrivate::init()':
dialogs/qprintdialog_unix.cpp:389:13: error: 'class Ui::QPrintSettingsOutput' has no member named 'color'
options.color->setIconSize(QSize(32, 32));
^
dialogs/qprintdialog_unix.cpp:390:13: error: 'class Ui::QPrintSettingsOutput' has no member named 'color'
options.color->setIcon(QIcon(QLatin1String(":/trolltech/dialogs/qprintdialog/images/status-color.png")));
^
dialogs/qprintdialog_unix.cpp:391:13: error: 'class Ui::QPrintSettingsOutput' has no member named 'grayscale'
options.grayscale->setIconSize(QSize(32, 32));
^
dialogs/qprintdialog_unix.cpp:392:13: error: 'class Ui::QPrintSettingsOutput' has no member named 'grayscale'
options.grayscale->setIcon(QIcon(QLatin1String(":/trolltech/dialogs/qprintdialog/images/status-gray-scale.png")));
^
dialogs/qprintdialog_unix.cpp:421:30: error: 'class Ui::QPrintSettingsOutput' has no member named 'reverse'
QObject::connect(options.reverse, SIGNAL(toggled(bool)),
^
dialogs/qprintdialog_unix.cpp: In member function 'void QPrintDialogPrivate::applyPrinterProperties(QPrinter*)':
dialogs/qprintdialog_unix.cpp:430:17: error: 'class Ui::QPrintSettingsOutput' has no member named 'color'
options.color->setChecked(true);
^
dialogs/qprintdialog_unix.cpp:432:17: error: 'class Ui::QPrintSettingsOutput' has no member named 'grayscale'
options.grayscale->setChecked(true);
^
dialogs/qprintdialog_unix.cpp:436:17: error: 'class Ui::QPrintSettingsOutput' has no member named 'noDuplex'
options.noDuplex->setChecked(true); break;
^
dialogs/qprintdialog_unix.cpp:439:17: error: 'class Ui::QPrintSettingsOutput' has no member named 'duplexLong'
options.duplexLong->setChecked(true); break;
^
dialogs/qprintdialog_unix.cpp:441:17: error: 'class Ui::QPrintSettingsOutput' has no member named 'duplexShort'
options.duplexShort->setChecked(true); break;
^
dialogs/qprintdialog_unix.cpp:443:13: error: 'class Ui::QPrintSettingsOutput' has no member named 'copies'
options.copies->setValue(p->copyCount());
^
dialogs/qprintdialog_unix.cpp:444:13: error: 'class Ui::QPrintSettingsOutput' has no member named 'collate'
options.collate->setChecked(p->collateCopies());
^
dialogs/qprintdialog_unix.cpp:445:13: error: 'class Ui::QPrintSettingsOutput' has no member named 'reverse'
options.reverse->setChecked(p->pageOrder() == QPrinter::LastPageFirst);
^
dialogs/qprintdialog_unix.cpp: In member function 'void QPrintDialogPrivate::setupPrinter()':
dialogs/qprintdialog_unix.cpp:490:17: error: 'class Ui::QPrintSettingsOutput' has no member named 'duplex'
if (options.duplex->isEnabled()) {
^
dialogs/qprintdialog_unix.cpp:491:21: error: 'class Ui::QPrintSettingsOutput' has no member named 'noDuplex'
if (options.noDuplex->isChecked())
^
在ubuntu20中遇到了该问题,换了 ubuntu14就可以了