Build failed #55

Closed
opened 2025-04-16 03:21:08 +02:00 by jj11 · 4 comments

Describe the bug

  • I was trying to make a simple demo app, however threw an error
/home/joker/Desktop/Search/.build/checkouts/adwaita-swift/Sources/Core/View/Generated/NavigationView.swift:236:17: error: cannot find 'adw_navigation_view_set_hhomogeneous' in scope
234 |             }
235 |             if let hhomogeneous, updateProperties, (storage.previousState as? Self)?.hhomogeneous != hhomogeneous {
236 |                 adw_navigation_view_set_hhomogeneous(widget, hhomogeneous.cBool)
    |                 `- error: cannot find 'adw_navigation_view_set_hhomogeneous' in scope
237 |             }
238 |             if let popOnEscape, updateProperties, (storage.previousState as? Self)?.popOnEscape != popOnEscape {

/home/joker/Desktop/Search/.build/checkouts/adwaita-swift/Sources/Core/View/Generated/NavigationView.swift:242:17: error: cannot find 'adw_navigation_view_set_vhomogeneous' in scope
240 |             }
241 |             if let vhomogeneous, updateProperties, (storage.previousState as? Self)?.vhomogeneous != vhomogeneous {
242 |                 adw_navigation_view_set_vhomogeneous(widget, vhomogeneous.cBool)
    |                 `- error: cannot find 'adw_navigation_view_set_vhomogeneous' in scope
243 |             }
244 |
[40/45] Compiling Core SwitchRow+.swift

To Reproduce

  1. Make swift package
  2. Add adwaita-swift as dependency
  3. Run the project

Expected behavior

  • To build the project

Additional context

No response

### Describe the bug - I was trying to make a simple demo app, however threw an error ``` /home/joker/Desktop/Search/.build/checkouts/adwaita-swift/Sources/Core/View/Generated/NavigationView.swift:236:17: error: cannot find 'adw_navigation_view_set_hhomogeneous' in scope 234 | } 235 | if let hhomogeneous, updateProperties, (storage.previousState as? Self)?.hhomogeneous != hhomogeneous { 236 | adw_navigation_view_set_hhomogeneous(widget, hhomogeneous.cBool) | `- error: cannot find 'adw_navigation_view_set_hhomogeneous' in scope 237 | } 238 | if let popOnEscape, updateProperties, (storage.previousState as? Self)?.popOnEscape != popOnEscape { /home/joker/Desktop/Search/.build/checkouts/adwaita-swift/Sources/Core/View/Generated/NavigationView.swift:242:17: error: cannot find 'adw_navigation_view_set_vhomogeneous' in scope 240 | } 241 | if let vhomogeneous, updateProperties, (storage.previousState as? Self)?.vhomogeneous != vhomogeneous { 242 | adw_navigation_view_set_vhomogeneous(widget, vhomogeneous.cBool) | `- error: cannot find 'adw_navigation_view_set_vhomogeneous' in scope 243 | } 244 | [40/45] Compiling Core SwitchRow+.swift ``` ### To Reproduce 1. Make swift package 2. Add adwaita-swift as dependency 3. Run the project ### Expected behavior - To build the project ### Additional context _No response_
jj11 added the
bug
label 2025-04-16 03:21:08 +02:00
Author
  • This was my Package.swift
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Search",
    dependencies: [
        .package(url: "https://git.aparoksha.dev/aparoksha/adwaita-swift", branch: "main")
    ],
    targets: [
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .executableTarget(
            name: "Search",
            dependencies: [
                .product(name: "Adwaita", package: "adwaita-swift")
            ]
        )
    ]
)
- This was my Package.swift ``` // swift-tools-version: 6.0 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "Search", dependencies: [ .package(url: "https://git.aparoksha.dev/aparoksha/adwaita-swift", branch: "main") ], targets: [ // Targets are the basic building blocks of a package, defining a module or a test suite. // Targets can depend on other targets in this package and products from dependencies. .executableTarget( name: "Search", dependencies: [ .product(name: "Adwaita", package: "adwaita-swift") ] ) ] ) ```
Owner

Are you building using the libadwaita version from your system package manager? It seems to be out of date, as those functions were introduced in libadwaita 1.7. This is why I recommend building using Flatpak (open the template in GNOME Builder or in VSCode using the Flatpak extension, or build using the Flatpak Builder command line tool). Alternatively, if you prefer not to use Flatpak, install via Homebrew.

Or are you already using Flatpak? I forgot to update the template to the latest SDK version, I'll correct this. if so, change the SDK version to GNOME 48:

 "runtime-version": "48"

Hope that helps!

Are you building using the libadwaita version from your system package manager? It seems to be out of date, as those functions were introduced in libadwaita 1.7. This is why I recommend building using Flatpak (open the [template](https://git.aparoksha.dev/aparoksha/adwaita-template) in GNOME Builder or in VSCode using the Flatpak extension, or build using the Flatpak Builder command line tool). Alternatively, if you prefer not to use Flatpak, install via [Homebrew](https://brew.sh). Or are you already using Flatpak? I forgot to update the template to the latest SDK version, I'll correct this. if so, [change the SDK version to GNOME 48](https://git.aparoksha.dev/aparoksha/adwaita-template/src/commit/03259b304798d79684d66cc3a6b6b2113446f22d/io.github.AparokshaUI.AdwaitaTemplate.json#L4): ```json "runtime-version": "48" ``` Hope that helps!
Author
  • Yes I was on older version fixed it however the memory when i ran the program is 100 MB

image.png

- Yes I was on older version fixed it however the memory when i ran the program is 100 MB ![image.png](/attachments/9257d310-967d-4801-9649-80d9aada7aed)
Author

Ignore it, I will close the issue

Ignore it, I will close the issue
jj11 closed this issue 2025-04-16 20:36:56 +02:00
Sign in to join this conversation.
No Milestone
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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