cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Tutorial 3 , compile grief

JohnSkeldon
Associate II

if (!textClock.isMoveAnimationRunning()) .. fails 

after following the tutorial i receive ..

Compile
make -f simulator/gcc/Makefile -j8
Reading ./application.config
Reading ./target.config
Compiling gui/src/screen2_screen/Screen2View.cpp
Compiling generated/texts/src/TypedTextDatabase.cpp
gui/src/screen2_screen/Screen2View.cpp: In member function 'virtual void Screen2View::handleTickEvent()':
gui/src/screen2_screen/Screen2View.cpp:63:20: error: 'class touchgfx::TextArea' has no member named 'isMoveAnimationRunning'
if (!textClock.isMoveAnimationRunning())
^~~~~~~~~~~~~~~~~~~~~~
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/screen2_screen/Screen2View.o' failed
make[2]: *** [build/MINGW32_NT-6.2/gui/src/screen2_screen/Screen2View.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [generate_assets] Error 2
generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
simulator/gcc/Makefile:32: recipe for target 'all' failed
make: *** [all] Error 2
Failed
Failed

i've added #include <touchgfx/mixins/MoveAnimator.hpp> to screen2view.cpp as well .. 

I'm new to this so unsure what or where the problem is ? 

i've read the documentation and .. "isMoveAnimationRunning" can be found .. 

anyone shed any light please ... 

 

 

 

9 REPLIES 9
LouisB
ST Employee

Hello @JohnSkeldon,

Can you try to check "MoveAnimator" in your textClock element ?

BR,

Louis BOUDO
ST Software Developer | TouchGFX

yes ... i did that as well 

Please use formatting

No specific language (for instance terminal output):

unsigned_char_array_0-1741092281956.png

A programming specific language (such as C/C++):

unsigned_char_array_1-1741092366689.png

 

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Sorry 

LouisB
ST Employee

Did you tried to delete the generated folder and also the middleware/st folder ?

BR,

Louis BOUDO
ST Software Developer | TouchGFX

deleted both , re-made code . tried to compile ,,

same error .. TextArea has no member named 'isMoveAnimationRunning'.

is it worth me zipping the progect up and letting someone have a look at it ? 

LouisB
ST Employee

Yes you can zip it, so I take a look

Louis BOUDO
ST Software Developer | TouchGFX
JohnSkeldon
Associate II

i am new to this .. i'm use to embedded 'c' , its been ages since i looked at C++ so its something obvious. so my appologies if i've made some *** mistake . So sorry and thank you.  I'm happy for you to message me privately (saves filling the message board up ) 

 

John

LouisB
ST Employee

No worries, we all start somewhere :)

LouisB_0-1741100166856.png

In Screen2View, you shouldnt have these lines. They are already created in Screen2ViewBase, and textClock shadows the one from Screen2ViewBase, that's why you have the error.

The Screen2ViewBase is the base class of your screen that has been generated by TouchGFX. When you create a widget to your screen and regenerate it's automatically added to that class. More information here : UI Development Introduction | TouchGFX Documentation.

If you are new to TouchGfx, I highly recommend you to check the documentation and also the tutorials.

I hope it helps,

BR,

Louis BOUDO
ST Software Developer | TouchGFX