我想在ARM板的fb1上运行Qt应用程序。我试着跑
`./QTExample -platform directfb` 在minicom中,但我没有输出窗口,但有以下日志:
(*) DirectFB/Core: Single Application Core. (2014-09-08 11:26)
(*) Direct/Memcpy: Using armasm_memcpy()
(*) Direct/Thread: Started 'Fusion Dispatch' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/FBDev: Found 'tegra_fb' (ID 0) with frame buffer at 0xf7c00000, 18432k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Logitech USB-PS/2 Optical Mouse (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: CHICONY HP Basic USB Keyboard (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Hotplug with Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Setting 640x480 RGB32
(*) FBDev/Mode: Switched to 640x480 (virtual 640x960) at 32 bit (RGB32), pitch 2560
(*) FBDev/Mode: Setting 640x480 RGB32
(*) FBDev/Mode: Switched to 640x480 (virtual 640x960) at 32 bit (RGB32), pitch 2560
(!!!) *** UNIMPLEMENTED [fusion_get_fusionee_pid] *** [fusion.c:3517]我的想法是,它试图在/dev/fb0 0上运行,这不是我想要的。我的问题是,如何指示如何在/dev/fb1上运行应用程序?
发布于 2014-09-10 12:36:42
根据这,您应该能够指定-platform linuxfb:fb=/dev/fb1,并且它应该能够工作,尽管我不太确定linuxfb与directfb有什么不同(linuxfb和directfb似乎都被提到为Qt插件,但名称在许多地方是可以互换使用的),但您仍然可以尝试。
编辑
我四处看看,因为我在空闲时间也经常使用QT/embedded设备,这看起来很有趣。Qt源代码在directfb插件代码中没有显式地声明设备id (至少据我所见),但是根据directfb.org中的这 wiki页面,您实际上可以在文件中为directfb提供配置。因此,基本上您可以尝试用一行~/.directfbrc创建一个文件devfb=/dev/fb1。希望这能行。
https://stackoverflow.com/questions/25764062
复制相似问题