Hi Christian,
thanks for your help, I was able to build the virtualkeyboard example for Genode [1].
Currently it fails run due to missing QtQuick dependencies. Beside that some called functions are not yet implemented but I think the missing dependencies make it fail in the first place.
[init -> basic] Warning: geteuid: geteuid not implemented [init -> basic] Warning: getuid: getuid not implemented [init -> basic] read_rtc: rtc not configured, returning 0 [init -> basic] Warning: getpid: getpid not implemented [init -> basic] read_rtc: rtc not configured, returning 0 [init -> basic] JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform. [init -> basic] Error: no plugin found for mmap(-1) [init -> basic] Warning: mmap not supported for file descriptor -1 [init -> basic] Error: no plugin found for mmap(-1) [init -> basic] Warning: mmap not supported for file descriptor -1 [init -> basic] Warning: issetugid called, not yet implemented, returning 1 [init -> basic] Warning: issetugid called, not yet implemented, returning 1 [init -> basic] Warning: issetugid called, not yet implemented, returning 1 [init -> basic] Warning: issetugid called, not yet implemented, returning 1 [init -> basic] qrc:/Basic.qml:30:1: module "QtQuick" is not installed [init -> basic] qrc:/Basic.qml:31:1: module "QtQuick.VirtualKeyboard" is not installed [init -> basic] qrc:/Basic.qml:30:1: module "QtQuick" is not installed [init -> basic] qrc:/Basic.qml:31:1: module "QtQuick.VirtualKeyboard" is not installed [init -> basic] QThread: Destroyed while thread is still running [init -> basic] Warning: getpid: getpid not implemented [init -> basic] Warning: kill: kill not implemented [init -> basic] Warning: _sigaction: _sigaction not implemented [init -> basic] Warning: getpid: getpid not implemented [init -> basic] Warning: kill: kill not implemented [init -> basic] Warning: 4 dangling allocations at allocator destruction time [init -> basic] Warning: 10 dangling allocations at allocator destruction time [init] child "basic" exited with exit value 1
How can I add QtQuick dependencies on Genode, is there already some code example?
Thanks and regards,
Johannes
[1]: https://github.com/jklmnn/genode/tree/qt_virtualkeyboard
Am 27.07.2017 um 00:18 schrieb Christian Prochaska:
Hi Johannes,
On 26.07.2017 14:42, Johannes Kliemann wrote:
Hi,
I tried to build the Qt Virtualkeyboard example. I adapted the target.mk of the calculatorform example to point to the correct project file. Make fails at the project file at line 6 with missing separator. This part contains the following:
static { QT += svg QTPLUGIN += qtvirtualkeyboardplugin }
Is there an additional flag required? Manually running qmake && make works fine.
the Genode build system does not run qmake, but includes the qmake project file as if it were a Makefile. This works well for simple project files, but if the project file uses qmake-specific syntax and these parts are relevant, they must be replaced with something that GNU make understands. In your case it would probably suffice to just delete the 'static {' line and the '}' line.
The 'QT' variable gets evaluated in [1] and there's no svg support right now. A port of the Qt5Svg library would include the following new files:
- repos/libports/lib/import/import-qt5_svg.mk
- repos/libports/lib/mk/qt5_svg.mk
- repos/libports/lib/mk/qt5_svg_generated.inc
The 'QTPLUGIN' variable does not get evaluated in the 'target_final.inc' file right now. To do that, I think you would need to add each part of the variable content to the LIBS variable (prefixed with 'qt5_'), resulting in 'LIBS += qt5_qtvirtualkeyboardplugin' in your case, and then build the plugin as a shared library, similar to the 'qt5_qjpeg' library.
I've attached the generated include files and a patch with the script used to generate the files, in case you need to change the configuration and regenerate them.
Regards, Christian
[1] https://github.com/genodelabs/genode/blob/master/repos/libports/src/app/qt5/...
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main