Unsolved Cross compile dont gen QLabel and QPushbutton and Fontconfig pre-condition
-
i think i passed no parameter i just write in my console "sudo ./Test5".
so you tell me to do write "sudo ./Test 5 QT_DEBUG_PLUGINS=1" or i need to add QT_DEBUG_PLUGINS and set value at 1 in build environment of qt creator. -
@CrazyCreepy Why sudo?
What @SGaist means is:QT_DEBUG_PLUGINS=1 ./Test
-
if you are not root you need to add sudo :P tanks i try this
-
Well i try to do that, but nothing it's happenning...
-
Either it's:
export QT_DEBUG_PLUGINS=1 ./Test
or
QT_DEBUG_PLUGINS=1 ./Test
-
export QT_DEBUG_PLUGINS=1 it's work and the result is ```
QFactoryLoader::QFactoryLoader() checking directory path "/usr/local/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /usr/local/qt5/plugins/platforms/libqeglfs.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"eglfs"
]
},
"className": "QEglFSIntegrationPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /usr/local/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"linuxfb"
]
},
"className": "QLinuxFbIntegrationPlugin",
"debug": false,
"version": 329728
}Got keys from plugin meta data ("linuxfb")
-
It looks incomplete
-
they have other plugin but i didn't take it because i tougth that two plugin it's necessary to know if i use xcb,linuxFB or EGLFS or other. All other plugin seemeds to Qt object... Do you want the complete result or i need to check some specific plugin?
-
You should check for the entries that start with
loaded library
, you'll have the information you seek. -
@CrazyCreepy said in Cross compile dont gen QLabel and QPushbutton and Fontconfig pre-condition:
if you are not root you need to add sudo :P tanks i try this
Sure. But the question was: why do you need to start your app as root?
-
thats all of load library i have found.
loaded library "/usr/local/qt5/plugins/platforms/libqeglfs.so"
loaded library "/usr/local/qt5/plugins/egldeviceintegrations/libqeglfs-brcm-integration.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqgif.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqicns.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqico.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqjpeg.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqsvg.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqtga.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqtiff.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqwbmp.so"
loaded library "/usr/local/qt5/plugins/imageformats/libqwebp.so"so with this it's seem i use the eglfs backend. Now i can't tell if it's normal or not...
and jslum in ancien projet on a raspberry pi i always need to need to be root to start a application ... so i tought it's always like this but it seems that isn't necessary.
-
Ok, so it means no window manager.
Can you post an image of what you are getting exactly on screen when running your application ?
-
@SGaist this is what i get on my screen:
-
@SGaist so what this is mean?
-
Firat thing, you won't have any window decoration. The EGLFS plugin only works in full screen mode.
Can you test the LinuxFB plugin ?
-
I have some new. I finally have the push button on my raspberry pi... but the label still missing. Some one give me a program that work correctly on another raspberry pi, but I have the same issue so think it's missing file on my rasp... but i don't understand why i use "apt-get install qt5-default" to install the lib....
how i do that? also all programme i run in full screen mod.
-
How are you positioning them ?
-
@SGaist positionning them? who is them? I'm confuse... and i don't know how i can test the linuxFB plugin...
-
@CrazyCreepy How do you position the widgets (label and button)? Do you use layouts?
-
@jsulm no i juste use Qdesign and drag and drop.