calo001 / fondo

📷 Wallpaper App for Linux
GNU Affero General Public License v3.0
261 stars 32 forks source link

Error compiling (I can install dependencies but no Fondo) #182

Open lucasgabmoreno opened 2 years ago

lucasgabmoreno commented 2 years ago

Linux Mint Cinnamon 20.3 (Ubuntu focal)

I've installed dependencies with:

sudo add-apt-repository ppa:apandada1/libhandy-1 -y
sudo apt update -y
sudo apt install git meson valac libgranite-dev libgtk-3-dev libjson-glib-dev libsoup2.4-dev libhandy-1-dev cmake -y

And then run:

sudo git clone https://github.com/calo001/fondo.git && cd fondo
bash app install

Results:

The Meson build system
Version: 0.53.2
Source dir: /home/lucasgabmoreno/fondo
Build dir: /home/lucasgabmoreno/fondo/build
Build type: native build
Project name: com.github.calo001.fondo
Project version: 1.6.1
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Vala compiler for the host machine: valac (valac 0.48.6)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency gobject-2.0 found: YES 2.64.6
Run-time dependency glib-2.0 found: YES 2.64.6
Run-time dependency granite found: YES 5.3.0
Run-time dependency gtk+-3.0 found: YES 3.24.20
Run-time dependency json-glib-1.0 found: YES 1.4.4
Run-time dependency libsoup-2.4 found: YES 2.70.0
Run-time dependency libhandy-1 found: YES 1.0.0
Library posix found: YES
Program meson/post_install.py found: YES (/home/lucasgabmoreno/fondo/meson/post_install.py)
Build targets in project: 11

Found ninja-1.10.0 at /usr/bin/ninja
[1/56] Generating as-resources_h with a custom command.
xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
[2/56] Generating as-resources_c with a custom command.
xml-stripblanks preprocessing requested, but XMLLINT is not set, and xmllint is not in PATH
[6/56] Compiling Vala source ../src/Co...indow.vala ../src/Windows/Window.vala.
FAILED: com.github.calo001.fondo@exe/src/Configs/Constants.c com.github.calo001.fondo@exe/src/Configs/Settings.c com.github.calo001.fondo@exe/src/Configs/Strings.c com.github.calo001.fondo@exe/src/Controllers/AppController.c com.github.calo001.fondo@exe/src/Views/PhotosView.c com.github.calo001.fondo@exe/src/Views/AppViewError.c com.github.calo001.fondo@exe/src/Views/CardPhotoView.c com.github.calo001.fondo@exe/src/Views/ButtonCategory.c com.github.calo001.fondo@exe/src/Views/CategoriesView.c com.github.calo001.fondo@exe/src/Views/EmptyHistoryView.c com.github.calo001.fondo@exe/src/Views/EmptyView.c com.github.calo001.fondo@exe/src/Views/LoadingView.c com.github.calo001.fondo@exe/src/Views/FilterOptionsView.c com.github.calo001.fondo@exe/src/Views/MultipleWallpaperView.c com.github.calo001.fondo@exe/src/Views/DarkModeOption.c com.github.calo001.fondo@exe/src/Views/SettingsView.c com.github.calo001.fondo@exe/src/Views/CreditsView.c com.github.calo001.fondo@exe/src/Popovers/WallpaperPopover.c com.github.calo001.fondo@exe/src/Popovers/SharePopover.c com.github.calo001.fondo@exe/src/Popovers/PhotoDetailPopover.c com.github.calo001.fondo@exe/src/Popovers/MultipleWallpaperPopover.c com.github.calo001.fondo@exe/src/Models/Photo.c com.github.calo001.fondo@exe/src/Models/SearchResult.c com.github.calo001.fondo@exe/src/Utils/Wallpaper.c com.github.calo001.fondo@exe/src/Utils/Networking.c com.github.calo001.fondo@exe/src/Utils/JsonManager.c com.github.calo001.fondo@exe/src/Utils/FileManager.c com.github.calo001.fondo@exe/src/Utils/SchemaManager.c com.github.calo001.fondo@exe/src/Utils/MultiWallpaper.c com.github.calo001.fondo@exe/src/Utils/XMLBackground.c com.github.calo001.fondo@exe/src/Utils/Delegates.c com.github.calo001.fondo@exe/src/Utils/DockManager.c com.github.calo001.fondo@exe/src/Utils/ContractorManager.c com.github.calo001.fondo@exe/src/Utils/ThemeManager.c com.github.calo001.fondo@exe/src/Widgets/BottonNavbar.c com.github.calo001.fondo@exe/src/Widgets/ButtonTab.c com.github.calo001.fondo@exe/src/Widgets/HeaderBar.c com.github.calo001.fondo@exe/src/Widgets/LabelTop.c com.github.calo001.fondo@exe/src/Widgets/LabelTotalResults.c com.github.calo001.fondo@exe/src/Widgets/MultiplePreviewWidget.c com.github.calo001.fondo@exe/src/Widgets/MultipleCardFlowBoxChild.c com.github.calo001.fondo@exe/src/Widgets/DownloadContainerWidget.c com.github.calo001.fondo@exe/src/Services/Connection.c com.github.calo001.fondo@exe/src/Enums/Navigation.c com.github.calo001.fondo@exe/src/Enums/TypeCard.c com.github.calo001.fondo@exe/src/Application.c com.github.calo001.fondo@exe/src/Main.c com.github.calo001.fondo@exe/src/Windows/PreviewWindow.c com.github.calo001.fondo@exe/src/Windows/Window.c 
valac -C --debug --debug --pkg posix --pkg posix --pkg libhandy-1 --pkg libsoup-2.4 --pkg json-glib-1.0 --pkg gtk+-3.0 --pkg granite --pkg glib-2.0 --pkg gobject-2.0 --color=always --directory com.github.calo001.fondo@exe --basedir ../ --gresources=../data/com.github.calo001.fondo.gresource.xml ../src/Configs/Constants.vala ../src/Configs/Settings.vala ../src/Configs/Strings.vala ../src/Controllers/AppController.vala ../src/Views/PhotosView.vala ../src/Views/AppViewError.vala ../src/Views/CardPhotoView.vala ../src/Views/ButtonCategory.vala ../src/Views/CategoriesView.vala ../src/Views/EmptyHistoryView.vala ../src/Views/EmptyView.vala ../src/Views/LoadingView.vala ../src/Views/FilterOptionsView.vala ../src/Views/MultipleWallpaperView.vala ../src/Views/DarkModeOption.vala ../src/Views/SettingsView.vala ../src/Views/CreditsView.vala ../src/Popovers/WallpaperPopover.vala ../src/Popovers/SharePopover.vala ../src/Popovers/PhotoDetailPopover.vala ../src/Popovers/MultipleWallpaperPopover.vala ../src/Models/Photo.vala ../src/Models/SearchResult.vala ../src/Utils/Wallpaper.vala ../src/Utils/Networking.vala ../src/Utils/JsonManager.vala ../src/Utils/FileManager.vala ../src/Utils/SchemaManager.vala ../src/Utils/MultiWallpaper.vala ../src/Utils/XMLBackground.vala ../src/Utils/Delegates.vala ../src/Utils/DockManager.vala ../src/Utils/ContractorManager.vala ../src/Utils/ThemeManager.vala ../src/Widgets/BottonNavbar.vala ../src/Widgets/ButtonTab.vala ../src/Widgets/HeaderBar.vala ../src/Widgets/LabelTop.vala ../src/Widgets/LabelTotalResults.vala ../src/Widgets/MultiplePreviewWidget.vala ../src/Widgets/MultipleCardFlowBoxChild.vala ../src/Widgets/DownloadContainerWidget.vala ../src/Services/Connection.vala ../src/Enums/Navigation.vala ../src/Enums/TypeCard.vala ../src/Application.vala ../src/Main.vala ../src/Windows/PreviewWindow.vala ../src/Windows/Window.vala
../src/Controllers/AppController.vala:59.17-59.24: error: The type name `Hdy.Flap' could not be found
        private Hdy.Flap                   flap;
                ^^^^^^^^
../src/Utils/ThemeManager.vala:32.17-32.32: error: The type name `Granite.Settings' could not be found
        private Granite.Settings        granite_settings;
                ^^^^^^^^^^^^^^^^
../src/Utils/ThemeManager.vala:37.13-37.28: error: The type name `Granite.Settings' could not be found
            Granite.Settings granite_settings
            ^^^^^^^^^^^^^^^^
../src/Application.vala:39.23-39.38: error: The type name `Granite.Settings' could not be found
        public static Granite.Settings      granite_settins; 
                      ^^^^^^^^^^^^^^^^
Compilation failed: 4 error(s), 0 warning(s)
ninja: build stopped: subcommand failed.
Unable to build project, please review log
ryanfortner commented 2 years ago

I'm also encountering this error (Debian Buster).

dentex commented 2 years ago

Same problem, on Linux Mint 20.3.

EDIT: I actually got it to run commenting out all code references to Granite.Settings, which is related to the Pantheon desktop environment used in Elementary OS.