LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-18-2015, 05:32 AM   #1
surajkumar mokhasi
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Rep: Reputation: Disabled
QT FOR IMX6 target


Hello,

I have successfully compile qt for imx6 target and able to run application on my IMX6 board with -qws option
Eg: ./MyQtApp -qws.
I have also running matchbox desktop.

But when qt app runs my desktop goes green screen beside.

What changes should i do?
 
Old 02-24-2015, 05:56 AM   #2
surajkumar mokhasi
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
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 ?
 
Old 03-04-2015, 11:20 PM   #3
surajkumar mokhasi
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi,

If Qt is built for embedded it will be running using qws.
For qt running with xserver, It should not build with qws and embedded option while configuring.
Create own qmake file in mkspec directory , provide the x11 libraries for arch you are building.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3D Engines Suggestions for imx6 & embedded linux mfatih Linux - Embedded & Single-board computer 0 01-14-2015 09:44 AM
boot regulator/core.c warning on imx6 - linaro tomschuring Linux - General 1 10-15-2014 07:07 PM
nandwrite mtd-utils does not work with embedded iMX6 mlig Linux - Software 0 10-15-2014 04:44 PM
iMX6 linux board reboots randomly 5883 Linux - Embedded & Single-board computer 1 06-06-2014 12:53 PM
Making a symlink follow its target when the target moves pwabrahams Linux - Software 3 03-08-2011 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration