Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Jambola77 opened this issue Aug 2, 2024 · 2 comments

Comments

@Jambola77
Copy link

Jambola77 commented Aug 2, 2024

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 Jambola77 changed the title Package cannot be installed Package cannot be installed (libjsoncpp1 and libwxgtk3.0-gtk3-0v5 not found) Aug 2, 2024
@Jambola77
Copy link
Author

Jambola77 commented Sep 4, 2024

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
Copy link
Owner

ebruck commented Oct 6, 2024

@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()

@ebruck ebruck closed this as completed Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants