Question
Potential Bug? : Build Error when using TouchGFX and MSVC Simulator .sln interchangeably
Steps:
- Use TouchGFX Designer to setup some GUI e.g. dynamic graph and generate the code then run simulation, make sure it is ok
- Open the MSVC simulator. Made some modification on the code or add additional cpp/hpp file into project. Build in MSVC make sure it is ok
- Switch again to TouchGFX Designer which might prompt you to accept external change. Click ok then generate the code and run simulator again -> build fail.
I notice in the code suddently the dynamic graph of the element area and element line instance were gone. As work around I needed to delete and create again the elemenet area and element line in TouchGFX Designer.
Following is the build error log snippet:
Run Simulator
Generate
Wrote generated/gui_generated/include/gui_generated/containers/CurveViewBase.hpp
Wrote generated/gui_generated/src/containers/CurveViewBase.cpp
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project --project-file=../STM32F769I_DISCO.ioc --platform=m7
Done
Compile
make -f simulator/gcc/Makefile -j8
Reading ./application.config
Compiling gui/src/home_screen/HomeView.cpp
Compiling gui/src/home_screen/HomePresenter.cpp
Compiling gui/src/containers/CurveView.cpp
Compiling gui/src/model/SystemIfc.cpp
Compiling gui/src/model/Model.cpp
Compiling generated/gui_generated/src/home_screen/HomeViewBase.cpp
Compiling generated/gui_generated/src/containers/CurveViewBase.cpp
Compiling generated/gui_generated/src/common/FrontendApplicationBase.cpp
Compiling generated/simulator/src/mainBase.cpp
Compiling simulator/main.cpp
In file included from gui/include/gui/containers/CurveView.hpp:4:0,
from gui/include/gui/home_screen/HomeView.hpp:4,
from gui/src/home_screen/HomeView.cpp:1:
generated/gui_generated/include/gui_generated/containers/CurveViewBase.hpp:59:15: error: using-declaration for non-member at class scope
touchgfx::GraphElementArea ;
^~~~~~~~~~~~~~~~
generated/gui_generated/include/gui_generated/containers/CurveViewBase.hpp:61:15: error: using-declaration for non-member at class scope
touchgfx::GraphElementLine ;
^~~~~~~~~~~~~~~~