Skip to main content
KMili
Associate III
April 1, 2020
Solved

What should we know if we want to use custom environment?

  • April 1, 2020
  • 2 replies
  • 1451 views

Question is about TouxhGFX environment (C:\TouchGFX\4.13.0\env\MinGW).

We want to use our own build environment, outside TouchGFX MinGW shell and NOT using tools included at C:\TouchGFX\4.13.0\env (make, /bin/*, binutils, etc.).

Are there any specifics done with that environment you ship with Designer? For example there is non standard make included into MSYS, so maybe there are other custom things. Any startup custom setup...

Basically, is there anything specific to know about configuration and setup of our custom fresh environment for building, CI/CD and more?

P. S. We want to still let Designer itself to use out-of-the-box environment for code generation. I guess it would be too big of a hack to change that. Question applies to builds and not code/assets generation.

P. P. S. If you are curious, goal is to have independent and fully controllable separate environment for local builds and CI/CD server (Win and Linux).

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

Hi,

To create your own environment (e.g. on linux), you need a few things - I'll list what's build and what's assets. TouchGFX Designer uses the environment inside its installation to make, so no need to worry about that - Although, you can also change the environment that the designer uses if you absolutely want to.

  1. gcc/g++ (build)
  2. Make (build - TouchGFX Application templates come with Makefiles)
  3. Ruby (Used for both asset generation but also to update projects post-generation of code in designer - We still use Ruby 1.9.3 for the environment and we haven't yet migrated to 2.0+)
  4. RubyGems
  5. Roo (Ruby gem used to read excel sheets for font/text generation)

/Martin

2 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
April 3, 2020

Hi,

To create your own environment (e.g. on linux), you need a few things - I'll list what's build and what's assets. TouchGFX Designer uses the environment inside its installation to make, so no need to worry about that - Although, you can also change the environment that the designer uses if you absolutely want to.

  1. gcc/g++ (build)
  2. Make (build - TouchGFX Application templates come with Makefiles)
  3. Ruby (Used for both asset generation but also to update projects post-generation of code in designer - We still use Ruby 1.9.3 for the environment and we haven't yet migrated to 2.0+)
  4. RubyGems
  5. Roo (Ruby gem used to read excel sheets for font/text generation)

/Martin

KMili
KMiliAuthor
Associate III
April 3, 2020

This is not really what I ask though.

We use custom Makefile, so that no assets code generation is being performed during build. So we don't need Ruby nor Gems, nor Roo.

GCC and Make are obvious tools as well as various /bin utilities used by make and other tools.

Martin KJELDSEN
Principal III
April 3, 2020

That's why i indicated which parts we use for building and which ones are for assets (which you can disregard).

Generally, you can do whatever you want. But if you want to use the Makefiles we provide, then 1+2, where 1 is probably both gcc and arm-gcc.

/Martin

KMili
KMiliAuthor
Associate III
April 3, 2020

Hi, I totally understand, but that is kind of self explanatory just by reading Makefile and interacting with installed shell for a few minutes. =)

Basically, what I wanted to double check is that is there anything different made by TouchGFX to that MinGW environment compared to stock MinGW. Would be nice to know before taking action and migrating from that to custom env.

Since I cannot find any Linux/custom build env setup guidelines, which would state that, that's why I am asking you here. Or if there is some article/guidelines like that, please share.