天天看點

OkEDU-Classroom-Desktop在win下編譯記錄

目錄

​​0  編譯結果 ​​

​​一 cmake結果​​

​​二  pkg-config tool not found問題解決​​

​​三  QtAv依賴路徑錯誤​​

​​四 參考連結​​

0  編譯結果 

OkEDU-Classroom-Desktop在win下編譯記錄

一 cmake結果

OkEDU-Classroom-Desktop在win下編譯記錄

二  pkg-config tool not found問題解決

下載下傳​​pkg-config-lite download | SourceForge.net​​

然後放置到如下目錄:

OkEDU-Classroom-Desktop在win下編譯記錄

三  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-Desktop​​OkEDU-Classroom-Desktop:​​

繼續閱讀