Qt for X11
To run Qt application with X11 it should be configured without embedded option only by providing -arch arm and other option.
but the root file system should consist for X11 libraries for arm architecture.
Same thing i have managed to build root file system with X11 libraries. I have created mkspec file .
when i configure following error is thrown:
XLib auto-detection... ()
compiling xlib.cpp
linking xlib
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libXau.so.6, needed by /mnt/suraj_R_D/rootfs/usr/lib/libXext.so, not found (try using -rpath or -rpath-link)
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libxcb-xlib.so.0, needed by /mnt/suraj_R_D/rootfs/usr/lib/libX11.so, not found (try using -rpath or -rpath-link)
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: warning: libxcb.so.1, needed by /mnt/suraj_R_D/rootfs/usr/lib/libX11.so, not found (try using -rpath or -rpath-link)
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_connection_has_error'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_xlib_lock'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_poll_for_reply'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_get_maximum_request_length'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_xlib_unlock'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_get_file_descriptor'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_connect'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_wait_for_reply'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_get_setup'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_send_request'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_wait_for_event'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_flush'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_poll_for_event'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_parse_display'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_generate_id'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_disconnect'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_get_request_sent'
/mnt/suraj_R_D/rootfs/usr/lib/libX11.so: undefined reference to `xcb_connect_to_display_with_auth_info'
collect2: ld returned 1 exit status
make: *** [xlib] Error 1
XLib disabled.
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /mnt/suraj_R_D/qt-everywhere-opensource-src-4.8.0/mkspecs/qws/linux-arm-g++.
But all libraries are exist in my root file system.
I have tried by setting LD_LIBRARY_PATH also.
But still not working.
What changes i should ?
|