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
-
@SGaist Yes, I would run the executables from the command line. For example:
$ ./HelloWorld -qws
-
And there's nothing showing up ? Or is the screen blacked ?
-
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 ? -
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 ?
-
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 -
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