mondinmr - 3 days ago

I have now published Ubuntu amd64 packages of my patched Wine build for CODESYS, targeting Ubuntu 22.04, 24.04, 26.04 and 26.10.

The packages are based on Wine 11.20 and include all five compatibility patches covering NCrypt, thread suspension, security tokens, service tokens and local WMI marshalling. Both 32-bit and 64-bit Windows applications are supported through WoW64.

In my working environment, CODESYS 3.5 SP21 successfully compiled and went online with a very complex project containing hundreds of thousands of lines of code and extensive use of polymorphism.

PPA and installation

All four binary builds have completed successfully and are now published and available through APT.

Wine ADV for CODESYS PPA

sudo add-apt-repository ppa:mondinmr/wine-adv
sudo apt update
sudo apt install wine-adv

The runtime installs under /opt/wine-adv and provides dedicated commands, allowing it to coexist with your existing Wine installation.

For example, to launch CODESYS from an existing dedicated prefix:

WINEPREFIX="$HOME/.wine.codesys" wine-adv \
  'C:\Program Files\CODESYS 3.5.21.30\CODESYS\Common\CODESYS.exe'

Adjust the executable path to match your installed version. Use the same WINEPREFIX when running the CODESYS installer or installing its prerequisites.

The package contains the patched Wine runtime. CODESYS and its required Microsoft .NET components must be installed separately inside the prefix.

Source code, patches and packaging are available on the project page.

This is an experimental community build. Feedback and test results from other users are welcome!

CODESYS Installer and CodeMeter licensing are also working in my setup.

For CodeMeter, I use the native Linux CodeMeter runtime, while the Windows applications run under the patched Wine build.