I wanted to play around with this lattice fpga "go board" I've had laying around When I got sent the lattice IDE "iCEcube2" installer it failed to launch on my ubuntu 22 machine :/. Apparently it's only supposed to run on red hat... For me I was failing to link with libpng12 which was not available in my ubuntu repos. I based on this answer I just wget'd the source.
wget https://ppa.launchpadcontent.net/linuxuprising/libpng12/ubuntu/pool/main/libp/libpng/libpng_1.2.54.orig.tar.xzI had a little trouble configuring it to build for 32 bit but
CFLAGS="-m32" LDFLAGS="-m32" ./configuredid the trick. Then I was also missing libSM.so but that was easily done with apt
sudo apt install libsm-dev:i386After that looking at
ldd ./iCEcube2setupshowed no missing libraries and was able to launch. Today is March 27, 2025