Skip to content

Commit

Permalink
Merge pull request #372 from jmlich/fix-sports-page-for-ubuntu-touch
Browse files Browse the repository at this point in the history
Compile mapbox gl libraries
  • Loading branch information
piggz authored May 12, 2024
2 parents 8198238 + 9456907 commit 8cf09ae
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
27 changes: 27 additions & 0 deletions click/fix-compilation-with-clickable.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01f62a1a8..71db29e2f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,7 @@ target_link_libraries(

cmake_policy(SET CMP0063 NEW)
set(CMAKE_CXX_EXTENSIONS OFF)
-set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_C_EXTENSIONS OFF)
diff --git a/platform/qt/src/mbgl/http_file_source.cpp b/platform/qt/src/mbgl/http_file_source.cpp
index a2a13c5e1..a4ac0c58e 100644
--- a/platform/qt/src/mbgl/http_file_source.cpp
+++ b/platform/qt/src/mbgl/http_file_source.cpp
@@ -45,7 +45,8 @@ void HTTPFileSource::Impl::request(HTTPRequest* req)
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
connect(data.first, &QNetworkReply::errorOccurred, this, &HTTPFileSource::Impl::onReplyFinished);
#else
- connect(data.first, &QNetworkReply::error, this, &HTTPFileSource::Impl::onReplyFinished);
+ connect(data.first, SIGNAL(error()), this, SLOT(onReplyFinished()));
+ //connect(data.first, &QNetworkReply::error, this, &HTTPFileSource::Impl::onReplyFinished);
#endif
}

25 changes: 25 additions & 0 deletions clickable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,39 @@ libraries:
- git -C ${SRC_DIR} pull || git clone https://github.com/sailfishos/nemo-qml-plugin-dbus ${SRC_DIR}
builder: qmake

maplibre-gl-native:
src_dir: 3rdparty/maplibre-gl-native
prebuild:
- mkdir -p ${ROOT}/3rdparty
- git -C ${SRC_DIR} pull || git clone -b qt-v2.0.1 --recursive --shallow-submodules --depth 1 https://github.com/maplibre/maplibre-gl-native.git ${SRC_DIR}
- git apply --directory ${SRC_DIR} ${ROOT}/click/fix-compilation-with-clickable.patch || /bin/true
builder: cmake
build_args:
- -DMBGL_WITH_QT=ON
- -DMBGL_WITH_WERROR=OFF
- -DMBGL_WITH_QT_HEADLESS=OFF
- -DMBGL_QT_LIBRARY_ONLY=ON
- -DMBGL_QT_STATIC=OFF

mapbox-gl-qml:
src_dir: 3rdparty/mapbox-gl-qml
prebuild:
- mkdir -p ${ROOT}/3rdparty
- git -C ${SRC_DIR} pull || git clone -b 2.1.1 --recursive --shallow-submodules --depth 1 https://github.com/rinigus/mapbox-gl-qml.git ${SRC_DIR}
builder: cmake
build_args:
- -DCMAKE_CXX_STANDARD=14

install_lib:
- ${NEMO_QML_PLUGIN_DBUS_LIB_INSTALL_DIR}/usr/lib/${ARCH_TRIPLET}/libnemodbus.so*
- ${QTMPRIS_LIB_INSTALL_DIR}/usr/lib/${ARCH_TRIPLET}/libmpris-qt5.so*
- ${MAPLIBRE_GL_NATIVE_LIB_INSTALL_DIR}/lib/libQMapLibreGL.so*
- /usr/lib/${ARCH_TRIPLET}/libKDb3.so*
- /usr/lib/${ARCH_TRIPLET}/libKF5BluezQt.so*
install_data:
/usr/lib/${ARCH_TRIPLET}/qt5/plugins/kdb3: bin
install_qml:
- ${NEMO_QML_PLUGIN_DBUS_LIB_INSTALL_DIR}/usr/lib/${ARCH_TRIPLET}/qt5/qml/Nemo/DBus
- ${QTMPRIS_LIB_INSTALL_DIR}/usr/lib/${ARCH_TRIPLET}/qt5/qml/org/nemomobile/mpris
- ${MAPBOX_GL_QML_LIB_INSTALL_DIR}/usr/lib/${ARCH_TRIPLET}/qt5/qml/MapboxMap
- /usr/lib/${ARCH_TRIPLET}/qt5/qml/org/kde/bluezqt
1 change: 1 addition & 0 deletions ui/qml/components/platform.uuitk/IconPL.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Icon {
property string iconName
property string iconSource
property int iconWidth: 0
keyColor: "#ffffff"

Component.onCompleted: {
if (iconColorize) color = styler.themeHighlightColor;
Expand Down
4 changes: 4 additions & 0 deletions ui/qml/components/platform.uuitk/StylerPL.qml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ QtObject {
property string iconFavoriteSelected: "image://theme/bookmark" // "Donate"

property string customIconPrefix: "../../pics/custom-icons/"
property string customIconSuffix: ".png"

property string iconLocation: "image://theme/location"
property string iconClock: "image://theme/clock"

// item sizes
property real themeItemSizeLarge: themeFontSizeLarge * 3
Expand Down
Binary file modified ui/qml/custom-icons/icon-m-heartrate2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/qml/custom-icons/icon-m-steps2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8cf09ae

Please sign in to comment.