Skip to main content
Nzhan.15
Associate III
Aug 29, 2019 7:10 AM UTC
Solved

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

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.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Aug 29, 2019 8:56 AM UTC

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
Aug 29, 2019 8:08 AM UTC
martin@st.com /d/TouchGFX/4.10.0/designer
$ tgfx.exe generate --path=/c/TouchGFXProjects/customKeyboard/customKeyboard.touchgfx

Nzhan.15
Nzhan.15Author
Associate III
Aug 29, 2019 8:46 AM UTC

My os is CentOS, not windows 10.

Martin KJELDSEN
Principal III
Aug 29, 2019 8:28 AM UTC

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
Aug 29, 2019 8:59 AM UTC

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