ebruck / radiotray-ng

An Internet radio player for Linux
GNU General Public License v3.0
262 stars 25 forks source link

Package cannot be installed (libjsoncpp1 and libwxgtk3.0-gtk3-0v5 not found) #222

Closed Jambola77 closed 2 weeks ago

Jambola77 commented 3 months ago

After making the package the installer raises some errors:


dpkg: Abhängigkeitsprobleme verhindern Konfiguration von radiotray-ng:
 radiotray-ng hängt ab von libjsoncpp1; aber:
  Paket libjsoncpp1 ist nicht installiert.
 radiotray-ng hängt ab von libwxgtk3.0-gtk3-0v5; aber:
  Paket libwxgtk3.0-gtk3-0v5 ist nicht installiert.

I cannot find libjsoncpp1, it seems to be deprecated. I use latest Linux Mint.

Jambola77 commented 2 months ago

The Problem with libjsoncpp1 can be solved according to https://bugs.launchpad.net/ubuntu/+source/libjsoncpp/+bug/1928695:

In package/CMakeLists.txt the entry libjsoncpp1 must be replaced by libjsoncpp-dev and libwxgtk3.0-gtk3-0v5 replaced with libwxgtk3.2-1.

Here is the output of my Linux Mint 22 lsb_release -a: Distributor ID: Linuxmint Description: Linux Mint 22 Release: 22 Codename: wilma

It would be great if @ebruck could include this in the CMakeLists.

Thanks a lot!

ebruck commented 1 month ago

@Jambola77 could you please try this patch?

--- a/package/CMakeLists.txt +++ b/package/CMakeLists.txt @@ -55,7 +55,7 @@ if (LSB_RELEASE_EXECUTABLE) string(REPLACE "libjsoncpp1" "libjsoncpp24" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}) endif()

- if (${RELEASE} STREQUAL "22.04" OR ${RELEASE} STREQUAL "23.04" OR ${RELEASE} STREQUAL "23.10" OR ${RELEASE} STREQUAL "21.3") + if (${RELEASE} STREQUAL "22.04" OR ${RELEASE} STREQUAL "23.04" OR ${RELEASE} STREQUAL "23.10" OR ${RELEASE} STREQUAL "21.3" OR ${RELEASE} STREQUAL "22") string(REPLACE "libjsoncpp1" "libjsoncpp25" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}) string(REPLACE "libappindicator3-1" "libayatana-appindicator3-1" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}) endif() @@ -86,7 +86,7 @@ if (LSB_RELEASE_EXECUTABLE) endif()

- if (${RELEASE} STREQUAL "23.04" OR ${RELEASE} STREQUAL "23.10") + if (${RELEASE} STREQUAL "23.04" OR ${RELEASE} STREQUAL "23.10" OR ${RELEASE} STREQUAL "22") message(STATUS "Official packaging assumes gtk3 dependency for 'rtng-bookmark-editor'") string(REPLACE "libwxgtk3.0-gtk3-0v5" "libwxgtk3.2-1" CPACK_DEBIAN_PACKAGE_DEPENDS ${CPACK_DEBIAN_PACKAGE_DEPENDS}) endif()