Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
08e98da
Initial support for qt 5 and 6
elecpower Feb 13, 2025
b4852b1
Update github workflows Qt version
elecpower Mar 12, 2025
87424d1
Update scripts and add script for 24.04
elecpower Mar 12, 2025
48c0308
Update msys build script
elecpower Mar 12, 2025
41664bc
Change devcontainer image to tag pr-24
elecpower Mar 12, 2025
c04f6f4
Fix linux devcontainer tag and cmake error
elecpower Mar 12, 2025
12b3e90
Update nightlies devcontainer image tag
elecpower Mar 12, 2025
27791a9
Fix cmake
elecpower Mar 12, 2025
0478d71
Fix github actions and nightly image tags
elecpower Mar 12, 2025
4afe5c4
Fix macos lib path and win cli parse
elecpower Mar 13, 2025
eccfead
Installer fix and suppress warnings
elecpower Mar 13, 2025
7f4a980
Try to fix mac again
elecpower Mar 13, 2025
439e8b4
Fix initialisation
elecpower Mar 13, 2025
925b506
Suppress more warnings
elecpower Mar 13, 2025
1bf97a9
Remove more win32 and qt5 build instructions
elecpower Mar 13, 2025
b6dbc00
Silence mac warning
elecpower Mar 14, 2025
dc6b7d2
Suppress wizdata warning
elecpower Mar 14, 2025
f01e67d
Fix type-punned warning
elecpower Mar 14, 2025
9cf5474
More type-punned fixes
elecpower Mar 15, 2025
708f7b3
Fix linux cpack
elecpower Mar 29, 2025
2c05e6d
Update maxlibqt commit
elecpower Apr 14, 2025
be8e01e
fix simulator start
elecpower Apr 14, 2025
74e9e8c
fix depreciation warning
elecpower Apr 25, 2025
621acaa
Remove gstreamer plug-in dependency
elecpower Apr 29, 2025
25227a5
fix audio output from mediaplayer
elecpower May 2, 2025
9b95fe1
Move linux files to os target directory
elecpower May 2, 2025
46034da
add explicit parent path
elecpower May 2, 2025
aa6394d
bump qt 6.9.0 for win and mac
elecpower May 2, 2025
6c2952f
cmake housekeeping
elecpower May 2, 2025
55d938a
delete cached ssl v1 win files
elecpower May 3, 2025
91f69d7
use macdeployqt as installer
elecpower May 3, 2025
2cbabf5
housekeeping remove opentx logos
elecpower May 4, 2025
4a7c295
housekeeping remove more opentx images
elecpower May 4, 2025
93f6c77
housekeeping remove another opentx image
elecpower May 4, 2025
0ab005a
versionless qt
elecpower May 4, 2025
a0a1c0e
Fix depreciated qt warnings
elecpower May 5, 2025
18b7544
cmake housekeeping
elecpower May 7, 2025
42a4276
Add 64x64 linux companion icon
elecpower May 8, 2025
82dd810
linux install housekeeping
elecpower May 8, 2025
e56ba24
fix libsims crashing in debug output handling
elecpower May 9, 2025
85e0cc3
more cmake housekeeping
elecpower May 10, 2025
e0554d9
fix target gtest-radio
elecpower May 12, 2025
2ff9ea6
fix windows license file not found
elecpower May 12, 2025
f42df20
fix windows nsi file missing
elecpower May 12, 2025
c80afef
fix msys setup
elecpower May 13, 2025
5e123ff
cmake find package housekeeping
elecpower May 13, 2025
0764da6
duplicate find package checks
elecpower May 13, 2025
2db46ae
fix linux install and standardise findlibusb1
elecpower May 13, 2025
2b8eb7e
fix win/msys2 installation
elecpower May 15, 2025
2a0ca9a
more cmake housekeeping
May 20, 2025
7220f89
Use std win app install directories
May 24, 2025
faeb0ef
More cpack housekeeping
elecpower Jun 4, 2025
e126e46
fix macos bundle path
elecpower Jun 10, 2025
1349510
another macos package fix
elecpower Jun 10, 2025
ea0ee78
more install and packaging fixes
elecpower Jun 11, 2025
0d09b24
replace depreciated cmake cmds
elecpower Jun 11, 2025
14c434a
disable manual bundle
elecpower Jun 12, 2025
5dd378f
fix depreciated params
elecpower Jun 12, 2025
998a221
fix path generate logic
elecpower Jun 12, 2025
38a5bca
fix path variable name
elecpower Jun 12, 2025
cbe4579
Revert "housekeeping remove another opentx image"
elecpower Jun 12, 2025
cd2c062
Change dmg backgroung img to edgetx
elecpower Jun 12, 2025
e0c4bfb
change macos build dir
elecpower Jun 14, 2025
0ea6639
macos packaging experiment
elecpower Jun 16, 2025
be98875
oops
elecpower Jun 16, 2025
f04bda5
experiment 2
elecpower Jun 16, 2025
a0427f4
experiment 3
elecpower Jun 16, 2025
31a0daa
fix permissions macos install
elecpower Jun 29, 2025
1b7ea84
fix(macOS): packaging with `macdeployqt`
raphaelcoeffic Jun 29, 2025
e49d6a6
fix(win): qt.conf path
elecpower Jul 1, 2025
350dc7b
fix(appimage): location of so files
elecpower Jul 3, 2025
bfad0bd
Revert Companion to run libsims in-line
elecpower Jul 20, 2025
c964013
Revert back to using `edgetx-dev:latest`
raphaelcoeffic Jul 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/microsoft/vscode-dev-containers/tree/v0.187.0/containers/cpp
{
"name": "edgetx-dev",
"image": "ghcr.io/edgetx/edgetx-dev:latest",
"image": "ghcr.io/edgetx/edgetx-dev:pr-24",
"runArgs": [ "--ipc=host"],

// Add the IDs of extensions you want installed when the container is created.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/macosx_cpn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
QT_VERSION: "5.15.2"
QT_VERSION: "6.9.0"

jobs:
build:
Expand Down Expand Up @@ -61,6 +61,7 @@ jobs:
AQT_CONFIG: ${{ github.workspace }}/tools/aqt-settings.ini
with:
version: ${{ env.QT_VERSION }}
modules: 'qtmultimedia qtserialport'
setup-python: 'false'
cache: true
cache-key-prefix: 'install-qt-action-macOS'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: '0 2 * * *' # run at 2 AM UTC
workflow_dispatch:

concurrency:
concurrency:
group: 'nightly'
cancel-in-progress: true

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/win_cpn-64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
CMAKE_GENERATOR: "MSYS Makefiles"
QT_VERSION: "5.15.2"
MINGW_VERSION: "win64_mingw81"
MINGW_PATH: "mingw81_64"
QT_VERSION: "6.9.0"
MINGW_VERSION: "win64_mingw"
MINGW_PATH: "mingw_64"

jobs:
build:
Expand Down Expand Up @@ -83,6 +83,7 @@ jobs:
cache-key-prefix: 'install-qt-action-win64'
version: ${{ env.QT_VERSION }}
arch: ${{ env.MINGW_VERSION }}
modules: 'qtmultimedia qtserialport'

- name: Build
working-directory: ${{github.workspace}}
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ if(NATIVE_BUILD)
include(NativeTargets)
else()
# Prevent CMake warnings
set(IGNORE "${SDL2_LIBRARY_PATH}" "${LIBSSL1_ROOT_DIR}" "${OPENSSL_ROOT_DIR}")
set(IGNORE "${SDL2_LIBRARY_PATH}" "${LIBUSB1_ROOT_DIR}" "${OPENSSL_ROOT_DIR}")
endif()

add_subdirectory(${RADIO_SRC_DIR})
2 changes: 1 addition & 1 deletion cmake/FetchMaxLibQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include(FetchContent)
FetchContent_Declare(
maxLibQt
GIT_REPOSITORY https://github.com/edgetx/maxLibQt
GIT_TAG ac1988ffd005cd15a8449b92150ce6c08574a4f1
GIT_TAG 6dfbfc41e258cd2446e1fd1f547e6c5d742aa2c0
)

FetchContent_MakeAvailable(maxLibQt)
Expand Down
27 changes: 0 additions & 27 deletions cmake/FindLibssl1.cmake

This file was deleted.

11 changes: 2 additions & 9 deletions cmake/FindLibusb1.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,9 @@ find_library(LIBUSB1_LIBRARY
HINTS
"${LIBUSB1_ROOT_DIR}")

get_filename_component(LIBUSB1_LIBRARY_PATH ${LIBUSB1_LIBRARY} PATH)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LIBUSB1
DEFAULT_MSG
LIBUSB1_LIBRARY_PATH)

if(LIBUSB1_FOUND)
set(LIBUSB1_LIBRARY_DIR "${LIBUSB1_LIBRARY_PATH}")
mark_as_advanced(LIBUSB1_ROOT_DIR)
endif()
LIBUSB1_LIBRARY)

mark_as_advanced(LIBUSB1_LIBRARY_PATH)
mark_as_advanced(LIBUSB1_LIBRARY)
17 changes: 9 additions & 8 deletions cmake/NativeTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,20 @@ else()
message(STATUS "SDL not found! Simulator audio, and joystick inputs, will not work.")
endif()

if(Qt5Core_FOUND AND NOT DISABLE_COMPANION)
if(Qt6Core_FOUND AND NOT DISABLE_COMPANION)
# environment variable set in github workflows and build-edgetx Dockerfile
if(DEFINED ENV{LIBUSB1_ROOT_DIR})
set(LIBUSB1_ROOT_DIR "$ENV{LIBUSB1_ROOT_DIR}")
endif()

find_package(Libusb1)

if(LIBUSB1_FOUND)
find_package(Dfuutil)
endif()

if(LINUX)
find_package(Libssl1)
endif()

# OpenSSL
# environment variable set in github workflows and build-edgetx Dockerfile
if (DEFINED ENV{OPENSSL_ROOT_DIR})
if(DEFINED ENV{OPENSSL_ROOT_DIR})
set(OPENSSL_ROOT_DIR "$ENV{OPENSSL_ROOT_DIR}")
endif()

