目录
三 pkg-config tool not found问题解决
- cmake -B build -DCMAKE_BUILD_TYPE=Release -DQt5_DIR="C:/Qt/Qt5.15.2/msvc2019_64/lib/cmake/Qt5"
- cmake --build build --config Release
20220927的cmake结果
修改如下:
set(Qt5_DIR C:/Qt/5.15.2/msvc2019_64/)
# set(CMAKE_C_COMPILER /usr/bin/clang)
# set(CMAKE_CXX_COMPILER /usr/bin/clang++)
再次cmake
下载pkg-config-lite download | SourceForge.net
然后放置到如下目录:
修改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-Desktop (gitee.com)OkEDU-Classroom-DesktopOkEDU-Classroom-Desktop: OkEDU-Classroom-Desktop (gitee.com)
在cmake中使用pkg-config - 简书 (jianshu.com)
Build QtAV · wang-bin/QtAV Wiki (github.com)
(138条消息) 【Qt 开源音视频框架模块QtAV】01:介绍、编译以及简单使用_jbyyy、的博客-CSDN博客_qtav