您尚未登录。

楼主 #1 2019-04-17 13:50:16

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

在lib中有这个plugin  环境变量也设置路径
qt.qpa.plugin: Could not find the Qt platform plugin "eglfs" 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: linuxfb, minimal, offscreen, vnc.

Aborted

最近编辑记录 无情一刀 (2019-04-17 13:52:05)

离线

#2 2019-04-17 13:53:50

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

https://whycan.cn/t_532.html

./analogclock  -platform linuxfb





离线

楼主 #3 2019-04-17 14:03:30

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

晕哥 说:

https://whycan.cn/t_532.html

./analogclock  -platform linuxfb


我我现在用的是根问系统是buildroot下面的那个target  我在终端窗口去查找这个analogclock  的时候 发现没有这个
然后执行上面./analogclock  -platform linuxfb 就会没有找到

离线

#4 2019-04-17 14:05:37

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

意思是你执行的Qt程序后面加 -platform linuxfb





离线

楼主 #5 2019-04-17 14:09:44

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

晕哥 说:

意思是你执行的Qt程序后面加 -platform linuxfb


qt.qpa.plugin: Could not load the Qt platform plugin "linuxfb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: linuxfb, minimal, offscreen, vnc.

Aborted

离线

#6 2019-04-17 14:38:49

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

根文件系统缺这个: usr/lib/qt/plugins/platforms/libqlinuxfb.so





离线

楼主 #7 2019-04-17 14:44:08

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

晕哥 说:

根文件系统缺这个: usr/lib/qt/plugins/platforms/libqlinuxfb.so

1_20190417-1445.png
里面有这个文件我特定查看了

最近编辑记录 无情一刀 (2019-04-17 14:45:30)

离线

#8 2019-04-17 15:36:05

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

用 buildroot 的文件系统不会有这个问题吧?





离线

楼主 #9 2019-04-17 15:48:03

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

晕哥 说:

用 buildroot 的文件系统不会有这个问题吧?


我刚才放了没有动过的文件系统没有问题 ,可能我以前为了删减一些东西 删掉了吧   晚上来对比下
晕哥 我现在想用荔枝派里面的那个电阻屏ns2009配置下触摸  我只要在内核中使能ns2009 
在内核中的dts中配置下的
&i2c0 {
        status = "okay";
        ns2009:ns2009@48{
                compatible = "nsiway,ns2009";
                reg = <0x48>;

        };
};

在dtsi中配置这个i2C的管脚
但是好像没有看到input这个输出

离线

#10 2019-04-17 15:51:42

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

没有 /dev/input/eventX ? 驱动勾了 NS2009 吗? 有没有日志?





离线

楼主 #11 2019-04-17 15:53:09

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

晕哥 说:

没有 /dev/input/eventX ? 驱动勾了 NS2009 吗? 有没有日志?

