Hello everyone,
I would like to share with you all my short guide on how to install MCUxpresso 11 on Debian 10.
The NPX website clearly states that Debian >=9 are not supported. There is although a workaround to satisfy all dependancies.
I am currently using Debian 10, but the installation on Debian 9 is more straight forward.
Please test it, provide feedback or even transform it to an automatic script and publish it online. The following text is released under public domain.
Disclaimer: I am providing these commands WITHOUT ANY WARRANTY. I am not able to provide any troubleshooting if things goes wrong. All downloaded packages are from an official source. Use it at your own risk.
1) Multiarch
Activate Multiarch, and in particular the i386 architecture. More info here - https://wiki.debian.org/Multiarch/HOWTO
2) Install dependencies
Before running the MCUxpresso installer, please install the following dependencies:
libncurses-dev
$ sudo apt-get install libncurses-dev:i386
libusb-1.0
$ sudo apt-get install libusb-1.0:i386
dfu-util
$ sudo apt-get install dfu-util:i386
libwebkitgtk-1.0 is the more complex package and it has a lot of dependencies. The following command install the packages already available from the Debian repo.
$ sudo apt-get install libjavascriptcoregtk-1.0-0:i386 libatk1.0-0:i386 libcairo2:i386 libenchant1c2a:i386 libfontconfig1:i386 libfreetype6:i386 libgdk-pixbuf2.0-0:i386 libgl1-mesa-glx:i386 libgl1:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libgtk2.0-0:i386 libharfbuzz-icu0:i386 libharfbuzz0b:i386 libicu57:i386 libjpeg62-turbo:i386 libpango-1.0-0:i386 libpangocairo-1.0-0:i386 libpangoft2-1.0-0:i386 libsecret-1-0:i386 libsoup2.4-1:i386 libsqlite3-0:i386 libwebp6:i386 libx11-6:i386 libxcomposite1:i386 libxdamage1:i386 libxfixes3:i386 libxml2:i386 libxrender1:i386 libxslt1.1:i386 libxt6:i386 gstreamer1.0-plugins-base:i386 gstreamer1.0-plugins-good:i386 geoclue-2.0:i386
Some packages are not included in the current Debian 10 repository, so we need to fetch them manually.
Create libwebkitgtk.txt
$ echo 'http://ftp.uk.debian.org/debian/pool/main/w/webkitgtk/libwebkitgtk-1.0-0_2.4.9-1~deb8u1_i386.deb
http://security.debian.org/debian-security/pool/updates/main/i/icu/libicu52_52.1-8+deb8u8_i386.deb
http://ftp.uk.debian.org/debian/pool/main/w/webkitgtk/libwebkitgtk-1.0-common_2.4.9-1~deb8u1_all.deb
http://ftp.uk.debian.org/debian/pool/main/w/webkitgtk/libjavascriptcoregtk-1.0-0_2.4.9-1~deb8u1_i386...
http://ftp.uk.debian.org/debian/pool/main/libw/libwebp/libwebp5_0.4.1-1.2+b2_i386.deb
https://downloads.sourceforge.net/project/libpng/libpng12/1.2.59/libpng-1.2.59.tar.gz' > libwebkitgtk.txt
Download the packages for manual installation
$ wget -i libwebkitgtk.txt
Cross compile libpng for i386 architecture
$ tar -zxvf libpng-1.2.59.tar.gz
$ cd libpng-1.2.59
$ ./configure --host=i386 --libdir=/usr/lib/i386-linux-gnu/
$ make check
$ sudo make install
Install libicu52
$ sudo dpkg -i libicu52_52.1-8+deb8u8_i386.deb
Install libwebkitgtk-1.0-common_2.4.9
$ sudo dpkg -i libwebkitgtk-1.0-common_2.4.9-1_deb8u1_all.deb
Install libwebp5
$ sudo dpkg -i libwebp5_0.4.1-1.2+b2_i386.deb
Install libwebkitgtk forcing it to ignore libpng12 dependencies as the correct library is already installed.
$ sudo dpkg -i --force-depends libwebkitgtk-1.0-0_2.4.9-1_deb8u1_i386.deb
Install libjavascriptcoregtk
$ sudo dpkg -i libjavascriptcoregtk-1.0-0_2.4.9-1_deb8u1_i386.deb
3) Download MCUxpresso IDE and Config Tools
Run the bin file as root
$ sudo ./mcuxpressoide-11.0.1_2563.x86_64.deb.bin
Clean some space post installation
$ sudo apt autoremove
I hope everything has gone as planned.
4) Download the SDK
Download the correct SDK for your device/development board.
5) Import your project or start developing
Have fun!
Hi Andrea, I hope you're doing well!
Thank you very much for providing this guide and for also providing your feedback, we appreciate it.
Best regards,
Sebastian