How to integrate basic packages into Android Source - linux

I am using Android 7. I compiled the source for Raspberry PI platform.
I don't have the necessary packages in my user-space. Packages like,
sudo
apt-get
apk
vi and etc.,
How to get those packages as a default.
Can anyone help me to resolve this issue ?

Related

Flutter Doctor shows problem with GTK 3.0 for CentOS Linux 7 running on Doctor

Goal: Compile and run flutter examples emulating Linux Desktop on CentOS 7 docker container
(Note: Can't use snapd - not supported within Docker) Installed manually
Managed to get everything else cleared up but this one:
GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install
libgtk-3-dev)
The others show OK:
Γú[Γ£ù] Linux toolchain - develop for Linux desktop
ΓÇó clang version 3.4.2 (tags/RELEASE_34/dot2-final)
ΓÇó cmake3 version 3.17.5
ΓÇó ninja version 1.10.2
ΓÇó pkg-config version 0.29.2
Γú[Γ£ô] Connected device (1 available)
ΓÇó Linux (desktop) ΓÇó linux ΓÇó linux-x64 ΓÇó CentOS Linux 7 (Core)
4.19.76-linuxkit
Another thread had asked for specific versions when diagnosing this. Here they are:
pkg-config --modversion gtk+-3.0
3.22.30
pkg-config --modversion glib-2.0
2.56.1
pkg-config --modversion gio-2.0
2.56.1
pkg-config --modversion blkid
2.23.0
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/local/lib/pkg
config:
Would LOVE some help getting this resolved!!!!
I updated my Ubuntu to version 22.04 LTS, and when I needed to install Flutter and Android Studio I ran into a similar error in flutter doctor output:
GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
Command apt install libgtk-3-dev returned various errors, at first something like:
libgtk-3-dev is already the newest version
And then i tried to update all packages:
sudo apt-get update
sudo apt-get autoremove
dpkg --get-selections | grep hold
None of these commands didn't do anything...
So, i try to remove libgtk-3-dev, and after that repeat autoremove and try to install libgtk-3-dev again. But now it showed me that it has some unmet dependency (it looks like it depended on some version of libpcre3 and\or libpcre3-dev) and for some reason apt refused to install it.
I tried so many ways to remove this damn package, but I could not do it. As far as I understand, initially the problem is that the version of this shitty package (libpcre3) that I have has been stretching since Ubuntu 18, and there is both a 32-bit version and x64, and dependencies are crooked in some of them ... Well, or some other problem - maybe something was not deleted during the next update, although it should have been.
In the end, I managed to solve the problem using a graphical shell over apt - synaptic (its great stuff, I recommend it to everyone). It's very easy to set up:
sudo apt install synaptic
After that, I found the amd64 version libpcre3 in list, marked it for installation and installed it. After that, just install through the console
sudo apt install libgtk-3-dev
It worked fine, updating all dependencies.
P.S. First thing I want to note is that Flutter is incredibly crooked shit (only my opinion). If you haven’t started developing on it yet, don’t start, choose something more stable. If it will be possible to use this garbage, then only in five years at best...
And secondly, I spent a lot of time searching and solving the problem with the library, which is essentially perl dependencies. Despite the fact that I myself do not use perl at all. Looks like the notorious "Dependency Hell" is already here.
It appears most of this has to do with pathing, some of the libs have slightly different names (gtk3-devel, libblkid-devel, xz-devel). Some irritations around cmake3, and getting more current versions of pkg-config, xproto, kbproto, xextproto, and the configuration of said packages. At least now I have a clean flutter doctor.
Now, on to trying to run it...
I recently reinstalled the OS on my machine, I decided to install and use flutter through FVM. I had many other problems.
[✓] Flutter (Channel stable, 3.0.5, on Ubuntu 20.04.3 LTS 5.15.0-41-generic, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Chrome - develop for the web
[✗] Linux toolchain - develop for Linux desktop
✗ clang++ is required for Linux development.
It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
✗ CMake is required for Linux development.
It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
✗ GTK 3.0 development libraries are required for Linux development.
They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
[✓] Android Studio (version 2021.2)
[✓] VS Code
[✓] Connected device (2 available)
[✓] HTTP Host Availability
Solutions:
clang++
sudo apt-get -y install clang
CMake
I was trying sudo snap install cmake, But it returned an error, this is because the snap review "cmake" was published using classic confinement and therefore can make arbitrary system changes outside the security sandbox that snaps are usually confined to, which can put the system at risk.
It was suggested to me: "If you understand and want to continue, repeat the command including --classic?
To solve it, I just understood and continued
sudo snap install cmake --classic
GTK 3.0 development libraries
sudo apt install libgtk-3-dev
This solved everything here, it doesn't have an execution order, each dependency is added independently.
I hope I contributed!

missing libmpfr.so.6 when using a cross-compiler

I am using Ubuntu 18.04
I built a mips cross-compiler using buildroot, but when I tried to test whether it would work,I got this message
/home/daisy/repos/repo/buildroot/output/host/bin/../libexec/gcc/mipsel-buildroot-linux-uclibc/9.3.0/cc1: error while loading shared libraries: libmpfr.so.6: cannot open shared object file: No such file or directory
I searched for solutions , one of which said this:
sudo pacman -S mpfr
Well , my Linux isn't archlinux, this didn't work for me.
somebody please tells me how to deal with it.
The above suggestions of installing libmpfr on your host system are wrong. Buildroot is supposed to have build libmpfr, it should be present in host/lib, and picked up by the cross-compiler by virtue of it having a proper RPATH. If it doesn't work, we need to figure out why, but the correct thing is not to install libmpfr on your host system.
In Ubuntu, apt command (Advanced Packaging Tool) is used for performing such functions as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu system.
Try this command :-
sudo apt-get update
sudo apt install libmpfr6
This will install shared libraries: libmpfr.so.6 to your Ubuntu system.
Hope It Helps !

Trouble met when installing PCL on Ubuntu 18.04

I have trouble in installing PCL 1.9 on my Ubuntu 18.04. Could anybody please help? Really thanks.
I already tried as many tutorials on the Internet. However they both won't work.
When trying to add ppa source and use apt/apt-get to install libpcl-all, it seems that the source doesn't work for ubuntu18.
When I was trying to build the PCL myself, on Ubuntu 18.04, it has lots of dependencies problems. Many tutorials say that using apt to install the dependencies, however some libraries are not available in apt.
There are some people suggesting to use apt install libpcl-dev. Although there is no errors in installation, when I tried to compile an example code, it still doesn't work.
Using pcl-trunk might be your best choice.
git clone https://github.com/PointCloudLibrary/pcl pcl-trunk
cd pcl-trunk && mkdir build && cd build
cmake ..
make
sudo make install

How to make LLVM-3.7 default on Raspberry Pi?

I'm on the default Raspbian OS and sudo apt-get install llvm seems to install llvm-3.5 with a bunch of soft links (like llvm-link pointing to llvm-link-3.5) However, I'd like to install llvm-3.7 and have it treated as the "default" LLVM by the system. I've tried fiddling around with update-alternatives but couldn't get it to work. Help will be appreciated.
PS: I need 3.7 over 3.5 because of https://ghc.haskell.org/trac/ghc/ticket/11190

Installing Chez Scheme 9.4 on Linux Mint LMDE

I am trying to install Chez Scheme 9.4 on a Linux Mint LMDE system. Chez Scheme requires GNU make, gcc, header files and libraries for ncurses, and header files and libraries for X windows.
I successfully installed ncurses with the command sudo apt-get install ncurses-dev, and I have a directory /etc/X11 with lots of stuff in it. Per the Chez Scheme BUILDING file I ran ./configure, which worked properly, then sudo make install, which failed with error X11/Xlib.h: No such file or directory.
I'm not familiar with X windows. Can someone please tell me exactly what packages I need to install to have the required X windows header files and libraries?
I installed sudo apt-get install libx11-dev and the compile completed successfully.

Resources