LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-24-2015, 04:33 AM   #1
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Rep: Reputation: Disabled
Does anyone know how to use QT to make application for arm board ?


Hello,

I am asking this because i am kind of lost.
I tried following tutorials online but none of them seems to work and i am losing hope on how to do this.
 
Old 03-24-2015, 06:01 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
All depends on the board. I have a Beagleboard Black Rev C running Debian and have installed the Qt package. Qt applications compile on the board and also run.
 
Old 03-24-2015, 06:04 AM   #3
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Rep: Reputation: 31
I'm not experienced in application programming but the person who is will need much more detailed information.

What is the end goal you are trying to achieve? What type of system are you using it on? What steps have you tried if any?

Please give details and elaborate further so someone can better assist you.
 
Old 03-24-2015, 06:27 AM   #4
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
All depends on the board. I have a Beagleboard Black Rev C running Debian and have installed the Qt package. Qt applications compile on the board and also run.
It is a sbc6000x, with a at91sam9261 micro running on a linux 2.6.24. An armv5 board.

Right now i have qt creator, a compiler toolchain working (i was able to make a little hello world executable when using a simple text editor to create a .c file) and the board.
 
Old 03-24-2015, 07:22 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Kernel 2.6 is old, as is this board. I'd recommend Qt 4.6 or no greater than Qt 4.8, see if you can download the opensource distribution and build it for cross compilation.

Although you're description saying you got a hello world compiled and running causes confusion. Does this work already?
 
Old 03-24-2015, 08:05 AM   #6
wowy
Member
 
Registered: Mar 2015
Location: France
Distribution: Ubuntu 14.04
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
Kernel 2.6 is old, as is this board. I'd recommend Qt 4.6 or no greater than Qt 4.8, see if you can download the opensource distribution and build it for cross compilation.

Although you're description saying you got a hello world compiled and running causes confusion. Does this work already?
The hello world is simply a .c i did with gedit and compiled using in the terminal :
Code:
#arm-linux-gcc -o hello hello.c
I have qt creator 3.0.1 with qt 5.2.1 installed right now but i will try to download qt 4.6 here ( http://download.qt.io/archive/qt/4.6...c-4.6.0.tar.gz ).

To cross compile it i was thinking about following this http://www.qtfr.org/viewtopic.php?id=16417 (in french but you really only need to understand the code)

If this work, do i only need to move/chmod the executable to my /bin folder or do i have to copy things like libraries and stuff on the board ?
 
Old 03-24-2015, 08:19 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Little unclear on how that ultimately works, if I recall they allow you to specify an install path and a good idea is to mount a representation of your RFS for your target and then specify the install path to be on there so that the libraries (when you configure and build Qt) end up within that RFS. And another reason why they do that is because the real path as far as Qt is concerned is something like /usr/local/Trolltech/Qt-4.6.0/bin, and so forth. But obviously while you configure and install it, it's really something like /media/mount-name/..., and that's what the install process is supposed to recognize, the fact that the path at time of build is de-referenced somehow and when you go to use the libraries on the target, they are in a path which makes sense for Qt. You need to check out the documentation on configure for that. What I usually do is ./configure --help > config.hlp to put all the output of the help data into a log file.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
building of toolchain for ARM board seema_17 Linux - Newbie 2 07-21-2013 07:31 PM
Not working on the ARM board sushantbhangale Linux - Newbie 1 06-10-2013 01:22 PM
Not Work on ARM board sushantbhangale Programming 1 06-05-2013 08:57 AM
Kernel Testing using LTP on Beagle board (ARM based Embedded Dev Board) Rajender.G Linux - Newbie 0 07-27-2011 05:19 AM
my arm board could not find my NIC ? twwwater Linux - Embedded & Single-board computer 7 11-19-2008 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:47 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