fix: build error on ubuntu

This commit is contained in:
冉坤 2022-01-05 15:43:22 +08:00
commit 6ab2dca562
2 changed files with 6 additions and 1 deletions

View file

@ -407,6 +407,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
avutil avutil
swscale swscale
) )
# Qt
target_link_libraries(${PROJECT_NAME} PRIVATE
Qt${QT_VERSION_MAJOR}::X11Extras
)
# linux set app icon: https://blog.csdn.net/MrNoboday/article/details/82870853 # linux set app icon: https://blog.csdn.net/MrNoboday/article/details/82870853
endif() endif()

View file

@ -45,7 +45,7 @@ echo current build mode: $build_mode
echo echo
echo echo
echo --------------------------------------------------------------- echo ---------------------------------------------------------------
echo begin qmake build echo begin cmake build
echo --------------------------------------------------------------- echo ---------------------------------------------------------------
# 删除输出目录 # 删除输出目录