View Single Post
Old 08-27-2020, 05:08 PM   #1
the_real_mcarn
Junior Member
the_real_mcarn began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2020
Location: The Netherlands
Device: Kobo Glo
Qt Programming on Kobo

Hello everyone,

I recently found out you could run Qt apps on Kobo devices and I was very interested, having some experience in Qt I decided to try it out. I managed to get a working toolchain using the guide from the UltimateMangaReader GitHub. Using Qt Creator I took the default widget application and tried to compile it, everything goes fine untill I try to run it on the actual device. It throws the following error with
Code:
QT_DEBUG_PLUGINS=1
Code:
QFactoryLoader::QFactoryLoader() checking directory path "/mnt/onboard/.adds/qt-linux-5.15.0-kobo/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/mnt/onboard/.adds/qt-linux-5.15.0-kobo/plugins/platforms/libkobo.so"
Found metadata in lib /mnt/onboard/.adds/qt-linux-5.15.0-kobo/plugins/platforms/libkobo.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "kobo"
        ]
    },
    "archreq": 0,
    "className": "KoboPlatformIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("kobo")
QFactoryLoader::QFactoryLoader() checking directory path "/mnt/onboard/.adds/test/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: kobo.

Aborted
I'm trying to run my application on a Kobo Glo on firmware 4.23.15548 over telnet using the folowing script: (also from UltimateMangaReader)

Code:
export ADDSPATH=/mnt/onboard/.adds
export EXECPATH=${ADDSPATH}/test
export QTPATH=${ADDSPATH}/qt-linux-5.15.0-kobo

export QT_DEBUG_PLUGINS=1

sh ${EXECPATH}/exit_nickel.sh

LD_LIBRARY_PATH=${QTPATH}/lib:lib:
QT_QPA_PLATFORM=kobo:touchscreen_rotate=auto:touchscreen_invert_x=auto:touchscreen_invert_y=auto:logicaldpitarget=108

${EXECPATH}/test

sh ${EXECPATH}/start_nickel.sh
The application executable is test in the folder
Code:
/mnt/onboard/.adds/test/
As far as I know it shouldn't be looking for the xcb plugin in the first place and certainly not in .adds/test/platforms because that folder doesn't exist.

I was wondering if anyone could help me to get this working because I have no idea now to continue from this point.

Thanks in advance.
the_real_mcarn is offline   Reply With Quote