element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Run QT Software on Linaro
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 8 replies
  • Subscribers 310 subscribers
  • Views 625 views
  • Users 0 members are here
Related

Run QT Software on Linaro

Former Member
Former Member over 12 years ago

I want to design a software with GUI and let it execute on my zed. So I have gotten a Linaro running on zed and a application designed with QT.

Now my question is how to compile and execute this app. Should I use the arm-xilinx cross-compiler? Any libs or sources of QT should I add in the Linaro rootfs? Can a QT Creator run on a zedboard with Linaro just like it runs on the PC with Ubuntu?

Does anybody konw the answers?

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago

    It appears that you can just point QT Creator to a different compiler.  Ref link:

    http://doc.qt.digia.com/4.7-snapshot/qt-embedded-crosscompiling.html

    You can set QT to compile all of the libraries into your binary if you want, or you can copy all of the libraries you are using to your roomfs (I would recommend the former).

    I would not recommend running QT Creator on the zedboard itself, as you are not going to get any where near the performance of your PC.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    Thanks for your advices, Tim.
    If I want to compile the QT app, which cross-compiler should I use, The arm-xilinx-linux-gnueabi or Linaro toolchain? I was trying to compile an app using Xilinx toolchain and it failed to run on Linaro. So I guess the latter can be used to do the job. And is that possible to install the Qt-lib on Linaro derectly so that I can both complie and run Qt apps on my zed?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    You certainly could get the qt compiler and associated libraries moved over to your Zedboard if you wanted to - I personally prefer to cross-compile as it usually is much faster (but if you are talking about small applications then it really shouldn't make much of a difference).

    As for which cross compiler to use, I have had the most luck with the arm-xilinx-linux-gnueabi toolchain - but I haven't compiled a qt program yet.

    Give them both a shot and let us know which one works!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Hi , I am also trying to do the same stuffs on My xilinx zc702 board.

    But I got stuked and it was not getting fired up.

    Below are the steps I have tried to build and compile the same.

    1) qt-everywhere-opensource-src-4.7.3.tar.gz(Extract It on host)
    2) qmake.conf:
            Replace: arm-none-linux-gnueabi-gcc by arm-linux-gnueabihf-gcc

    3) Set the path:
        export CROSS_COMPILE=arm-linux-gnueabihf-
        export PATH=/usr/bin:$PATH
        export ZYNQ_QT_BUILD=/home/user/qt-everywhere-opensource-src-4.7.3
        export ZYNQ_QT_INSTALL=/usr/local/Trolltech
        export PATH=$ZYNQ_QT_INSTALL/bin:$PATH

    4) ./configure -embedded armv7l -xplatform qws/linux-arm-gnueabi-g++ -little-endian -opensource -host-little-endian -confirm-license -prefix $ZYNQ_QT_INSTALL -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -no-openssl -no-nis -no-cups -iconv -no-pch -no-dbus -qt-freetype -no-opengl -qt-gfx-linuxfb -qt-gfx-vnc -qt-gfx-qvfb
    (This we tried with arm as well)

    5)  make
        make -install
        copied all the libraries(from /usr/local/Trolltech) to the target board at (/usr/local/Trolltech).

    6) ./appname -qws -display QVFb:0
         error:  driver cannot connect
         Aborted
    (Cause:This I think we donu2019t have to use as we are running linux so have to use LinuxFb)

        ./appname  -qws LinuxFb:mmwidth=1024:mmheight=768
        this does not give any error but, it's not launching the GUI but printing the log messages in terminal.

    can you tell What we are missing here.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    Check out buildroot:
    http://buildroot.uclibc.org/u200E
    It creates a root filesystem, cross compiling all the libraries you select in a menu-driven (not unlike the Linux kernel configuration) build system.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi ,
    As we are using the Linaro Ubuntu Desktop so they are providing the pre built Linaro file system alongwith the Xilinx board but ucilibc is different file system so whether it will work fine on Zed Board with GUI desktop.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    Hello! I want to run Qt applications on my zedboard. But I don't know how to install the Qt tool chains. I have downloaded "qt-embedded-linux-opensource-4.5.3.tar.gz", and installed arm-linux-gnueabi-gcc and arm-linux-gnueabi-g++. Then I used command "./configure -embeded arm" to configure. At this time, errors occurred, such as: arm-linux-g++ can not found. So, I want to know how to install Qt cross compiling environment. I just want to create and compile my app on PC host, then copy the result to zedboard with linux OS. Can anyone help me ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Hi, i have the same issue, is there any sollution yet ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube