libadwaita version dependency #25

Closed
opened 2024-04-24 11:18:53 +02:00 by felixf4xu · 1 comment
felixf4xu commented 2024-04-24 11:18:53 +02:00 (Migrated from github.com)

No response

Describe the solution you'd like

Use libadwaita in system default version (like in Ubuntu 22's, libadwaita is v1.1.0)

--

or, is it possible to conditionally compile this project by libadwaita version?

Describe alternatives you've considered

I tried to compile this project and found out that libadwaita version >= 1.4 (at least) is used.

If the locally installed libadwaita is not new, many CAdw functions are not available, like

error: cannot find 'adw_navigation_view_pop' in scope

Additional context

my libadwaita version is: 1.3.2

### Is your feature request related to a problem? Please describe. _No response_ ### Describe the solution you'd like Use libadwaita in system default version (like in Ubuntu 22's, libadwaita is v1.1.0) -- or, is it possible to conditionally compile this project by libadwaita version? ### Describe alternatives you've considered I tried to compile this project and found out that libadwaita version >= 1.4 (at least) is used. If the locally installed `libadwaita` is not new, many `CAdw` functions are not available, like ```sh error: cannot find 'adw_navigation_view_pop' in scope ``` ### Additional context my libadwaita version is: 1.3.2
david-swift commented 2024-04-24 21:31:14 +02:00 (Migrated from github.com)

I really recommend developing either inside a Flatpak (take a look at the ŧemplate repository with a sample Flatpak manifest) or using Homebrew as a package manager. Using the latest GNOME runtime in the Flatpak, you always get the latest libadwaita version, and I try not to switch to the latest Libadwaita version faster than Homebrew.

I don't think there's a simple way to check the installed version and define which functions are available based on this (it is possible for Swift or platform versions, but not for system libraries).

Libadwaita 1.5 is required for this package to compile.

I really recommend developing either inside a Flatpak (take a look at the [ŧemplate repository](https://github.com/aparokshaui/adwaitatemplate) with a sample Flatpak manifest) or using [Homebrew](https://brew.sh/) as a package manager. Using the latest GNOME runtime in the Flatpak, you always get the latest libadwaita version, and I try not to switch to the latest Libadwaita version faster than Homebrew. I don't think there's a simple way to check the installed version and define which functions are available based on this (it is possible for Swift or platform versions, but not for system libraries). Libadwaita 1.5 is required for this package to compile.
Sign in to join this conversation.
No Milestone
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aparoksha/adwaita-swift#25
No description provided.