Hi am I trying to set up an environment to build legato apps. However it seems the prerequisits listed on GitHub and in the setup process are old? i.e. some packages are no longer available. E.g. python-jinja2… am I missing something? Should this list be updated?
this is the tool i have installed in Ubuntu 18 before the development of legato or yocto:
sudo apt-get install bison build-essential chrpath cifs-utils cmake coreutils curl desktop-file-utils diffstat docbook-utils doxygen fakeroot flex g++ gawk gcc git-core gitk graphviz help2man libgmp3-dev libmpfr-dev libreadline6-dev libsdl-dev libtool libxml2-dev libxml-libxml-perl make m4 ninja-build python-pip python-jinja2 python-pysqlite2 quilt samba scons sed subversion texi2html texinfo unzip wget texinfo chrpath openjdk-8-jdk
Thanks for the reply. Are you running this on Ubunut? If so what version?
I am setting this up on a VM and will try it there… but on WSL2 and Ubuntu 22.x I get the following
legato@karl-laptop://$ sudo apt-get install bison build-essential chrpath cifs-utils cmake coreutils curl desktop-file-utils diffstat docbook-utils doxygen fakeroot flex g++ gawk gcc git-core gitk graphviz help2man libgmp3-dev libmpfr-dev libreadline6-dev libsdl-dev libtool libxml2-dev libxml-libxml-perl make m4 ninja-build python-pip python-jinja2 python-pysqlite2 quilt samba scons sed subversion texi2html texinfo unzip wget texinfo chrpath openjdk-8-jdk
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘git’ instead of ‘git-core’
Note, selecting ‘libreadline-dev’ instead of ‘libreadline6-dev’
Package python-jinja2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-jinja2
Package libsdl-dev is a virtual package provided by:
libsdl1.2-dev 1.2.15+dfsg2-6
libsdl1.2-compat-dev 1.2.52-3
You should explicitly select one to install.
E: Package ‘libsdl-dev’ has no installation candidate
E: Package ‘python-jinja2’ has no installation candidate
E: Unable to locate package python-pysqlite2
see if this helps:
BTW, I don’t see problem in Ubuntu 16 or Ubuntu 18
Thanks, I’ve got it to work… I had to downgrade to gcc-9 as well otherwise there are issues in the build… I also had to install pre-requisites manually…