2020-12-29 09:29 AM
Hello, i have some c++ classes in a separate folder called Modules (in the project root directory). I added the header and source files in the Modules folder to the Makefile in TouchGFX/simulator/gcc but will not compile successfully.
The image below shows the location of the Modules directory
The image below shows the added Modules source and header to the makefile.
The image below shows the Simulator compile error
I have tried all the suggestions in this two links:
None of them seem to work for me. Please can someone help me figure the right way to solve this problem?
2020-12-29 10:52 AM
Why you need change simulator code ? This makefile isnt used for target build.
2020-12-29 12:48 PM
Well I'm running on the simulator and not the target hardware. The simulator will not compile if I include header files out of Touchgfx in the Model for example #include "Wifinetwork.h". I researched why this happened and found out I need to add the header and source files to the Makefile of the Simulator as explained in the links I posted previously.
2020-12-30 01:42 AM
In generated makefile exist linees
source_files := $(call find, $(source_paths),*.cpp) $(framework_files) $(ADDITIONAL_SOURCES)
c_source_files := $(call find, $(source_paths),*.c)
then your add works only for cpp files.
And im not expert for make , but why you create new vars and not use ADDITIONAL_SOURCES directly?