Can't work on Fedora 38
makorne opened this issue ยท 8 comments
Hi!
Thank you for great crate!
I tried to build on latest fedora 38..
Gnome builder:
Successfull built but can`t install:
[1/2] Generating src/cargo-build with a custom command
Skipping git submodule `https://github.com/gtk-rs/gir.git` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files.git` due to update strategy in .gitmodules
Finished dev [unoptimized + debuginfo] target(s) in 0.14s
[1/3] Generating src/cargo-build with a custom command
Skipping git submodule `https://github.com/gtk-rs/gir.git` due to update strategy in .gitmodules
Skipping git submodule `https://github.com/gtk-rs/gir-files.git` due to update strategy in .gitmodules
Finished dev [unoptimized + debuginfo] target(s) in 0.08s
[2/3] Installing files.
Installing data/resources/resources.gresource to /app/share/paper-plane
Installing data/app.drey.PaperPlane.Devel.desktop to /app/share/applications
Installing data/app.drey.PaperPlane.Devel.metainfo.xml to /app/share/metainfo
Installing po/nb_NO/LC_MESSAGES/paper-plane.mo to /app/share/locale/nb_NO/LC_MESSAGES
Installing po/it/LC_MESSAGES/paper-plane.mo to /app/share/locale/it/LC_MESSAGES
Installing po/es/LC_MESSAGES/paper-plane.mo to /app/share/locale/es/LC_MESSAGES
Installing po/he/LC_MESSAGES/paper-plane.mo to /app/share/locale/he/LC_MESSAGES
Installing po/ca/LC_MESSAGES/paper-plane.mo to /app/share/locale/ca/LC_MESSAGES
Installing po/pt_BR/LC_MESSAGES/paper-plane.mo to /app/share/locale/pt_BR/LC_MESSAGES
Installing po/fr/LC_MESSAGES/paper-plane.mo to /app/share/locale/fr/LC_MESSAGES
Installing po/fi/LC_MESSAGES/paper-plane.mo to /app/share/locale/fi/LC_MESSAGES
Installing po/de/LC_MESSAGES/paper-plane.mo to /app/share/locale/de/LC_MESSAGES
Installing po/sv/LC_MESSAGES/paper-plane.mo to /app/share/locale/sv/LC_MESSAGES
Installing po/ru/LC_MESSAGES/paper-plane.mo to /app/share/locale/ru/LC_MESSAGES
Installing po/id/LC_MESSAGES/paper-plane.mo to /app/share/locale/id/LC_MESSAGES
Installing po/fa/LC_MESSAGES/paper-plane.mo to /app/share/locale/fa/LC_MESSAGES
Installing po/oc/LC_MESSAGES/paper-plane.mo to /app/share/locale/oc/LC_MESSAGES
Installing po/eu/LC_MESSAGES/paper-plane.mo to /app/share/locale/eu/LC_MESSAGES
Installing po/pl/LC_MESSAGES/paper-plane.mo to /app/share/locale/pl/LC_MESSAGES
Installing po/si/LC_MESSAGES/paper-plane.mo to /app/share/locale/si/LC_MESSAGES
Installing po/ar/LC_MESSAGES/paper-plane.mo to /app/share/locale/ar/LC_MESSAGES
Installing po/zh_Hans/LC_MESSAGES/paper-plane.mo to /app/share/locale/zh_Hans/LC_MESSAGES
Installing po/uk/LC_MESSAGES/paper-plane.mo to /app/share/locale/uk/LC_MESSAGES
Installing po/tr/LC_MESSAGES/paper-plane.mo to /app/share/locale/tr/LC_MESSAGES
Installing po/nl/LC_MESSAGES/paper-plane.mo to /app/share/locale/nl/LC_MESSAGES
Installing po/ta/LC_MESSAGES/paper-plane.mo to /app/share/locale/ta/LC_MESSAGES
Installing po/be/LC_MESSAGES/paper-plane.mo to /app/share/locale/be/LC_MESSAGES
Installing po/pt/LC_MESSAGES/paper-plane.mo to /app/share/locale/pt/LC_MESSAGES
Installing po/el/LC_MESSAGES/paper-plane.mo to /app/share/locale/el/LC_MESSAGES
Installing src/paper-plane to /app/bin
Installing /root/Projects/paper-plane/data/icons/app.drey.PaperPlane.Devel.svg to /app/share/icons/hicolor/scalable/apps
Installing /root/Projects/paper-plane/data/icons/app.drey.PaperPlane-symbolic.svg to /app/share/icons/hicolor/symbolic/apps
Installing /root/Projects/paper-plane/_build/data/app.drey.PaperPlane.Devel.gschema.xml to /app/share/glib-2.0/schemas
Running custom install script '/usr/bin/glib-compile-schemas /app/share/glib-2.0/schemas'
Running custom install script '/app/bin/gtk4-update-icon-cache -q -t -f /app/share/icons/hicolor'
Running custom install script '/usr/bin/update-desktop-database -q /app/share/applications'
frozen on step :
Running custom install script '/usr/bin/update-desktop-database -q /app/share/applications'
Meson:
Error:
Dependency libadwaita-1 found: NO found 1.3.3 but need: '>= 1.4'
But even upcoming fedora 39 dont have 1.4 version and [GNOME/libadwaita](https://gitlab.gnome.org/GNOME/libadwaita/) don
t have 1.4 too .
I tried to build their main branch but got error:
Invalid version, need 'gtk4' ['>= 4.11.2'] found '4.10.4'
The main branch uses dev versions (i.e. the main branch) of some dependencies (in this case both gtk4 and libadwaita), that's why you don't have those dependencies yet. I suggest using flatpak to build the app so that you don't need to worry about dependencies anymore.
So instructions on the main page on building with Gnome builder and Meson work for some specific OS only?
May be Ubuntu XX ?
Please provide the name and the version of these OS.
Now I installed using flatpak but in this version all posts don't even have reactions and view counts.
View counts and reactions just aren't implemented yet
You can build flatpak using Gnome Builder or flatpak-vscode extension (or just with flatpak-builder)
So instructions on the main page on building with Gnome builder and Meson work for some specific OS only?
GNOME Builder works automatically because it will use the flatpak manifest by default. If you choose to use Meson instead, the app expects you to install all the required dependencies, which are correctly listed in that section, together with all the required versions. How do you want to install those dependencies is up to you. The app is not designed to work on a specific distro. The app currently requires non-tagged versions of gtk4 and libadwaita because we want the app to be prepared for GNOME 45.
View counts and reactions just aren't implemented yet
May be they are useless at all?
I tried tdlib-rs example with adding the following code in fn handle_update() :
Update::MessageInteractionInfo(update) => {
println!("{:?}", update);
}
and found that UpdateMessageInteractionInfo triggers updates very seldom even on channels with 2 million users and results are far away from real numbers in official telegram client.
[ 2][t 4][1688098940.985427141][UpdatesManager.cpp:1110][#1][!Td] Schedule getDifference in 1 seconds with PTS = 7, QTS = 0, date = 1688082165 from add_pending_channel_update 1
UpdateMessageInteractionInfo { chat_id: -1001366415996, message_id: 11890703990784, interaction_info: None }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64736985088, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 4, recent_replier_ids: [User(MessageSenderUser { user_id: 5897198547 }), User(MessageSenderUser { user_id: 6223765102 }), User(MessageSenderUser { user_id: 1775764676 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64738033664, interaction_info: Some(MessageInteractionInfo { view_count: 6, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 5686190786 }), User(MessageSenderUser { user_id: 1775764676 }), User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64739082240, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 1775764676 }), User(MessageSenderUser { user_id: 6223765102 }), User(MessageSenderUser { user_id: 5042989285 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64740130816, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 6223765102 }), User(MessageSenderUser { user_id: 5042989285 }), User(MessageSenderUser { user_id: 1775764676 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64741179392, interaction_info: Some(MessageInteractionInfo { view_count: 4, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 1, recent_replier_ids: [User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64741179392, interaction_info: Some(MessageInteractionInfo { view_count: 9056, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 5, recent_replier_ids: [User(MessageSenderUser { user_id: 1869734897 }), User(MessageSenderUser { user_id: 6132490162 }), User(MessageSenderUser { user_id: 1656902924 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐คฌ" }), total_count: 93, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 19, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ฑ" }), total_count: 15, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 9, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 3, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "โค" }), total_count: 3, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 1, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ซก" }), total_count: 1, is_chosen: false, recent_sender_ids: [] }] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64742227968, interaction_info: Some(MessageInteractionInfo { view_count: 2, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 2, recent_replier_ids: [User(MessageSenderUser { user_id: 1775764676 }), User(MessageSenderUser { user_id: 5042989285 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64742227968, interaction_info: Some(MessageInteractionInfo { view_count: 47185, forward_count: 205, reply_info: Some(MessageReplyInfo { reply_count: 93, recent_replier_ids: [User(MessageSenderUser { user_id: 6094325768 }), User(MessageSenderUser { user_id: 2059061947 }), User(MessageSenderUser { user_id: 5135596883 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 457, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐คฌ" }), total_count: 119, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ฅ" }), total_count: 38, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 31, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐คฏ" }), total_count: 26, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 21, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ฑ" }), total_count: 14, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ซก" }), total_count: 6, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "โค" }), total_count: 4, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ข" }), total_count: 2, is_chosen: false, recent_sender_ids: [] }] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64743276544, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 0, recent_replier_ids: [], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64744325120, interaction_info: Some(MessageInteractionInfo { view_count: 5, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 2, recent_replier_ids: [User(MessageSenderUser { user_id: 5527093040 }), User(MessageSenderUser { user_id: 6250080889 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64745373696, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 6195056684 }), User(MessageSenderUser { user_id: 5042989285 }), User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64746422272, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 3, recent_replier_ids: [User(MessageSenderUser { user_id: 6195056684 }), User(MessageSenderUser { user_id: 5042989285 }), User(MessageSenderUser { user_id: 6223765102 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64747470848, interaction_info: Some(MessageInteractionInfo { view_count: 1, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 2, recent_replier_ids: [User(MessageSenderUser { user_id: 5995949582 }), User(MessageSenderUser { user_id: 5042989285 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64748519424, interaction_info: Some(MessageInteractionInfo { view_count: 2, forward_count: 0, reply_info: Some(MessageReplyInfo { reply_count: 0, recent_replier_ids: [], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [] }) }
UpdateMessageInteractionInfo { chat_id: -1001260622817, message_id: 64746422272, interaction_info: Some(MessageInteractionInfo { view_count: 147869, forward_count: 975, reply_info: Some(MessageReplyInfo { reply_count: 56, recent_replier_ids: [User(MessageSenderUser { user_id: 5089867959 }), User(MessageSenderUser { user_id: 1159349379 }), User(MessageSenderUser { user_id: 5102889367 })], last_read_inbox_message_id: 0, last_read_outbox_message_id: 0, last_message_id: 0 }), reactions: [MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐คฌ" }), total_count: 618, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ข" }), total_count: 195, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 55, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ฑ" }), total_count: 46, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ฅ" }), total_count: 14, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐ญ" }), total_count: 14, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 11, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "โค" }), total_count: 9, is_chosen: false, recent_sender_ids: [] }, MessageReaction { type: Emoji(ReactionTypeEmoji { emoji: "๐" }), total_count: 1, is_chosen: false, recent_sender_ids: [] }] }) }
Or may be this example needs changing some settings?
May be they are useless at all?
I don't think they're useless
UpdateMessageInteractionInfo triggers updates very seldom even on channels with 2 million users and results are far away from real numbers in official telegram client.
Telegram web also uses tdlib and info seems good enough for me, don't see any reason for updates to be often, the numbers are rounded anyway
1-10 views a day on channels with 2000000 users???
Such a small view count is impossible!
Just compare your numbers for any big channel with the telegram client.
I locked this for off-topic. Please use a new thread or the Telegram group to discuss.