页次: 1
目前只有/etc/inittab 处理 有效点。只是启动后,暂时打印,但没有彻底断开。开机还是打印出来。
搞了一整天也不知从哪里彻底断开!多谢指导?
# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <andersen@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels. The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<runlevels>:<action>:<process>
#
# id == tty to run on, or empty for /dev/console
# runlevels == ignored
# action == one of sysinit, respawn, askfirst, wait, and once
# process == program to run
# Startup the system
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mkdir -p /dev/shm
::sysinit:/bin/mount -a
::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS
# Put a getty on the serial port
# ::respawn:/sbin/getty -L /dev/console 0 vt100 # GENERIC_SERIAL# 屏蔽此行,
# Stuff to do for the 3-finger salute
#::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
::shutdown:/etc/init.d/rcK
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
V3S+QT5 显示图片问题。
QPixmap::scaled: Pixmap is a null pixmap
我的配置如下:
一. 移植的时候注意:
1. 配置(configure)的时候加上 -qt-libjpeg 好像默认是加上的。
2. make install 后, 看看安装的目录(前缀/plugins/imageformats)有没有 libjpeg.so
二. 开发板
1. QT 源码修改:
在Qt的pro文件中增加QTPLUGIN += jpeg
2. 开发板
1) 把"libjpeg.so"等文件 复制到开发板"/usr/lib/qt/plugins/imageformats/" ;
2) 设置环境变量,
export LD_LIBRARY_PATH=$QTLIB/qt/plugins/imageformats:$LD_LIBRARY_PATH
export QT_PLUGIN_PATH=$QTLIB/qt/plugins
搞了一天了,结果还是图片无法显示。各位,有无相关的经历,分享怎么解决
测试下QT5里面的例子blockingmaster
修改文件dialog.cpp 文件
setWindowTitle(tr("Blocking Master"));
serialPortComboBox->setFocus();
connect(runButton, &QPushButton::clicked, this, &Dialog::transaction);
connect(&thread, &MasterThread::response, this, &Dialog::showResponse);
connect(&thread, &MasterThread::error, this, &Dialog::processError);
connect(&thread, &MasterThread::timeout, this, &Dialog::processTimeout);
transaction();//<<新增这一行表示,初始化就开启线程
页次: 1