ponyprog icon indicating copy to clipboard operation
ponyprog copied to clipboard

Build on Ubuntu 20.04

Open mrv96 opened this issue 4 weeks ago • 0 comments

I tried to build PonyProg v3.1.4 on Ubuntu 20.04 (current latest LTS) in order to support old systems, but I expired some issues:

  • Ubuntu 20.04 provides QT 5.12.8 which is too old for PonyProg
  • build errors on ftdi.cpp and ftdi.hpp

I share a working solution based on Docker solving that issues:

FROM stepanove/qt:5.15.2-desktop

# From v3.1.4 libftdipp1-3 libftdipp1-dev are no more necessary
RUN sudo apt update && sudo apt -y install \
        pkg-config \
        libusb-1.0-0 \
        libusb-1.0-0-dev \
        libftdi1-2 \
        libftdi1-dev \
        fakeroot \
    && sudo apt -y install \
        wget

RUN wget http://archive.ubuntu.com/ubuntu/pool/main/libf/libftdi1/libftdi1-2_1.5-6build5_amd64.deb \
        http://archive.ubuntu.com/ubuntu/pool/main/libf/libftdi1/libftdi1-dev_1.5-6build5_amd64.deb \
    && sudo apt install -y ./libftdi1-2_1.5-6build5_amd64.deb \
        ./libftdi1-dev_1.5-6build5_amd64.deb \
    && rm libftdi1*.deb

Inside that Docker image I was able to build PonyProg DEB:

git clone --recurse-submodules -b v3.1.4 https://github.com/lancos/ponyprog.git
cd ponyprog
./create_deb_package.sh

mrv96 avatar Jan 29 '25 17:01 mrv96