please add more docs to build from source
Hi there,
I tested flatpak installing amberol on both fedora silverblue 35 and 36. It works.
I wanted to build amberol from sources after that on fedora 35 and then 36. Here are the steps to build amberol on fedora silverblue 36:
git clone https://gitlab.gnome.org/World/amberol.git
git clone https://gitlab.gnome.org/World/Shortwave.git
sudo rpm-ostree install gcc-c++ clang
sudo rpm-ostree install lib64xcb-devel
sudo rpm-ostree install xcb-devel
sudo rpm-ostree install libxcb-devel
sudo rpm-ostree install libxcb-render-devel libxcb-shape-devel libxcb-xfixes-devel
sudo rpm-ostree install lld
sudo rpm-ostree install dbus-devel
sudo rpm-ostree install glib-devel
sudo rpm-ostree install avahi-gobject-devel cairo-gobject-devel
sudo rpm-ostree install graphene-devel
sudo rpm-ostree install gstreamer1-devel gstreamer1-plugins-bad-free-devel gstreamer1-plugins-base-devel gstreamer1-rtsp-server-devel gstreamermm-devel
sudo rpm-ostree install gdk-pixbuf2-devel gdk-pixbuf2-xlib-devel
sudo rpm-ostree install c++-gtk-utils-gtk4-devel gtk4-devel gtk4-devel-tools
sudo rpm-ostree install adwaita-icon-theme-devel libadwaita-devel
sudo rpm-ostree install openssl-devel
I got some errors around gtk config after compiling all crates except the last two.
[davidm@fedora amberol]$ time cargo +nightly build --release
Compiling amberol v0.1.0 (/var/home/davidm/amberol)
error[E0583]: file not found for module `config`
--> src/main.rs:6:1
|
6 | mod config;
| ^^^^^^^^^^^
|
= help: to create the module `config`, create file "src/config.rs" or "src/config/mod.rs"
error[E0432]: unresolved imports `crate::config::APPLICATION_ID`, `crate::config::VERSION`
--> src/application.rs:9:14
|
9 | config::{APPLICATION_ID, VERSION},
| ^^^^^^^^^^^^^^ ^^^^^^^ no `VERSION` in `config`
| |
| no `APPLICATION_ID` in `config`
error[E0432]: unresolved import `crate::config::APPLICATION_ID`
--> src/audio/mpris_controller.rs:12:5
|
12 | config::APPLICATION_ID,
| ^^^^^^^^^^^^^^^^^^^^^^ no `APPLICATION_ID` in `config`
error[E0432]: unresolved import `crate::config::APPLICATION_ID`
--> src/utils.rs:7:5
|
7 | use crate::config::APPLICATION_ID;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `APPLICATION_ID` in `config`
error[E0432]: unresolved import `crate::config::APPLICATION_ID`
--> src/window.rs:15:5
|
15 | config::APPLICATION_ID,
| ^^^^^^^^^^^^^^^^^^^^^^ no `APPLICATION_ID` in `config`
error[E0432]: unresolved imports `config::APPLICATION_ID`, `config::GETTEXT_PACKAGE`, `config::LOCALEDIR`, `config::PKGDATADIR`, `config::PROFILE`
--> src/main.rs:27:14
|
27 | use config::{APPLICATION_ID, GETTEXT_PACKAGE, LOCALEDIR, PKGDATADIR, PROFILE};
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^ no `PROFILE` in `config`
| | | | |
| | | | no `PKGDATADIR` in `config`
| | | no `LOCALEDIR` in `config`
| | no `GETTEXT_PACKAGE` in `config`
| no `APPLICATION_ID` in `config`
error[E0308]: mismatched types
--> src/queue_row.rs:169:29
|
169 | controller.set_name("queuerow motion");
| -------- ^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found `&str`
| |
| arguments to this function are incorrect
|
= note: expected enum `std::option::Option<&str>`
found reference `&'static str`
note: associated function defined here
--> /var/home/davidm/.cargo/registry/src/github.com-1ecc6299db9ec823/gtk4-0.4.7/src/auto/event_controller.rs:67:8
|
67 | fn set_name(&self, name: Option<&str>);
| ^^^^^^^^
help: try wrapping the expression in `Some`
|
169 | controller.set_name(Some("queuerow motion"));
| +++++ +
error[E0308]: mismatched types
--> src/waveform_view.rs:251:26
|
251 | gesture.set_name("waveform-click");
| -------- ^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found `&str`
| |
| arguments to this function are incorrect
|
= note: expected enum `std::option::Option<&str>`
found reference `&'static str`
note: associated function defined here
--> /var/home/davidm/.cargo/registry/src/github.com-1ecc6299db9ec823/gtk4-0.4.7/src/auto/event_controller.rs:67:8
|
67 | fn set_name(&self, name: Option<&str>);
| ^^^^^^^^
help: try wrapping the expression in `Some`
|
251 | gesture.set_name(Some("waveform-click"));
| +++++ +
Some errors have detailed explanations: E0308, E0432, E0583.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `amberol` due to 8 previous errors
Thank you in advance. Cheers.