Skip to main content
olivier.scalbert
Associate III
September 4, 2019
Solved

Can we run TouchGFX on Linux/Wine ?

  • September 4, 2019
  • 14 replies
  • 12814 views

I just discover that the TouchGFX tool run only on Windows ...

:(

I do not use Windows and I have no plan to use it one day.

Do you know if it run on Linux with Wine ?

Thanks

Best answer by Martin KJELDSEN

Since this has been dug out again i'll update it:

TouchGFX Designer won't run on Wine, i think is the conclusion. Now that TouchGFX Generator (Creates TouchGFX HAL) is a part of CubeMX, which does run on linux, you can at least do that. But it doesn't help you much since you need TouchGFX designer to "complete" the project (bootstraps the application).

It's VERY far out in our plans to do a cross-platform solution of the designer, i have to say. I don't see it happening within the next few years. I know of people who dual-boot linux and windows to work with TouchGFX. If you're interested i could share some possible workflows, but they're a bit convoluted since you need both windows and linux.

/Martin

14 replies

Dolence
Associate III
September 1, 2023

I got the latest version fully working in Bottles, including networking.

  1. Install Bottles using flatpak
  2. Launch Bottles, click on the three lines menu icon or use the keyboard shortcut ctrl+,
  3. Click on the Runners tab and install wine-ge-proton8-14
  4. Create a new Bottle
  5. Go to Settings - Components
  6. Select sys-wine-8.0.2 as your runner (wine-ge-proton give and space in path error)
  7. DXVK: disabled
  8. VKD3D: disabled
  9. DXVK NVAPI: dxvk-nvapi-v0.6.3
  10. Go back and select Dependencies
  11. Install allfonts and vcredist2015
  12. Go back, click on the Run Executable button and select the TouchGFX Designer .msi installer
  13. After the installation is done, launching will not work. Go back again and select wine-ge-proton8-14 as your runner.

Almost everything should be working now. Enjoy!

Run target (flashing) isn't working and I don't know if is possible to pass the st-link usb connection to Wine/Bottles, but I'm ok with this.

Richard Lowe
Senior II
September 6, 2023

So great! I have TouchGFX 4.22 in LINUX!
Couple of tips:

  1. .msi file needs to be copied into the bottle directory. Bottles are sandboxed and can't access the executable in the user path. You can access the bottle folder by clicking the menu in the top right and choose "Browse Files":
    Screenshot from 2023-09-06 15-45-13.png
  2. Compile time is slow, when generating code it does take more time than normal.
  3. The simulator is also slower than normal.
  4. If you are using Bottles as a flatpak, you will have to add permissions to the bottle for user defined paths. I'm using a tool called Flatseal, which is a flatpak app, to easily add those permissions.
Dolence
Associate III
September 12, 2023

I'm glad it worked for you too!

Visitor II
July 27, 2024

I can't say I'm having much luck here. I've followed the steps above but without success.

Linux Mint 21.3

AMD Ryzen 9

Bottles 51.13

TocuhGFX 4.10.0

Tried the different runners above.

I'm on an Asus machine & can't see the DXVK NVAPI option

FGuen.1
Visitor II
October 23, 2024

I'm working with Ubuntu 20.04 and Wine 9.0.  Oktober 2024

I have test 4.24.1 , but it crashes ,  in Wine and inPlayonlinux :

Error : Combination of STM32H7S78 DK & Blank UI failed

also in VirtualBox :

Error: Object reference not set to an instance of an object.

The Version 4.23.2 is OK :

With the following, i installed it :  ( /home/michli/.X-CUBE-TOUCHGFX  is my folder)

WINEARCH=win64 env WINEPREFIX="/home/michli/.X-CUBE-TOUCHGFX" winecfg     

     -- for Win 8.1 , grafic (192dpi), drives( direct to my folders)

env WINEPREFIX="/home/michli/.X-CUBE-TOUCHGFX" wine uninstaller

    -- uninstaller for install TouchGFX-4.23.2.msi

env WINEPREFIX="/home/michli/.X-CUBE-TOUCHGFX" wine C:\\TouchGFX\\4.23.2\\designer\\TouchGFXDesigner-4.23.2.exe

    -- this is for your Starter

 

 

 

FGuen.1
Visitor II
October 23, 2024

I could create a project wit example and board.

This i opend with CubeMX and migrate it.

Cube MX downloaded something....

And after this, i couldn't create any Example-Project with Touchgfx.

Also after a new Install !!!!

FGuen.1
Visitor II
October 24, 2024

I think, i have a solution :

I have my Oracle VM VirtualBox updated to Win10 with VM 7.0.22.

One of the shared folders point to my project folder for the created Examples.

I can create some examples, it took some time ... . but most importantly :

I can open this examples with Touchgfx on Wine. It is very faster.

I don't know, why this doesn't function the first time.

Perhaps because of the update to 7.0.22 ?

Associate
October 17, 2025

Hi,

at first let me say thanks to all of you!
I certainly would not have been able to get it running without all the information you provided before.
I'd like to report my arch Linux setup & experience:

  • Launch Bottles, click on the three lines menu icon
  • Runners - install wine-ge-proton8-26
  • create new bottle, go to settings - components, select sys-wine-10.16 as runner, disable DXVK & VKD3D, DXVK NVAPI stays at dxvk-nvapi-v0.9.0
  • back to settings - dependencies, install allfonts, vcredist2015 and vcredist2019 (not sure if necessary, but it won't hurt, right?)
  • copy the TouchGFX msi file into the sandbox and launch the initial installation by using "Run executable" (computing the space requirement took some time...)

I've been able to start TouchGFX Designer 4.26 with the sys-wine-10.16 runner on the second try, changing to wine-ge-proton (first try) resulted in a crash...

As I am only just starting my STM32 journey, I'm not sure how far I'll come - but for today I'll take the win...