你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

CubeMx5.1生成的touchgfx工程编译一堆错误,难以搞定

[复制链接]
kylongmu 提问时间:2019-2-28 09:39 /
先用keil5.27,基于769 discovery,直接以例子开始,编译后有缺头文件的,手工加上了;然后是一堆C++语法错误提示,感觉无能为力,应该是编译器配置问题。
然后换Truestudio,同样缺头文件,C++语法错误更多。
ST做个东西难道自己不用测试一下就发布吗?
收藏 评论5 发布时间:2019-2-28 09:39

举报

5个回答
admvip 回答时间:2019-3-4 00:16:13
请参考我的帖子
https://www.stmcu.org.cn/module/forum/thread-619311-1-1.html

主要原因是少加了库文件和C++语法声明,导致编译时一大堆错误。

评分

参与人数 1蝴蝶豆 +2 收起 理由
STMCU + 2

查看全部评分

kylongmu 回答时间:2019-3-4 13:51:53
admvip 发表于 2019-3-4 00:16
请参考我的帖子
https://www.stmcu.org.cn/module/forum/thread-619311-1-1.html
  1. Build started: Project: Test1
  2. *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'd:\Keil_v5\ARM\ARMCC\Bin'
  3. *** Warning: You are compiling one or more files of source type C++ and have selected 'use MicroLIB'. MicroLIB does not support C++!
  4.   
  5. Build target 'Test1'
  6. compiling IntroductionView.cpp...
  7. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(80): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  8.       FadeAnimator<MoveAnimator<LabelBox>> system;
  9. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(41): error:  #262: not a class or struct name
  10.   class FadeAnimator : public T
  11.           detected during instantiation of class "touchgfx::FadeAnimator<T> [with T=<error-type>]"  at line 80 of "../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp"
  12. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(81): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  13.       FadeAnimator<MoveAnimator<LabelBox>> model;
  14. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(82): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  15.       FadeAnimator<MoveAnimator<LabelBox>> presenter;
  16. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(83): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  17.       FadeAnimator<MoveAnimator<LabelBox>> view;
  18. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(84): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  19.       FadeAnimator<MoveAnimator<LabelBox>> ui;
  20. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(86): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  21.       FadeAnimator<MoveAnimator<TextArea>> systemText;
  22. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(87): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  23.       FadeAnimator<MoveAnimator<TextArea>> modelText;
  24. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(88): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  25.       FadeAnimator<MoveAnimator<TextArea>> presenterText;
  26. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(89): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  27.       FadeAnimator<MoveAnimator<TextArea>> viewText;
  28. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(53): error:  #292: "T" is not a nonstatic data member or base class of class "touchgfx::FadeAnimator<<error-type>>"
  29.           T(),
  30.           detected during instantiation of "touchgfx::FadeAnimator<T>::FadeAnimator() [with T=<error-type>]"  at line 15 of "../touchgfx/gui/src/introduction_screen/introductionview.cpp"
  31. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(17): error:  #29: expected an expression
  32.       {
  33. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(22): warning:  #12-D: parsing restarts here after previous syntax error
  34.       };
  35. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(24): error:  #29: expected an expression
  36.       {
  37. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(29): warning:  #12-D: parsing restarts here after previous syntax error
  38.       };
  39. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(31): error:  #29: expected an expression
  40.       {
  41. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(36): warning:  #12-D: parsing restarts here after previous syntax error
  42.       };
  43. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(38): error:  #29: expected an expression
  44.       {
  45. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(43): warning:  #12-D: parsing restarts here after previous syntax error
  46.       };
  47. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(45): error:  #29: expected an expression
  48.       {
  49. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(50): warning:  #12-D: parsing restarts here after previous syntax error
  50.       };
  51. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(52): error:  #29: expected an expression
  52.       {
  53. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(57): warning:  #12-D: parsing restarts here after previous syntax error
  54.       };
  55. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(59): error:  #29: expected an expression
  56.       {
  57. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(64): warning:  #12-D: parsing restarts here after previous syntax error
  58.       };
  59. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(66): error:  #29: expected an expression
  60.       {
  61. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(71): warning:  #12-D: parsing restarts here after previous syntax error
  62.       };
  63. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(73): error:  #29: expected an expression
  64.       {
  65. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(78): warning:  #12-D: parsing restarts here after previous syntax error
  66.       };
  67. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(80): error:  #29: expected an expression
  68.       {
  69. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(85): warning:  #12-D: parsing restarts here after previous syntax error
  70.       };
  71. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(87): error:  #29: expected an expression
  72.       {
  73. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(92): warning:  #12-D: parsing restarts here after previous syntax error
  74.       };
  75. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(94): error:  #29: expected an expression
  76.       {
  77. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(99): warning:  #12-D: parsing restarts here after previous syntax error
  78.       };
  79. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(101): error:  #29: expected an expression
  80.       {
  81. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(106): warning:  #12-D: parsing restarts here after previous syntax error
  82.       };
  83. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(108): error:  #29: expected an expression
  84.       {
  85. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(113): warning:  #12-D: parsing restarts here after previous syntax error
  86.       };
  87. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(115): error:  #29: expected an expression
  88.       {
  89. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(120): warning:  #12-D: parsing restarts here after previous syntax error
  90.       };
  91. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(122): error:  #29: expected an expression
  92.       {
  93. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(127): warning:  #12-D: parsing restarts here after previous syntax error
  94.       };
  95. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(129): error:  #29: expected an expression
  96.       {
  97. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(134): warning:  #12-D: parsing restarts here after previous syntax error
  98.       };
  99. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(136): error:  #29: expected an expression
  100.       {
  101. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(141): warning:  #12-D: parsing restarts here after previous syntax error
  102.       };
  103. ../touchgfx/gui/src/introduction_screen/introductionview.cpp(146): error:  #135: class "touchgfx::FadeAnimator<<error-type>>"  has no member "setColor"
  104.       ui.setColor(Color::getColorFrom24BitRGB(255, 0, 255));
  105. ../touchgfx/gui/src/introduction_screen/introductionview.cpp: 18 warnings, 30 errors
  106. compiling IntroductionPresenter.cpp...
  107. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(80): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  108.       FadeAnimator<MoveAnimator<LabelBox>> system;
  109. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(41): error:  #262: not a class or struct name
  110.   class FadeAnimator : public T
  111.           detected during instantiation of class "touchgfx::FadeAnimator<T> [with T=<error-type>]"  at line 80 of "../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp"
  112. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(81): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  113.       FadeAnimator<MoveAnimator<LabelBox>> model;
  114. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(82): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  115.       FadeAnimator<MoveAnimator<LabelBox>> presenter;
  116. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(83): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  117.       FadeAnimator<MoveAnimator<LabelBox>> view;
  118. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(84): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  119.       FadeAnimator<MoveAnimator<LabelBox>> ui;
  120. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(86): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  121.       FadeAnimator<MoveAnimator<TextArea>> systemText;
  122. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(87): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  123.       FadeAnimator<MoveAnimator<TextArea>> modelText;
  124. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(88): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  125.       FadeAnimator<MoveAnimator<TextArea>> presenterText;
  126. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(89): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  127.       FadeAnimator<MoveAnimator<TextArea>> viewText;
  128. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(222): error:  #276: name followed by "::" must be a class or namespace name
  129.           T::handleTickEvent();
  130.           detected during instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  131. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(252): error:  #276: name followed by "::" must be a class or namespace name
  132.                       T::setAlpha(fadeAnimationStartAlpha + deltaAlpha);
  133.           detected during:
  134.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  135.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  136. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(253): error:  #276: name followed by "::" must be a class or namespace name
  137.                       T::invalidate();
  138.           detected during:
  139.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  140.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  141. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(262): error:  #167: argument of type "touchgfx::FadeAnimator<<error-type>> *" is incompatible with parameter of type "const touchgfx::Drawable *"
  142.                       Application::getInstance()->unregisterTimerWidget(this);
  143.           detected during:
  144.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  145.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  146. ../touchgfx/gui/src/introduction_screen/introductionpresenter.cpp: 0 warnings, 14 errors
  147. compiling FrontendApplicationBase.cpp...
  148. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(80): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  149.       FadeAnimator<MoveAnimator<LabelBox>> system;
  150. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(41): error:  #262: not a class or struct name
  151.   class FadeAnimator : public T
  152.           detected during instantiation of class "touchgfx::FadeAnimator<T> [with T=<error-type>]"  at line 80 of "../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp"
  153. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(81): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  154.       FadeAnimator<MoveAnimator<LabelBox>> model;
  155. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(82): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  156.       FadeAnimator<MoveAnimator<LabelBox>> presenter;
  157. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(83): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  158.       FadeAnimator<MoveAnimator<LabelBox>> view;
  159. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(84): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  160.       FadeAnimator<MoveAnimator<LabelBox>> ui;
  161. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(86): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  162.       FadeAnimator<MoveAnimator<TextArea>> systemText;
  163. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(87): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  164.       FadeAnimator<MoveAnimator<TextArea>> modelText;
  165. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(88): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  166.       FadeAnimator<MoveAnimator<TextArea>> presenterText;
  167. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(89): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  168.       FadeAnimator<MoveAnimator<TextArea>> viewText;
  169. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(222): error:  #276: name followed by "::" must be a class or namespace name
  170.           T::handleTickEvent();
  171.           detected during instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  172. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(252): error:  #276: name followed by "::" must be a class or namespace name
  173.                       T::setAlpha(fadeAnimationStartAlpha + deltaAlpha);
  174.           detected during:
  175.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  176.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  177. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(253): error:  #276: name followed by "::" must be a class or namespace name
  178.                       T::invalidate();
  179.           detected during:
  180.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  181.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  182. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(262): error:  #167: argument of type "touchgfx::FadeAnimator<<error-type>> *" is incompatible with parameter of type "const touchgfx::Drawable *"
  183.                       Application::getInstance()->unregisterTimerWidget(this);
  184.           detected during:
  185.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  186.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  187. ../touchgfx/generated/gui_generated/src/common/frontendapplicationbase.cpp: 0 warnings, 14 errors
  188. compiling BoardConfiguration.cpp...
  189. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(80): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  190.       FadeAnimator<MoveAnimator<LabelBox>> system;
  191. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(41): error:  #262: not a class or struct name
  192.   class FadeAnimator : public T
  193.           detected during instantiation of class "touchgfx::FadeAnimator<T> [with T=<error-type>]"  at line 80 of "../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp"
  194. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(81): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  195.       FadeAnimator<MoveAnimator<LabelBox>> model;
  196. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(82): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  197.       FadeAnimator<MoveAnimator<LabelBox>> presenter;
  198. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(83): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  199.       FadeAnimator<MoveAnimator<LabelBox>> view;
  200. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(84): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  201.       FadeAnimator<MoveAnimator<LabelBox>> ui;
  202. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(86): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  203.       FadeAnimator<MoveAnimator<TextArea>> systemText;
  204. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(87): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  205.       FadeAnimator<MoveAnimator<TextArea>> modelText;
  206. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(88): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  207.       FadeAnimator<MoveAnimator<TextArea>> presenterText;
  208. ../TouchGFX/gui/include/gui/introduction_screen/IntroductionView.hpp(89): error:  #868: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
  209.       FadeAnimator<MoveAnimator<TextArea>> viewText;
  210. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(222): error:  #276: name followed by "::" must be a class or namespace name
  211.           T::handleTickEvent();
  212.           detected during instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  213. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(252): error:  #276: name followed by "::" must be a class or namespace name
  214.                       T::setAlpha(fadeAnimationStartAlpha + deltaAlpha);
  215.           detected during:
  216.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  217.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  218. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(253): error:  #276: name followed by "::" must be a class or namespace name
  219.                       T::invalidate();
  220.           detected during:
  221.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  222.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  223. ../middlewares/st/touchgfx/touchgfx/framework/include/touchgfx/mixins/FadeAnimator.hpp(262): error:  #167: argument of type "touchgfx::FadeAnimator<<error-type>> *" is incompatible with parameter of type "const touchgfx::Drawable *"
  224.                       Application::getInstance()->unregisterTimerWidget(this);
  225.           detected during:
  226.             instantiation of "void touchgfx::FadeAnimator<T>::nextFadeAnimationStep() [with T=<error-type>]"  at line 224
  227.             instantiation of "void touchgfx::FadeAnimator<T>::handleTickEvent() [with T=<error-type>]"  
  228. ../TouchGFX/target/BoardConfiguration.cpp: 0 warnings, 14 errors
  229. "Test1\Test1.axf" - 72 Error(s), 18 Warning(s).
  230. Target not created.
  231. Build Time Elapsed:  00:00:03
复制代码

多谢你的帮助,不过769discovery的例子与你的似乎相差比较大,改了一个漏掉的头文件,余下的与你的例子都不同,帮忙看看这堆错误,其中问题最大的代码文件:
  1. #ifndef INTRODUCTION_VIEW_HPP
  2. #define INTRODUCTION_VIEW_HPP

  3. #include <gui_generated/introduction_screen/IntroductionViewBase.hpp>
  4. #include <gui/introduction_screen/IntroductionPresenter.hpp>
  5. #include <gui/containers/LabelBox.hpp>
  6. #include <touchgfx/mixins/MoveAnimator.hpp>
  7. #include <touchgfx/mixins/FadeAnimator.hpp>
  8. #include <touchgfx/widgets/TextArea.hpp>

  9. class IntroductionView : public IntroductionViewBase
  10. {
  11. public:
  12.     IntroductionView();
  13.     virtual ~IntroductionView() {}
  14.     virtual void setupScreen();
  15.     virtual void tearDownScreen();

  16.     virtual void handleClickEvent(const ClickEvent& evt);
  17.     virtual void handleGestureEvent(const GestureEvent& evt);
  18.     virtual void handleDragEvent(const DragEvent& evt);
  19.     virtual void handleKeyEvent(uint8_t key);
  20. private:
  21.     typedef enum
  22.     {
  23.         STATE_INTRODUCTION = 0,
  24.         STATE_INTRODUCTION_WITH_MVP,
  25.         STATE_MVP_UI_AND_SYSTEM,
  26.         STATE_MVP_DESCRIPTION_1,
  27.         STATE_MVP_DESCRIPTION_2,
  28.         STATE_MVP_DESCRIPTION_3,
  29.         STATE_MVP_DESCRIPTION_4,
  30.         STATE_OUTPUT_TO_SYSTEM,
  31.         STATE_OUTPUT_CODE_1,
  32.         STATE_OUTPUT_CODE_2,
  33.         STATE_OUTPUT_CODE_3,
  34.         STATE_OUTPUT_CODE_4,
  35.         STATE_INPUT_FROM_SYSTEM,
  36.         STATE_INPUT_CODE_1,
  37.         STATE_INPUT_CODE_2,
  38.         STATE_INPUT_CODE_3,
  39.         STATE_INPUT_CODE_4,
  40.         STATE_DEMO,
  41.         NUMBER_OF_STATES
  42.     } StateId;

  43.     typedef struct
  44.     {
  45.         int16_t x;
  46.         int16_t y;
  47.         uint8_t alpha;
  48.     } ElementConfiguration;

  49.     typedef struct
  50.     {
  51.         int16_t x;
  52.         int16_t y;
  53.         uint8_t alpha;
  54.         TypedTextId textId;
  55.     } TextConfiguration;

  56.     typedef struct
  57.     {
  58.         ElementConfiguration ui;
  59.         ElementConfiguration view;
  60.         ElementConfiguration presenter;
  61.         ElementConfiguration model;
  62.         ElementConfiguration system;
  63.         TextConfiguration viewText;
  64.         TextConfiguration presenterText;
  65.         TextConfiguration modelText;
  66.         TextConfiguration systemText;
  67.         TextConfiguration headlineText;
  68.         uint8_t duration;
  69.     } State;

  70.     void go(bool forward);
  71.     void gotoState(StateId id);

  72.     FadeAnimator<MoveAnimator<LabelBox>> system;
  73.     FadeAnimator<MoveAnimator<LabelBox>> model;
  74.     FadeAnimator<MoveAnimator<LabelBox>> presenter;
  75.     FadeAnimator<MoveAnimator<LabelBox>> view;
  76.     FadeAnimator<MoveAnimator<LabelBox>> ui;

  77.     FadeAnimator<MoveAnimator<TextArea>> systemText;
  78.     FadeAnimator<MoveAnimator<TextArea>> modelText;
  79.     FadeAnimator<MoveAnimator<TextArea>> presenterText;
  80.     FadeAnimator<MoveAnimator<TextArea>> viewText;

  81.     State states[NUMBER_OF_STATES];
  82.     StateId currentStateId;

  83.     bool gesture;
  84. };

  85. #endif // INTRODUCTION_VIEW_HPP
复制代码





renzg 回答时间:2019-3-4 21:48:22
本帖最后由 renzg 于 2019-3-4 23:40 编辑

新手路过学习
ldptest 回答时间:2019-3-8 16:08:11
新版的终于支持中文目录了。
butterflyspring 回答时间:2019-3-15 17:41:05
目前这个版本看起来没有以前那么方便,通过朋友向ST反映一下,希望下一版能更好一些。 不过有工程师在
cubemx 生成代码前,先用designer 生成CODE,再用CUBEMX 生成项目。当然,用之前的版本也可以试试。
另外,我这边直接打开STM32F769I Dscovery 的例程编译是正常的哦

评分

参与人数 1蝴蝶豆 +2 收起 理由
STMCU + 2

查看全部评分

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
微信公众号二维码 微信公众号
手机版二维码 手机版