compilation - Undefined reference to functions in xlib.h while compiling Qt-Everywhere 4.6.3 -
i compiling qt-everywhere 4.6.3 on ubuntu 12.04.1 32bit use on mini2440. able compile qmake
mini2440 failed compile laptop testing. ./configure
gave me no errors (i had install libx11-dev
& libxext-dev
so). on running make
, got many linker errors :
.obj/release-shared/qpaintengine_x11.o: in function `qx11paintengine::drawpixmap(qrectf const&, qpixmap const&, qrectf const&)': qpaintengine_x11.cpp:(.text+0x25fb): undefined reference `xcopyarea' qpaintengine_x11.cpp:(.text+0x264c): undefined reference `xsetcliporigin' qpaintengine_x11.cpp:(.text+0x2691): undefined reference `xsetclipmask' qpaintengine_x11.cpp:(.text+0x2723): undefined reference `xcopyarea' qpaintengine_x11.cpp:(.text+0x2871): undefined reference `xsetcliprectangles' qpaintengine_x11.cpp:(.text+0x28bf): undefined reference `xcreatepixmap' qpaintengine_x11.cpp:(.text+0x28e2): undefined reference `xcreategc' qpaintengine_x11.cpp:(.text+0x28fd): undefined reference `xsetforeground' qpaintengine_x11.cpp:(.text+0x2934): undefined reference `xfillrectangle' qpaintengine_x11.cpp:(.text+0x2989): undefined reference `xsetcliprectangles' qpaintengine_x11.cpp:(.text+0x29dc): undefined reference `xcopyarea' qpaintengine_x11.cpp:(.text+0x29ef): undefined reference `xfreegc' qpaintengine_x11.cpp:(.text+0x2a0c): undefined reference `xsetclipmask' qpaintengine_x11.cpp:(.text+0x2a31): undefined reference `xsetcliporigin' qpaintengine_x11.cpp:(.text+0x2a44): undefined reference `xfreepixmap' qpaintengine_x11.cpp:(.text+0x2ab4): undefined reference `xsetforeground' qpaintengine_x11.cpp:(.text+0x2b16): undefined reference `xcreategc' qpaintengine_x11.cpp:(.text+0x2b31): undefined reference `xsetforeground' qpaintengine_x11.cpp:(.text+0x2b70): undefined reference `xfillrectangle' qpaintengine_x11.cpp:(.text+0x2b8b): undefined reference `xsetbackground' qpaintengine_x11.cpp:(.text+0x2ba6): undefined reference `xsetforeground' qpaintengine_x11.cpp:(.text+0x2be8): undefined reference `xsetfillstyle' qpaintengine_x11.cpp:(.text+0x2c0f): undefined reference `xsettsorigin' qpaintengine_x11.cpp:(.text+0x2c30): undefined reference `xsetstipple' qpaintengine_x11.cpp:(.text+0x2c6f): undefined reference `xfillrectangle' qpaintengine_x11.cpp:(.text+0x2c82): undefined reference `xfreegc' qpaintengine_x11.cpp:(.text+0x2ca7): undefined reference `xsetcliporigin' qpaintengine_x11.cpp:(.text+0x2ccc): undefined reference `xsetclipmask' qpaintengine_x11.cpp:(.text+0x2d26): undefined reference `xcreategc' qpaintengine_x11.cpp:(.text+0x2d51): undefined reference `xsetbackground' qpaintengine_x11.cpp:(.text+0x2d6c): undefined reference `xsetforeground' qpaintengine_x11.cpp:(.text+0x2da3): undefined reference `xfillrectangle' qpaintengine_x11.cpp:(.text+0x2db6): undefined reference `xfreegc' qpaintengine_x11.cpp:(.text+0x2ddd): undefined reference `xsetclipmask' qpaintengine_x11.cpp:(.text+0x2e0a): undefined reference `xsetcliporigin' qpaintengine_x11.cpp:(.text+0x2e81): undefined reference `xsetforeground' qpaintengine_x11.cpp:(.text+0x2ebc): undefined reference `xfillrectangle' qpaintengine_x11.cpp:(.text+0x2f07): undefined reference `xsetcliprectangles' qpaintengine_x11.cpp:(.text+0x2fa3): undefined reference `xcopyarea'
i not know going wrong. configure options :
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 examples -nomake demos -nomake tools -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
i have copied same options mini2440 version (except -xplatform qws/linux-arm-g++
& -embedded arm
).
if using desktop linux distribution follow directions on x11 requirements page. besides libx11-dev & libxext-dev need :
- libfontconfig1-dev
- libfreetype6-dev
- libxcursor-dev
- libxfixes-dev
- libxft-dev
- libxi-dev
- libxrandr-dev
- libxrender-dev
Comments
Post a Comment