Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
启动基于Qt-Qml的应用程序_Qt_Qml_Buildroot - Fatal编程技术网

启动基于Qt-Qml的应用程序

启动基于Qt-Qml的应用程序,qt,qml,buildroot,Qt,Qml,Buildroot,我想知道如何使用buidroot启动基于qt qml的应用程序。我已经在menuconfig中添加了我的应用程序作为一个包,但是当创建映像(为rpi2制作映像)并通过SD卡引导时,只会显示彩色屏幕,我假设我的内核甚至没有加载。应用程序的Makefile是用Qt构建的。 另外,我想知道如何更快地引导我的rpi2,并且是否可以在Buildroot配置中进行任何更改以确保这一点。 先谢谢你 buildroot包中的App.mk文件: FRTDisplay_OVERRIDE_SRCDIR = /home

我想知道如何使用buidroot启动基于qt qml的应用程序。我已经在menuconfig中添加了我的应用程序作为一个包,但是当创建映像(为rpi2制作映像)并通过SD卡引导时,只会显示彩色屏幕,我假设我的内核甚至没有加载。应用程序的Makefile是用Qt构建的。 另外,我想知道如何更快地引导我的rpi2,并且是否可以在Buildroot配置中进行任何更改以确保这一点。 先谢谢你

buildroot包中的App.mk文件:

FRTDisplay_OVERRIDE_SRCDIR = /home/igor/build-FRTDisplay-Desktop_Qt_5_11_0_GCC_64bit-Debug
FRTDisplay_OVERRIDE_RSYNC = yes

define FRTDISPLAY_BUILD_CMDS
        $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef

define FRTDISPLAY_INSTALL_TARGET_CMDS
        if ! [ -d "$(TARGET_DIR)/bin/" ]; then \
                mkdir -p $(TARGET_DIR)/bin/; \
        fi
        $(INSTALL) -D -m 0755 $(@D)/build-FRTDisplay-Desktop_Qt_5_11_0_GCC_64bit-Debug $(TARGET_DIR)/bin/
endef

define FRTDISPLAY_CLEAN_CMDS
        $(MAKE) -C $(@D) clean
endef

define FRTDISPLAY_UNINSTALL_TARGET_CMDS
        rm -f $(TARGET_DIR)/bin/build-FRTDisplay-Desktop_Qt_5_11_0_GCC_64bit-Debug
endef

$(eval $(generic-package))
应用程序源文件夹中的初始化脚本:

#!/bin/sh
case "$1" in
  start)
    /home/igor/build-FRTDisplay-Desktop_Qt_5_11_0_GCC_64bit-Debug
    ;;
  stop)
    exit 1
    ;;
  *)
    exit 1
    ;;
esac

exit 0
我使用了rpi2 defconfig,这是menuconfig中更改的选项列表:

-default arhitecture
-default toolchain
-uclib
-enable c++
-enable compiler link time opt support
-enable mmu support
sys config
-enable root login
-enable busybox default shell
-disable getty
-enable remount root
-disable network interfaces
kernel
-enable linux kernel
target packages
-install watchdog daemon
-enable zip
hardware handling
-enable rpi-userland
-enable start vcfield
graphic
-enable qt5
-enable gui module
-enable widgets module
-enable opengl support
-enable opengl module
-enable eglfs
-default graphical platform(eglfs)
-enable qtbase,fontconfig,gif,png,jpg,dbus,icu,tslib,qt5 declarative,qt5graphicaleffects,qt5imageformatting,qtquickcontrols,qtquickcontrols2,qt5script,qt5sensors,qt5serialports,qt5xmlpatterns
我的应用程序是纯粹的显示应用程序,我不需要在buildroot配置中使用网络或任何其他与网络相关的功能。
另外,对于js代码片段很抱歉,我不熟悉stackoverflow问题:)

您检查过吗?是的,但我无法下载,因为我使用的是Qt的开源版本