OkEDU-Classroom-Desktop在win下编译记录
Posted yantuguiguziPGJ
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OkEDU-Classroom-Desktop在win下编译记录相关的知识,希望对你有一定的参考价值。
目录
二 pkg-config tool not found问题解决
0 编译结果
一 cmake结果
二 pkg-config tool not found问题解决
下载pkg-config-lite download | SourceForge.net
然后放置到如下目录:
三 QtAv依赖路径错误
修改C:\\Users\\pgjgg\\Desktop\\CODE\\ok-edu\\ok-edu-classroom-desktop\\3rdparty\\QtAV\\CMakeLists.txt
从:
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
if(NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(QTAV_INSTALL_HEADERS $CMAKE_INSTALL_PREFIX/include)
set(QTAV_INSTALL_LIBS $CMAKE_INSTALL_PREFIX/lib)
set(QTAV_INSTALL_BINS $CMAKE_INSTALL_PREFIX/bin)
set(QTAV_INSTALL_QML $QTAV_INSTALL_LIBS/qml)
else()
set(CMAKE_INSTALL_PREFIX $QT_INSTALL_PREFIX CACHE PATH "default install path" FORCE)
set(QTAV_INSTALL_HEADERS $QT_INSTALL_HEADERS)
set(QTAV_INSTALL_LIBS $QT_INSTALL_LIBS)
set(QTAV_INSTALL_BINS $QT_INSTALL_BINS)
set(QTAV_INSTALL_QML $QT_INSTALL_QML)
endif()
到:
# Instruct CMake to run moc automatically when needed.
set(CMAKE_AUTOMOC ON)
if(NOT CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(QTAV_INSTALL_HEADERS $QT_INSTALL_PREFIX/include)
set(QTAV_INSTALL_LIBS $QT_INSTALL_PREFIX/lib)
set(QTAV_INSTALL_BINS $QT_INSTALL_PREFIX/bin)
set(QTAV_INSTALL_QML $QT_INSTALL_PREFIX/qml)
else()
set(CMAKE_INSTALL_PREFIX $QT_INSTALL_PREFIX CACHE PATH "default install path" FORCE)
set(QTAV_INSTALL_HEADERS $QT_INSTALL_HEADERS)
set(QTAV_INSTALL_LIBS $QT_INSTALL_LIBS)
set(QTAV_INSTALL_BINS $QT_INSTALL_BINS)
set(QTAV_INSTALL_QML $QT_INSTALL_QML)
endif()
四 参考链接
OkEDU-Classroom-Desktop:OkEDU-Classroom-DesktopOkEDU-Classroom-Desktop:
在cmake中使用pkg-config - 简书 (jianshu.com)
Build QtAV · wang-bin/QtAV Wiki (github.com)
(138条消息) 【Qt 开源音视频框架模块QtAV】01:介绍、编译以及简单使用_jbyyy、的博客-CSDN博客_qtav
以上是关于OkEDU-Classroom-Desktop在win下编译记录的主要内容,如果未能解决你的问题,请参考以下文章
OkEDU-Classroom-Desktop在win下编译记录