Project of LCD Information Release System

 

INDEX

1.    Project of Design. 1

1.1.     Project 1: 1

1.2.     Project 2... 2

2.    The Project Compare And Explain. 4

2.1.     Contrast Of Project 4

2.2.     Recommendation Of Project 5

 

1.   Project of Design

1.1. Project 1:

Through a computer of multi-display adapter,the output of each display adapter is converted into a video signal by a equipment of VGA to AV,it is sended to LCD by cable of 75-5.Structure picture of system as follows:

 

 

The system consists of 3 parts:

n       Host of multi-display adapter

By multi-display adapter composed of a computer system, amount of display adapter depends on the number of LCD, each LCD is corresponding to a display adapter.

n       Transmission Of Video

Transmission of video consists of VGA->AV,75-5 cable and amplifier (if distance of between host and LCD is more than 300 meters,need it.).

n       Control Software

This part is hard-core of whole system, it consists of the following components:

Ø       Edit Information

Ø       Display of Information

Ø       Control Of Equipment

 

1.2. Project 2

Through a computer of multi-display adapter, the output of each display adapter is converted into a video signal , video signal through the modulator and video mixer, and then through the RF transmitter is converted to a wireless signal.

Structure picture of system as follows:

Pic2

 

The system consists of 3 parts:

n       Host of multi-display adapter

By multi-display adapter composed of a computer system, amount of display adapter depends on the different sources of information quantity.

n       transmission of Wireless

Computer output information through the video modulator, video mixer, RF transmitter transmission out for television reception equipment

n       Control Software

This part is hard-core of whole system, it consists of the following components:

Ø       Edit Information

Ø       Display of Information

Ø       Control Of Equipment

2.   The Project Compare And Explain

2.1.  Contrast Of Project

Projects 1 and 2 has themselves advantagesdescribed as follows:

l       Project 1

VirtueHardware structure is very simple, only need a video converter and transmission cable can be achieved, maintenance of equipment is relatively simple, and the hardware  of system need very little investment

Defect1After the cable is installedlocation of LCD is aptotic.If LCD is moved an other room from a room, transmission cable is installed. 2 Restricted by distance, distance of between LCD and the host of control (computer) should not more than 300 meters.

l       Project 2

VirtuePosition of LCD is very unrestricted, it can be moved at any moment. Expansibility of system is very good, and Can increase and decrease the number of LCD.

Defect: The part of hardware is complicated, overall investment is also relatively large. maintenance of equipment is also relatively complex, and need professional knowledge.

2.2. Recommendation Of Project

