antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example won't build for linux

sgehrman opened this issue · comments

CMake Error at /snap/flutter/91/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
A required package was not found
Call Stack (most recent call first):
/snap/flutter/91/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
flutter/ephemeral/.plugin_symlinks/system_tray/linux/CMakeLists.txt:10 (pkg_check_modules)

I'm on Debian. I got past the first issue, but now getting

[ +1 ms] /snap/flutter/current/usr/bin/ld: cannot find -lpkgcfg_lib_APPINDICATOR_appindicator3-NOTFOUND
[ ] /snap/flutter/current/usr/bin/ld: cannot find -lpkgcfg_lib_APPINDICATOR_dbusmenu-glib-NOTFOUND
[ ] clang: error: linker command failed with exit code 1 (use -v to see invocation)

I tried everything. I installed every single appIndicator package and nothing works.

Which Linux system are you using?
You can try cmd ldconfig -p | grep libappindicator to show what libappindicator do you have in your system.

libappindicator3.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libappindicator3.so.1
libappindicator3.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libappindicator3.so
libappindicator.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libappindicator.so.1
libappindicator.so (libc6,x86-64) => /lib/x86_64-linux-gnu/libappindicator.so

Linux 5950x 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux

can you try cmd pkg-config --cflags appindicator3-0.1 or pkg-config --cflags appindicator-0.1 to find some errors?

steve@5950x:~$ pkg-config --cflags appindicator3-0.1
-pthread -I/usr/include/libappindicator3-0.1 -I/usr/include/libdbusmenu-glib-0.4 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/libdrm -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include

steve@5950x:~$ pkg-config --cflags appindicator-0.1
-pthread -I/usr/include/libappindicator-0.1 -I/usr/include/libdbusmenu-glib-0.4 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16
steve@5950x:~$ 


Hey, I decided to write my own plugin. I didn't want the dojowindow. And I couldn't get past those compile errors.

I got it working in a private repo app, but the plugin is open source. The example might be broken right now, I'll fix it in a few days. https://github.com/sgehrman/status_bar/

I need help with Windows if you happen to be a Windows guy. I only have mac and linux.