Lattice iCEcube2 installation on Debian
Lattice iCEcube2 FPGA IDE installation on Debian
I had a dependancy issue when trying to install the Lattice semiconductor iCEcube2 FPGA IDE The solution is to install a 32-bit version of the libpng package and create a soft link to it in /usr/lib.
I repeatedly got this error message when trying to install the Linux version of iCEcube2 from the downloaded file iCEcube2setup_Dec_10_2020_2012.
error while loading shared libraries: libpng12.so.0
I tried installing libpng from the Ubuntu repository. I tried building the libpng12.so.0 library from the sourceforge repository.
Then I started getting a:
Why is there an Elf in my machine? ELF stands for executable linked file. 64 means it is 64-bit. Here’s a clue. The installation wants a 32-bit file.
With this info, I got some help from Stackoverflow here
sudo aptitude install libpng16-16:i386 sudo ln -s /usr/lib/i386-linux-gnu/libpng16.so.16.37.0 libpng12.so.0
Download a 32-bit version of the libpng library. Then link this to the filename that the installation is looking for.
The next trick is to get the licence to work…