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

Martin KJELDSEN
Principal III
September 6, 2019

Yeah, TouchGFX designer is based on .NET/WPF. I haven't tried it on Wine but i'm positive that others have - With mixed success.

Give it a try :)

/Martin

JGonz.2
Associate II
February 15, 2020

Hi @olivier.scalbert​ 

Did you run TouchGFX on Linux with Wine?

I'm trying to run on Ubuntu 16.04, but no success

olivier.scalbert
Associate III
February 16, 2020

Hi @JGonz.2​ 

I have tried on Debian Buster, with no success.

I have to admit that I didn't spend a lot of time and moved on.

Good luck !

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
February 17, 2020

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

SBonf.1
Visitor II
April 25, 2020

@Martin KJELDSEN​  Hi, i understand that the designer won't run on wine and there is no plan to create a cross-platform in the near future, but the designer is the only way to create a complete Touchgfx project? What i mean is, since the STM32CubeMX/IDE can generate some portion of the project, why we are forced to use the designer to generate the missing resurces for the project? The designer is very cool, but it's not as powerfull as the touchGFX core itself (the designer does not implement all the features available) so why the STM32Cube cannot bootstrap the application and the developer implements the graphics using only code? Or using a command line generator... There are a lot of people that want to create awesome projects with this framework but they cannot use it because they are developing on linux and use windows tecnically requires a license. Thank you in advance.

Martin KJELDSEN
Principal III
April 27, 2020

Hi @SBonf.1​,

It's definitely not the only way. We were doing projects way before 4.8.0 when the designer was introduced. It just requires a better understanding of the structure and how to piece things together.

I used to have some helper scripts to help me "generate" parts of the code that the designer helps you with now.

I'd suggest that you take a look at some of the projects in the application templates/demos/examples. It's just c/c++ And you should be able to piece together how the general structure is - both project and GUI. Once you get that, i could help you understand what happens in code when you need to create a new screen, a new transition type, etc.

/Martin

olivier.scalbert
Associate III
September 27, 2020

Hi,

"I'd suggest that you take a look at some of the projects in the application templates/demos/examples. It's just c/c++"

Do you have any links where I can find TouchGFX generated C++ code for the STM32F469i ?

Thanks,

Olivier

Martin KJELDSEN
Principal III
September 28, 2020

If you open up the TouchGFX designer you'll find that you can create applications based on STM32F469i-DISCO. You can choose examples and demos to run on top of that application from within TouchGFX designer.

olivier.scalbert
Associate III
September 28, 2020

Hi Martin,

Thanks for your reply.

As I still not have Windows, I can not use TouchGFX designer !

What I want is to find is "the code generated" by TouchGFX designer somewhere !

So I can play with it on STM32F469i-DISCO.

Olivier

TLin.11
Visitor II
March 28, 2023

Hi,

I'm developer on linux.

I using TouchGFX 4.21.3 on bottles(flatpak) application.

=== environment ===​

OS: Manjaro Linux

Kernel: linux-6.1.19

Window manager: KDE plasma 5.26.5

flatpak Ver. : 1.15.2

Bottles​ Ver. : 51.5

HW:

CPU: AMD Ryzen 5 3600

GPU: nVIDIA GeForce GT710

RAM: 16GiB

My settings are as follows:

1. Create a new bottles

2.Option -> Settings0693W00000aJpiaQAC.pngIn addition to the settings used in the above picture, other defaults are fine.

3.Option -> Dependencies​0693W00000aJpm3QAC.pngAdditional installation "vcredist2012" & "allfonts"

4.Install TouchGFX 4.21.3 & startup application.

splash screen will be problematic

0693W00000aJpnLQAS.png​But it is normal to enter the main screen.​0693W00000aJpoTQAS.png

Sorry my poor english.

Nigel

Dolence
Associate III
August 31, 2023

I couldn't get it to work using wine but soda launched fine (even the splash is shown correctly). Unfortunately, network connection isn't working, so it becomes pretty unusable.