源码地址: https://pan.quark.cn/s/d1f41682e390 miyoubiAuto 米游社每日米游币自动化Python脚本(务必使用Python3) 8更新:更换cookie的获取地址 注意:禁止在B站、贴吧、或各大论坛大肆传播! 作者已退游,项目不维护了。 如果有能力的可以pr修复。 小引一波 推荐关注几个非常可爱有趣的女孩! 欢迎B站搜索: @嘉然今天吃什么 @向晚大魔王 @乃琳Queen @贝拉kira 第三方库 食用方法 下载源码 在Global.py中设置米游社Cookie 运行myb.py 本地第一次运行时会自动生产一个文件储存cookie,请勿删除 当前仅支持单个账号! 获取Cookie方法 浏览器无痕模式打开 http://user.mihoyo.com/ ,登录账号 按,打开,找到并点击 按刷新页面,按下图复制 Cookie: How to get mys cookie 当触发时,可尝试按关闭,然后再次刷新页面,最后复制 Cookie。 也可以使用另一种方法: 复制代码 浏览器无痕模式打开 http://user.mihoyo.com/ ,登录账号 按,打开,找到并点击 控制台粘贴代码并运行,获得类似的输出信息 部分即为所需复制的 Cookie,点击确定复制 部署方法--腾讯云函数版(推荐! ) 下载项目源码和压缩包 进入项目文件夹打开命令行执行以下命令 xxxxxxx为通过上面方式或取得米游社cookie 一定要用双引号包裹!! 例如: png 复制返回内容(包括括号) 例如: QQ截图20210505031552.png 登录腾讯云函数官网 选择函数服务-新建-自定义创建 函数名称随意-地区随意-运行环境Python3....
把QT项目移植到新设备报错 :-1: error: The command "/home/hetu/install/qt/Tools/CMake/bin/cmake -S /home/hetu/project/ManagementSystem -B /home/hetu/project/ManagementSystem/build/Desktop_Qt_6_2_3_GCC_64bit-Release -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_PREFIX_PATH:PATH=/home/hetu/install/qt/6.2.3/gcc_64 -DCMAKE_C_COMPILER:FILEPATH=/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/bin/g++ -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/hetu/project/ManagementSystem/build/Desktop_Qt_6_2_3_GCC_64bit-Release/.qtc/package-manager/auto-setup.cmake -DCMAKE_CXX_FLAGS_INIT:STRING= -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_BUILD_TYPE:STRING=Release -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/hetu/install/qt/6.2.3/gcc_64/bin/qmake" terminated with exit code 1. :-1: error: The command "/home/hetu/install/qt/Tools/CMake/bin/cmake -S /home/hetu/project/ManagementSystem -B /home/hetu/project/ManagementSystem/build/Desktop_Qt_6_2_3_GCC_64bit-Release -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_PREFIX_PATH:PATH=/home/hetu/install/qt/6.2.3/gcc_64 -DCMAKE_C_COMPILER:FILEPATH=/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/bin/g++ -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/hetu/project/ManagementSystem/build/Desktop_Qt_6_2_3_GCC_64bit-Release/.qtc/package-manager/auto-setup.cmake -DCMAKE_CXX_FLAGS_INIT:STRING= -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_BUILD_TYPE:STRING=Release -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/hetu/install/qt/6.2.3/gcc_64/bin/qmake" terminated with exit code 1. :-1: error: CMake project configuration failed. No CMake configuration for build type "Release" found. Check General Messages for more information.
06-19
<think>我们正在处理一个关于将QT项目移植到新设备时CMake配置失败的问题。错误信息指出:CMakeErrorat/usr/share/cmake-3.16/Modules/FindQt4.cmake:1314(message):FoundunsuitableQtversion"5.12.8"from/usr/bin/qmake,thiscoderequiresQt4.x同时,用户提到“QT_QMAKE_EXECUTABLERelease配置缺失”,这可能是问题的一部分。根据引用[1],错误是因为项目要求Qt4.x,但当前找到的是Qt5.12.8。用户的项目可能是为Qt4编写的,而新设备上安装的是Qt5。另外,引用[2]提到用户将项目从CLion移植到QTCreator,并修改了导出函数,使用了QWidgets类。这可能意味着用户已经尝试过调整项目,但问题仍然存在。解决思路:1.确认项目所需的Qt版本:根据错误信息,项目要求Qt4.x,因此需要在新设备上安装Qt4,或者修改项目以支持Qt5。2.如果必须使用Qt4,则安装Qt4并设置相应的环境变量。3.如果项目可以迁移到Qt5,则修改CMakeLists.txt文件,将查找Qt4的指令改为查找Qt5。4.设置QT_QMAKE_EXECUTABLE变量,指向正确的qmake路径(Qt4或Qt5的qmake)。具体步骤:###方案1:安装Qt4并配置如果项目必须使用Qt4,则在新设备上安装Qt4,并确保CMake能够找到它。-安装Qt4:可以通过包管理器安装,例如在Ubuntu上:```bashsudoapt-getinstallqt4-default```-设置环境变量:确保qmake的路径(通常是`/usr/bin/qmake-qt4`)被正确设置。可以通过设置`QT_QMAKE_EXECUTABLE`环境变量或者在CMake命令中指定:```bashexportQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4```或者在CMakeLists.txt中设置:```cmakeset(QT_QMAKE_EXECUTABLE"/usr/bin/qmake-qt4")```###方案2:迁移项目到Qt5如果项目可以升级到Qt5,则修改CMakeLists.txt,使用find_package查找Qt5。1.修改CMakeLists.txt,将`find_package(Qt4)`替换为:```cmakefind_package(Qt5COMPONENTSCoreWidgets...)#根据项目需要的模块添加```2.相应地,将使用`QT4_`前缀的变量和宏改为使用`Qt5`的,例如:```cmakeinclude_directories(${Qt5Core_INCLUDE_DIRS}${Qt5Widgets_INCLUDE_DIRS})target_link_libraries(your_target${Qt5Core_LIBRARIES}${Qt5Widgets_LIBRARIES})```3.在代码中,将Qt4的头文件包含方式改为Qt5的,例如:将`#include<QtGui/QMainWindow>`改为`#include<QMainWindow>`###关于QT_QMAKE_EXECUTABLE缺失的问题在CMake配置时,如果找不到qmake,可以显式设置`QT_QMAKE_EXECUTABLE`变量。例如,在命令行中:```bashcmake-DQT_QMAKE_EXECUTABLE=/path/to/qmake..```其中`/path/to/qmake`是正确版本的qmake路径(Qt4或Qt5)。###总结根据错误信息,项目要求Qt4,而新设备只有Qt5。因此,要么安装Qt4并配置CMake使用它,要么将项目迁移到Qt5。同时,确保`QT_QMAKE_EXECUTABLE`变量指向正确的qmake。§§相关问题§§1.如何检查系统中已安装的Qt版本?2.在CMake中如何指定使用Qt4还是Qt5?3.如何将基于Qt4的项目迁移到Qt5?</think>### QT项目移植到新设备时CMake配置失败的解决方案 #### 问题分析 根据错误信息: ``` CMake Error at /usr/share/cmake-3.16/Modules/FindQt4.cmake:1314 (message): Found unsuitable Qt version "5.12.8" from /usr/bin/qmake, this code requires Qt 4.x ``` 核心问题是**版本不匹配**: 1. 项目要求使用Qt4(通过`find_package(Qt4)`调用) 2. 新设备上只安装了Qt5(检测到5.12.8版本) 3. `QT_QMAKE_EXECUTABLE`变量未正确配置,导致CMake无法定位Qt4的qmake --- #### 解决方案 ##### 方法1:安装Qt4并配置环境(推荐) ```bash # 安装Qt4开发包(Ubuntu示例) sudo apt-get install qt4-default qt4-qmake libqt4-dev # 设置环境变量 export QT4_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 # 路径可能因系统而异 export QT_QMAKE_EXECUTABLE=$QT4_QMAKE_EXECUTABLE # 重新运行CMake cmake -DCMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu/qt4 .. ``` ##### 方法2:升级项目到Qt5(需修改代码) 1. 修改`CMakeLists.txt`: ```cmake # 替换 find_package(Qt4) → find_package(Qt5 COMPONENTS Core Widgets REQUIRED) # 按需添加模块 # 更新链接指令 target_link_libraries(your_target Qt5::Core Qt5::Widgets) ``` 2. 迁移代码中的Qt4 API到Qt5(如`Q_WS_X11`→`Q_OS_LINUX`) 3. 设置Qt5路径: ```bash cmake -DCMAKE_PREFIX_PATH=/path/to/Qt5/5.12.8/gcc_64 .. ``` ##### 方法3:显式指定qmake路径 在CMake命令中强制指定Qt4的qmake: ```bash cmake -DQT_QMAKE_EXECUTABLE=/opt/qt4/bin/qmake .. ``` --- #### 关键配置点 1. **版本检测**: ```bash qmake --version # 检查当前默认版本 locate qmake # 查找所有可用qmake路径 ``` 2. **环境变量优先级**: - `QT_QMAKE_EXECUTABLE` > `PATH`中的qmake - 在CLion/QtCreator中需在`Run/Debug Configurations`设置环境变量 3. **CMake模块选择**: - Qt4使用`FindQt4.cmake` - Qt5使用`Qt5Config.cmake` > 建议优先安装Qt4保持兼容性,长期项目应考虑迁移到Qt5[^1][^2]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值