2020-07-29 01:18 AM
I'm new to touchGFX and I'm using Keil (v5.xx). I cant compile the touchGFX example for the 746G-Discovery due to missing files and I'm having the same kind of problems when I generate a project using the designer.
When I try to compile the example (STM32Cube_FW_F7_V1.16.0\Projects\STM32746G-Discovery\Demonstrations\TouchGFX\MDK-ARM) I get the following errors:
../Core/Src/main.cpp(20): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Core/Src/main.cpp: 0 warnings, 1 error
compiling Gauge.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/custom_controls_screen/Gauge.cpp: 0 warnings, 1 error
compiling EasingEquationGraph.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/easing_equation_screen/EasingEquationGraph.cpp: 0 warnings, 1 error
compiling CircularProgress.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/custom_controls_screen/CircularProgress.cpp: 0 warnings, 1 error
compiling AbstractGraph.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/AbstractGraph.cpp: 0 warnings, 1 error
compiling ThreeWayProgressBar.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/custom_controls_screen/ThreeWayProgressBar.cpp: 0 warnings, 1 error
compiling CustomControlsView.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/custom_controls_screen/CustomControlsView.cpp: 0 warnings, 1 error
compiling CustomControlsPresenter.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/custom_controls_screen/CustomControlsPresenter.cpp: 0 warnings, 1 error
compiling EasingEquationPresenter.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/easing_equation_screen/EasingEquationPresenter.cpp: 0 warnings, 1 error
compiling EasingEquationView.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/easing_equation_screen/EasingEquationView.cpp: 0 warnings, 1 error
compiling FrontendApplication.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/common/FrontendApplication.cpp: 0 warnings, 1 error
compiling Graph.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/Graph.cpp: 0 warnings, 1 error
compiling GraphBelow.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/GraphBelow.cpp: 0 warnings, 1 error
compiling GraphDots.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/GraphDots.cpp: 0 warnings, 1 error
compiling GraphLine.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/GraphLine.cpp: 0 warnings, 1 error
compiling GraphPresenter.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/GraphPresenter.cpp: 0 warnings, 1 error
compiling PieChart.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/PieChart.cpp: 0 warnings, 1 error
compiling GraphView.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/gui/src/graph_screen/GraphView.cpp: 0 warnings, 1 error
compiling BoardConfiguration.cpp...
../../../../../Middlewares/ST/TouchGFX/touchgfx/framework/include/touchgfx/canvas_widget_renderer/Scanline.hpp(19): error: #5: cannot open source input file "touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp": No such file or directory
#include <touchgfx/canvas_widget_renderer/CanvasWidgetRenderer.hpp>
../Gui/target/BoardConfiguration.cpp: 0 warnings, 1 error
This is with the most recent STMCubeF7 pack and without any modifications, it should work out of the box..
Any idea's?
Solved! Go to Solution.
2020-07-29 02:20 AM
Hello,
It works on my side. Do you have TouchGFX on your computer ?
If not please install it either via CubeMX or on st.com
Otherwise,
/Alexandre
2020-07-29 02:20 AM
Hello,
It works on my side. Do you have TouchGFX on your computer ?
If not please install it either via CubeMX or on st.com
Otherwise,
/Alexandre
2020-07-29 03:27 AM
Aha, I was not aware I had to open the project in cube and then re-open en re-generate code, I thought the generate button in designer was all I need.
2020-07-30 07:04 AM
It is all you need when you use the default IDE which is STM32CubeIDE.
The IDE selection is handled in one place: the CubeMX project.
The TouchGFX Designer retrieves the selected IDE information by parsing the CubeMX project (.ioc file) at code generation step.
So if you want to switch to IAR or Keil you have to set it in the CubeMX project dedicated section, it will be stored in the .ioc file and thus the Designer will be notified on the next code generation.
Best regards,
Nicolas