Expand All @@ -61,7 +62,7 @@ add_custom_target(tests-radio
DEPENDS gtests-radio
)

if(Qt5Core_FOUND AND NOT DISABLE_COMPANION)
if(Qt6Core_FOUND AND NOT DISABLE_COMPANION)
add_subdirectory(${COMPANION_SRC_DIRECTORY})
add_custom_target(tests-companion
COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gtests-companion
Expand Down
34 changes: 16 additions & 18 deletions cmake/QtDefs.cmake
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
if(APPLE AND DEFINED ENV{HOMEBREW_PREFIX} AND EXISTS $ENV{HOMEBREW_PREFIX}/opt/qt@5)
if(APPLE AND DEFINED ENV{HOMEBREW_PREFIX})
# If Homebrew is used, HOMEBREW_PREFIX should be defined
list(APPEND CMAKE_PREFIX_PATH "$ENV{HOMEBREW_PREFIX}/opt/qt@5")
if(EXISTS $ENV{HOMEBREW_PREFIX}/opt/qt@6)
list(APPEND CMAKE_PREFIX_PATH "$ENV{HOMEBREW_PREFIX}/opt/qt@6")
endif()
endif()

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 REQUIRED COMPONENTS Core)

if(Qt6_FOUND)
message(STATUS "Qt Version: ${Qt6_VERSION}")

find_package(Qt5Core QUIET)
find_package(Qt5Widgets QUIET)
find_package(Qt5Xml QUIET)
find_package(Qt5LinguistTools QUIET)
find_package(Qt5PrintSupport QUIET)
find_package(Qt5Multimedia QUIET)
find_package(Qt5Svg QUIET)
find_package(Qt5SerialPort QUIET)
# call after Qt6Core package is found
qt_standard_project_setup()

if(Qt5Core_FOUND)
message(STATUS "Qt Version: ${Qt5Core_VERSION}")
find_package(Qt6 REQUIRED COMPONENTS Widgets LinguistTools Multimedia PrintSupport SerialPort Svg Xml)

### Get locations of Qt binary executables & libs (libs are for distros, not for linking)
# first set up some hints
get_target_property(QtCore_LOCATION Qt5::Core LOCATION)
get_filename_component(qt_core_path ${QtCore_LOCATION} PATH)
get_target_property(QtCore_LOCATION Qt::Core LOCATION)
cmake_path(GET QtCore_LOCATION ROOT_PATH qt_core_path)
if(APPLE)
get_filename_component(qt_core_path "${qt_core_path}/.." ABSOLUTE)
set(qt_core_path "${qt_core_path}/..")
cmake_path(ABSOLUTE_PATH qt_core_path OUTPUT_VARIABLE qt_core_path)
endif()

set(QT_LIB_DIR ${qt_core_path} CACHE PATH "Path to Qt libraries (.dll|.framework|.so).")
Expand Down Expand Up @@ -63,5 +61,5 @@ if(Qt5Core_FOUND)
list(APPEND APP_COMMON_DEFINES -DAPP_DBG_HANDLER_ENABLE=0)
endif()
else()
message(WARNING "Qt not found! Companion and Simulator builds disabled.")
message(WARNING "Required Qt version not found! Companion, Simulator and libsim builds disabled.")
endif()
Loading
Loading