element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Atmel SAMA5D4 Xplained Ultra Road Test -- Building a QT application
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: pettitda
  • Date Created: 27 Mar 2015 5:37 PM Date Created
  • Views 325 views
  • Likes 2 likes
  • Comments 5 comments
  • RoadTest
  • sama5d4
  • atmel_sama5d4
Related
Recommended

Atmel SAMA5D4 Xplained Ultra Road Test -- Building a QT application

pettitda
pettitda
27 Mar 2015

In order to create an QT application to run on the Atmel SAMA5D4 Xplained Ultra board, I did the following:

 

1. From the Linux4SAM PokyBuild < Linux4SAM < TWiki page:

 

a) bitbake meta-toolchain-qte

b) sudo tmp/deploy/sdk/poky-eglibc-i686-meta-toolchain-qte-cortexa5t2hf-vfp-neon-toolchain-qte-1.6.1.sh

c) source /opt/poky/1.6.1/environment-setup-cortexa5t2hf-vfp-neon-poky-linux-gnueabi

 

2. From the QT tutorial Getting Started Programming with Qt | Qt 4.8:

 

a) create ~/try_qt/hello.cpp using the code snippet from the tutorial

b) qmake -project

c) qmake

d) make

 

3. Copy the resultant executable (try_qt) over a thumb drive and then plug the thumb drive into the Atmel board

 

4. Connect to the board using putty, mount the thumb drive at /media/david, and move to that directory

 

5. Run the executable

 

a) ./try_qt -qws

 

Here's what it looks like:

 

image

The image that I used was the "atmel-qt4e-demo-image" that i built earlier. 

  • Sign in to reply

Top Comments

  • pettitda
    pettitda over 7 years ago in reply to clem57 +1
    It's a PDA TM4301.
  • sharonroyal
    sharonroyal over 3 years ago in reply to pettitda

    I tried all those but couldn't run qt creator.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • pettitda
    pettitda over 3 years ago in reply to sharonroyal

    I found this on a google search:  https://stackoverflow.com/questions/36203211/c-command-not-found-error

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sharonroyal
    sharonroyal over 3 years ago

    My sama5d4 xplained board is booting from Qt demo image developed from sources.

     

     

    I downloaded and installed the tool chain (poky-atmel-glibc-x86_64-meta-toolchain-qt5-cortexa5hf-vfptoolchain-2.0.1.sh).

     

     

    Download the Qtcreator v.4.5.1 and set QT-SDK Environment variable with qtcreator.

     

     

    Set the compiler path, qmake path and gone for the device test.

     

     

    Atlast when I build a sample Qt project, following issue is displayed.

    :-1: error: c: Command not found

    The compile output is 05:02:22:

     

    Running steps for project test2... 05:02:22: Starting: "/usr/bin/make" clean rm -f moc_predefs.h rm -f moc_mainwindow.cpp rm -f ui_mainwindow.h rm -f main.o mainwindow.o moc_mainwindow.o rm -f *~ core *.core 05:02:22: The process "/usr/bin/make" exited normally. 05:02:22: Configuration unchanged, skipping qmake step. 05:02:22: Starting: "/usr/bin/make" /opt/poky-atmel/2.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/uic ../test2/mainwindow.ui -o ui_mainwindow.h c -pipe --sysroot=/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi -std=c++11 -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../test2 -I. -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtPrintSupport -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../test2/main.cpp Makefile:517: recipe for target 'main.o' failed c -pipe --sysroot=/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi -std=c++11 -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../test2 -I. -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtPrintSupport -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o mainwindow.o ../test2/mainwindow.cpp make: c: Command not found make: [main.o] Error 127 (ignored) make: c: Command not found make: [mainwindow.o] Error 127 (ignored) make: pipe: Command not found Makefile:521: recipe for target 'mainwindow.o' failed pipe --sysroot=/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi -std=c++11 -g -std=gnu++11 -Wall -W -dM -E -o moc_predefs.h /opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib/qt5/mkspecs/features/data/dummy.cpp Makefile:493: recipe for target 'moc_predefs.h' failed /opt/poky-atmel/2.5.1/sysroots/x86_64-pokysdk-linux/usr/bin/qt5/moc -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include ./moc_predefs.h -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -I/home/sharonmathew/QtCreator_Programs/test2 -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtPrintSupport -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtCore -I. ../test2/mainwindow.h -o moc_mainwindow.cpp make: [moc_predefs.h] Error 127 (ignored) Warning: Failed to resolve include "./moc_predefs.h" for moc file ../test2/mainwindow.h c -pipe --sysroot=/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi -std=c++11 -g -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_QML_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../test2 -I. -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5 -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtPrintSupport -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtWidgets -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtGui -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/qt5/QtCore -I. -I. -I/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o moc_mainwindow.o moc_mainwindow.cpp Makefile:524: recipe for target 'moc_mainwindow.o' failed sysroot=/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi -o test2 main.o mainwindow.o moc_mainwindow.o -L/opt/poky-atmel/2.5.1/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib -lQt5PrintSupport -lQt5Widgets -lQt5Gui -lQt5Core -lpthread make: c: Command not found make: [moc_mainwindow.o] Error 127 (ignored) /bin/sh: 1: -o: not found make: [test2] Error 127 (ignored) Makefile:192: recipe for target 'test2' failed 05:02:22: The process "/usr/bin/make" exited normally. 05:02:22: Elapsed time: 00:00.

     

    Help me please to solve this one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • pettitda
    pettitda over 7 years ago in reply to clem57

    It's a PDA TM4301. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • clem57
    clem57 over 7 years ago

    What is the display you used?

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube