Qt executables run without error, but nothing displays
-
Hi and welcome to devnet,
Did you try starting your application from the command line ? That might give you some additional clues about what is happening.
Hope it helps
-
And there's nothing showing up ? Or is the screen blacked ?
-
wrote on 1 Sept 2015, 19:59 last edited by
Right, there's no additional windows that pop up and the command line just moves on to the next prompt line.
-
That's strange, it should not do that.
Are you sure
app.exec()
is called properly ? -
wrote on 1 Sept 2015, 20:15 last edited by jkern 9 Jan 2015, 20:15
I literally haven't read anything about developing Qt programs yet. But as a trivial example, I created a Qt Widgets Application and just kept the default code. As a test, I compiled it with Qt 5.2.1 on my host machine, and it comes up with an empty window. So you would expect this same code is working on the target if cross-compiled correctly.
-
Good thinking, did you check that you have all the necessary rights to access the devices e.g. the frame buffer ?
-
wrote on 1 Sept 2015, 20:20 last edited by
No, how do you do that? (I'm new to Linux as well...)
-
groups
to know the groups your user is a member of.
ls -la /dev/fb0
orls -la /dev/fb/0
to see what permissions are set -
wrote on 1 Sept 2015, 20:25 last edited by
groups shows:
analog adm dialout cdrom audio dip video plugdev adminls -la /dev/fb0 shows:
crw-rw---- 1 root video 29, 0 Jan 1 00:00 /dev/fb0 -
Looks good.
Then, you should use gdb to debug your application
12/12