Skip to main content
Nzhan.15
Associate III
August 29, 2019
Solved

How to generate source code (.cpp/.hpp) for touchgfx on linux ?

  • August 29, 2019
  • 5 replies
  • 1653 views

Hi all,

I deployed a gitlab-runner for my touchgfx repository on linux, it will build (compile) the project once I update my commit. However I can't find the command-line tools which used to generated source code ( xxxViewBase.hpp, xxxViewBase.cpp ) , any hints will be appreciated, thanks!!!

This topic has been closed for replies.
Best answer by Martin KJELDSEN

You're out of luck, then. TouchGFX Designer is windows only, for now. We'e been talking about at least making tgfx.exe a cross platform tool, though.

5 replies

Martin KJELDSEN
Principal III
August 29, 2019
martin@st.com /d/TouchGFX/4.10.0/designer
$ tgfx.exe generate --path=/c/TouchGFXProjects/customKeyboard/customKeyboard.touchgfx

Nzhan.15
Nzhan.15Author
Associate III
August 29, 2019

My os is CentOS, not windows 10.

Martin KJELDSEN
Principal III
August 29, 2019

If you end up creating an application template for your project, you could also use the new command to create new applications with compile to perform some extra validation:

martin@st.com /d/TouchGFX/4.10.0/designer
$ tgfx.exe
 
Available commands are:
 
 new - Combines a user interface with an application template to create a new application
 compile - Compile touchgfx application
 flash - Flash touchgfx application
 generate - Generate touchgfx application
 ...
 help <name> - For help with one of the above commands

/Martin

Nzhan.15
Nzhan.15Author
Associate III
August 29, 2019

And, Does touchgfx 4.12 released ??? I am using 4.10.0 where can I download it.