简体   繁体   English

我可以在linux启动时在initrd中运行Qt应用程序吗?

[英]Can I run a Qt application in initrd when the linux startup?

I wonder that if I can run a Qt application in initrd between the grub and the real os startup. 我想知道如果我可以在grub和真正的os启动之间在initrd中运行Qt应用程序。 And stop when the Qt application run. 并在Qt应用程序运行时停止

Yes,you can do it since initrd itself is also an mini root system. 是的,你可以这样做,因为initrd本身也是一个迷你根系统。 however, compared to normal root system, A lot of libraries aren't included in initrd to keep the size reasonable. 但是,与普通的根系统相比,initrd中不包含许多库以保持大小合理。 so you have to add all the libraries needed by your QT program yourself.or you can compile a static linked QT program which is a little more simple than dynamic ones. 所以你必须自己添加你的QT程序所需的所有库。或者你可以编译一个静态链接的QT程序,它比动态的更简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM