Run Qt application without desktop enviroment

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Run Qt application without desktop enviroment

Postby jliew » Tue Sep 06, 2016 10:07 am

Hi,

I'm a newbie on arch linux and raspberry pi. I have wrote a very simple Qt application and i need to run on my raspberry Pi on the boot up. But my raspberry Pi doesn't require any of desktop environment. The application is will just connect to a webpage and display on the screen at the boot up. Is that possible my qt application run on the raspberry pi without desktop environment?

My raspberry pi is running on Arch Linux
[root@alarmpi dev]# uname -a
Linux alarmpi 4.4.8-2-ARCH #1 SMP Tue Apr 26 19:14:58 MDT 2016 armv7l GNU/Linux


I tried to run my qt application but it doesn't shows quite right, sometimes it just shows a white screen. What kind of package i need to install on my raspberry pi? Do i just need to install the xorg-xinit?
$this->bbcode_second_pass_code('', 'pacman -S xorg-xinit')

Thanks.

regards,
jenny
jliew
 
Posts: 2
Joined: Fri Sep 02, 2016 11:58 am

Re: Run Qt application without desktop enviroment

Postby sdjf » Mon Sep 26, 2016 3:22 pm

You probably need to install X, for one thing. I have no idea if you need anything else, I have not tried anything with Qt on my Pi as it is so resource intense.

You could always install strace and try calling your app with it, to trace system calls and see what it is not finding.

are you saying it sometimes works and sometimes not, or never works?

There could also be a power issue, inadequate power could mean peripherals do not behave properly.
sdjf
 
Posts: 178
Joined: Wed May 08, 2013 1:55 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 9 guests