-1

mini2440で使用するために、Ubuntu 12.04.1 32ビットでQt-Everywhere 4.6.3をコンパイルしています。qmakemini2440 用にコンパイルできましたが、テスト用にラップトップ用にコンパイルできませんでした。./configureエラーはありませんでした(インストールする必要がありlibx11-devましlibXext-devた)。しかし、実行するmakeと、次のような多くのリンカー エラーが発生しました。

.obj/release-shared/qpaintengine_x11.o: 関数 `QX11PaintEngine::drawPixmap(QRectF const&, QPixmap const&, QRectF const&)' 内:
qpaintengine_x11.cpp:(.text+0x25fb): 「XCopyArea」への未定義の参照
qpaintengine_x11.cpp:(.text+0x264c): `XSetClipOrigin' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2691): `XSetClipMask' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2723): 「XCopyArea」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2871): `XSetClipRectangles' への未定義の参照
qpaintengine_x11.cpp:(.text+0x28bf): 「XCreatePixmap」への未定義の参照
qpaintengine_x11.cpp:(.text+0x28e2): `XCreateGC' への未定義の参照
qpaintengine_x11.cpp:(.text+0x28fd): 「XSetForeground」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2934): `XFillRectangle' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2989): `XSetClipRectangles' への未定義の参照
qpaintengine_x11.cpp:(.text+0x29dc): 「XCopyArea」への未定義の参照
qpaintengine_x11.cpp:(.text+0x29ef): `XFreeGC' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2a0c): `XSetClipMask' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2a31): `XSetClipOrigin' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2a44): `XFreePixmap' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2ab4): 「XSetForeground」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2b16): `XCreateGC' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2b31): 「XSetForeground」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2b70): `XFillRectangle' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2b8b): `XSetBackground' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2ba6): 「XSetForeground」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2be8): `XSetFillStyle' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2c0f): `XSetTSOrigin' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2c30): `XSetStipple' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2c6f): `XFillRectangle' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2c82): `XFreeGC' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2ca7): 「XSetClipOrigin」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2ccc): `XSetClipMask' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2d26): `XCreateGC' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2d51): `XSetBackground' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2d6c): 「XSetForeground」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2da3): `XFillRectangle' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2db6): `XFreeGC' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2ddd): `XSetClipMask' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2e0a): `XSetClipOrigin' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2e81): 「XSetForeground」への未定義の参照
qpaintengine_x11.cpp:(.text+0x2ebc): `XFillRectangle' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2f07): `XSetClipRectangles' への未定義の参照
qpaintengine_x11.cpp:(.text+0x2fa3): 「XCopyArea」への未定義の参照

何が問題なのかわかりません。私の構成オプションは次のとおりです。

ved@ubuntu:~/qt-src/qt-everywhere-opensource-src-4.6.3$ ./configure -prefix /qt-test -release -shared -fast -pch -no-qt3support -qt-sql-sqlite - no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -nomake の例 -nomake デモ -nomake ツール -optimized-qmake -no-phonon -no-nis -no -opengl -no-cups -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-separate-debug-info -depths 16 - no-qvfb -qt-gfx-linuxfb -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb-qt-kbd-usb -confirm-license -verbose

mini2440 バージョンと同じオプションをコピーしました ( -xplatform qws/linux-arm-g++&を除く-embedded arm)。

4

1 に答える 1

0

デスクトップ Linux ディストリビューションを使用している場合は、x11 要件ページの指示に従ってください。libx11-dev と libXext-dev の他に必要なもの:

  • libfontconfig1-dev
  • libfreetype6-dev
  • libxcursor-dev
  • libxfixes-dev
  • libxft-dev
  • libxi-dev
  • libxrandr-dev
  • libxrender-dev
于 2013-09-04T06:34:20.740 に答える