这ns2009肯定勾选了

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 16 2019 - 00:35:03 -0700) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
reading zImage
3988448 bytes read in 256 ms (14.9 MiB/s)
reading sun8i-v3s-licheepi-zero.dtb
11936 bytes read in 25 ms (465.8 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dffe9f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@ubuntu) (gcc version 6.1.1 20160711 (Linaro GCC 6.1-2016.08)) #7 SMP Wed Dec 12 18:47:23 PST 2018
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 53568K/64036K available (6144K kernel code, 228K rwdata, 1460K rodata, 1024K init, 264K bss, 10468K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a39300   ( 229 kB)
[    0.000000]        .bss : 0xc0a40ae4 - 0xc0a82cec   ( 265 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000190] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000415] Console: colour dummy device 80x30
[    0.000451] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000467] pid_max: default: 32768 minimum: 301
[    0.000590] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000605] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001200] CPU: Testing write buffer coherency: ok
[    0.001569] /cpus/cpu@0 missing clock-frequency property
[    0.001593] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002005] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002185] Hierarchical SRCU implementation.
[    0.002699] smp: Bringing up secondary CPUs ...
[    0.002712] smp: Brought up 1 node, 1 CPU
[    0.002722] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002728] CPU: All CPU(s) started in SVC mode.
[    0.003497] devtmpfs: initialized
[    0.006599] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006884] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006909] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007087] pinctrl core: initialized pinctrl subsystem
[    0.007939] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[    0.008079] NET: Registered protocol family 16
[    0.008540] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009657] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009675] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.022584] SCSI subsystem initialized
[    0.022869] usbcore: registered new interface driver usbfs
[    0.022959] usbcore: registered new interface driver hub
[    0.023055] usbcore: registered new device driver usb
[    0.023302] pps_core: LinuxPPS API ver. 1 registered
[    0.023311] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023334] PTP clock support registered
[    0.023548] Advanced Linux Sound Architecture Driver Initialized.
[    0.025390] clocksource: Switched to clocksource arch_sys_counter
[    0.036184] NET: Registered protocol family 2
[    0.036762] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.036796] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.036819] TCP: Hash tables configured (established 1024 bind 1024)
[    0.036944] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.036992] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.037200] NET: Registered protocol family 1
[    0.037767] RPC: Registered named UNIX socket transport module.
[    0.037787] RPC: Registered udp transport module.
[    0.037793] RPC: Registered tcp transport module.
[    0.037799] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.039695] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.048561] NFS: Registering the id_resolver key type
[    0.048612] Key type id_resolver registered
[    0.048619] Key type id_legacy registered
[    0.048664] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.050154] random: fast init done
[    0.052966] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.052990] io scheduler noop registered
[    0.052999] io scheduler deadline registered
[    0.053280] io scheduler cfq registered (default)
[    0.053293] io scheduler mq-deadline registered
[    0.053299] io scheduler kyber registered
[    0.057674] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126636] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.129857] console [ttyS0] disabled
[    0.150130] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.734147] console [ttyS0] enabled
[    0.759177] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.772665] m25p80 spi32766.0: mx25l12805d (16384 Kbytes)
[    0.778192] spi32766.0: parser cmdlinepart: 0
[    0.782548] spi32766.0: parser ofpart: 0
[    0.787516] libphy: Fixed MDIO Bus: probed
[    0.792100] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.798033] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.803753] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.809820] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.819397] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.825054] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.832295] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.837962] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.845175] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.850146] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.857132] libphy: stmmac: probed
[    0.862449] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.869108] ehci-platform: EHCI generic platform driver
[    0.874624] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.880320] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.888255] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.915409] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.922646] hub 1-0:1.0: USB hub found
[    0.926607] hub 1-0:1.0: 1 port detected
[    0.931120] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.937423] ohci-platform: OHCI generic platform driver
[    0.942969] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.949713] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.957677] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.030528] hub 2-0:1.0: USB hub found
[    1.034359] hub 2-0:1.0: 1 port detected
[    1.041556] usbcore: registered new interface driver cdc_acm
[    1.047318] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.055485] usbcore: registered new interface driver usb-storage
[    1.061631] usbcore: registered new interface driver usbserial
[    1.068806] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.075712] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.080257] i2c /dev entries driver
[    1.085694] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.145572] sunxi-mmc 1c0f000.mmc: base:0xc407d000 irq:23
[    1.152524] usbcore: registered new interface driver usbhid
[    1.158198] usbhid: USB HID core driver
[    1.164201] NET: Registered protocol family 17
[    1.168886] Key type dns_resolver registered
[    1.173287] Registering SWP/SWPB emulation handler
[    1.183555] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4400000
[    1.194252] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.212516] Console: switching to colour frame buffer device 100x30
[    1.224975] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.233553] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.244933] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.250775] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.259862] hub 3-0:1.0: USB hub found
[    1.263726] hub 3-0:1.0: 1 port detected
[    1.270247] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:26:01 UTC (1561)
[    1.278767] vcc3v0: disabling
[    1.281744] vcc5v0: disabling
[    1.284709] ALSA device list:
[    1.287732]   No soundcards found.
[    1.294029] Waiting for root device /dev/mmcblk0p2...
[    1.333125] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.343353] mmc0: new high speed SD card at address b368
[    1.349323] mmcblk0: mmc0:b368 NCard 961 MiB
[    1.355089]  mmcblk0: p1 p2
[    1.386575] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.395618] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.841219] EXT4-fs (mmcblk0p2): recovery complete
[    1.994781] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.002988] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.009995] devtmpfs: mounted
[    2.014263] Freeing unused kernel memory: 1024K
[    2.165150] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Starting mdev...
modprobe: can't change directory to '4.13.16-licheepi-zero+': No such file or directory
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login:

离线

楼主 #12 2019-04-17 16:09:58

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

linux 下的dtsi
&i2c0 {
        status = "okay";

        ns2009: ns2009@48 {
                compatible = "nsiway,ns2009";
                reg = <0x48>;
        };
};

离线

楼主 #13 2019-04-18 08:58:39

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

这是 我配置了linux的dts和dtsi
2_20190418-0857.png
1_20190418-0857.png

离线

#14 2019-04-18 09:45:14

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,348
积分: 9202

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

荔枝派zero默认用 ns2009驱动了,你恢复源码重新编译就可以,或者直接烧本站的固件。

https://whycan.cn/t_2169.html





离线

楼主 #15 2019-04-18 10:04:47

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 执行QT程序时刚启动提示Could not find the Qt platform plugin "eglfs" in ""

晕哥 说:

荔枝派zero默认用 ns2009驱动了,你恢复源码重新编译就可以,或者直接烧本站的固件。

https://whycan.cn/t_2169.html


是的 哈哈 大早上就是重新编译了下  可以跑起来了 然后QT里面放了一个工程也可以了

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn