Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: moham96 on August 27, 2022, 10:52:01 AM

Title: Is it possible to include libsystemd?
Post by: moham96 on August 27, 2022, 10:52:01 AM
Hi,
I am looking into running a flutter app to turn the raspberry pi to a kiosk, using flutter-pi (https://github.com/ardera/flutter-pi#dependencies)
which requires `libsystemd`, according to flutter-pi readme it states under dependencies:
Quote
libsystemd is not systemd, it's just an utility library. It provides the event loop and dbus support for flutter-pi.


So is it possible to run such a program under PiCore?

Regards
Title: Re: Is it possible to include libsystemd?
Post by: Juanito on August 27, 2022, 12:21:08 PM
The easiest way to know is to compile it and see..
Title: Re: Is it possible to include libsystemd?
Post by: moham96 on August 27, 2022, 04:50:07 PM
well, i tried to compile it but it requires libgbm which I couldn't find in the repos:

Quote
-- Generator .............. Unix Makefiles
-- Build Type ............. Release
-- Flutter Channel ........ stable
-- Engine SHA1 ............ e85ea0e79c6d894c120cda4ee8ee10fe6745e187
-- Checking for module 'gbm'
--   No package 'gbm' found
CMake Error at /tmp/tcloop/cmake/usr/local/share/cmake-3.18/Modules/FindPkgConfig.cmake:545 (message):
  A required package was not found
Call Stack (most recent call first):
  /tmp/tcloop/cmake/usr/local/share/cmake-3.18/Modules/FindPkgConfig.cmake:733 (_pkg_check_modules_internal)
  CMakeLists.txt:105 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
See also "/home/tc/repos/flutter-pi/build/CMakeFiles/CMakeOutput.log".
See also "/home/tc/repos/flutter-pi/build/CMakeFiles/CMakeError.log"
Title: Re: Is it possible to include libsystemd?
Post by: Rich on August 27, 2022, 05:01:16 PM
Hi moham96
Welcome to the forum.

... it requires libgbm which I couldn't find in the repos: ...
I think installing  libEGL-dev.tcz  will help.
Title: Re: Is it possible to include libsystemd?
Post by: moham96 on August 27, 2022, 05:46:53 PM
Ok so after installing all the required packages that are available in the repos I reached this:
Quote
No package 'libsystemd' found

which was the reason of my main question
Title: Re: Is it possible to include libsystemd?
Post by: Rich on August 27, 2022, 07:57:01 PM
Hi moham96
You could try grabbing  libsystemd-dev  and  libsystemd0  from another distro:
https://packages.ubuntu.com/kinetic/libsystemd-dev
https://packages.ubuntu.com/kinetic/libsystemd0

Or download one of the source packages from the above links and build  systemd  from scratch and
just pull out the pieces you need.