-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No functional changes, QT 6 stuff (#668)
* QT 6 stuff * QT 6 stuff * add error message box * remove a few obsolete settings * small comp fixes * small comp fixes * fix layouting for QT6 * fix layouting for QT6 * add QT6 CI * add QT6 CI * add QT6 CI * qt 6.4 also works
- Loading branch information
Showing
21 changed files
with
320 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: ubuntu22_build_test_qt6 | ||
|
||
# @Rapha please keep this one without any packaging or similar ;) | ||
# NOTE: This test only checks if the code in the repository builds under ubuntu x86 (dependencies installed) | ||
# Which is - simply put - the most basic test. If this test fails, there is something wrong with the code. | ||
|
||
on: [push] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
#runs-on: ubuntu-18.04 | ||
#runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: 6.5 | ||
modules: qtcharts | ||
|
||
- name: Install non-qt dependencies | ||
run: | | ||
sudo ./install_qt6_build_dep.sh | ||
- name: Build with CMake | ||
run: | | ||
./build_cmake.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set(AVCODEC_SOURCES | ||
${CMAKE_CURRENT_LIST_DIR}/QSGVideoTextureItem.cpp | ||
${CMAKE_CURRENT_LIST_DIR}/gl/gl_shaders.cpp | ||
${CMAKE_CURRENT_LIST_DIR}/gl/gl_videorenderer.cpp | ||
${CMAKE_CURRENT_LIST_DIR}/texturerenderer.cpp | ||
${CMAKE_CURRENT_LIST_DIR}/avcodec_decoder.cpp | ||
) | ||
|
||
set(AVCODEC_HEADERS | ||
QSGVideoTextureItem.h | ||
) | ||
|
||
target_sources(QOpenHDApp PRIVATE ${AVCODEC_SOURCES}) | ||
|
||
target_include_directories(QOpenHDApp | ||
PUBLIC | ||
${CMAKE_CURRENT_LIST_DIR} | ||
) | ||
|
||
target_link_libraries(QOpenHDApp PRIVATE avcodec avutil avformat) | ||
target_link_libraries(QOpenHDApp PRIVATE GLESv2 EGL) | ||
|
||
add_compile_definitions(QOPENHD_ENABLE_VIDEO_VIA_AVCODEC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
rm -rf build | ||
mkdir build | ||
cd build | ||
|
||
QT6_DIRECTORY="$HOME/Qt/6.6.2/gcc_64/lib/cmake" | ||
|
||
cmake -DCMAKE_PREFIX_PATH=$QT6_DIRECTORY .. | ||
make -j$($(nproc)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
apt-get install -y build-essential cmake | ||
apt-get install -y libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good | ||
apt-get install -y libavcodec-dev libavformat-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
set(H264_SOURCES | ||
${CMAKE_CURRENT_LIST_DIR}/h264_bitstream_parser.cc | ||
${CMAKE_CURRENT_LIST_DIR}/h264_common.cc | ||
${CMAKE_CURRENT_LIST_DIR}/pps_parser.cc | ||
${CMAKE_CURRENT_LIST_DIR}/sps_parser.cc | ||
${CMAKE_CURRENT_LIST_DIR}/bit_buffer.cc | ||
${CMAKE_CURRENT_LIST_DIR}/checks.cc | ||
${CMAKE_CURRENT_LIST_DIR}/zero_memory.cc | ||
) | ||
|
||
target_sources(QOpenHDApp PRIVATE ${H264_SOURCES}) | ||
|
||
target_include_directories(QOpenHDApp | ||
PUBLIC | ||
${CMAKE_CURRENT_LIST_DIR} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.