2025-03-04 3:33 AM
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 ...
2025-03-04 4:19 AM
Hello @JohnSkeldon,
Can you try to check "MoveAnimator" in your textClock element ?
BR,
2025-03-04 4:20 AM
yes ... i did that as well
2025-03-04 4:46 AM
Please use formatting
No specific language (for instance terminal output):
A programming specific language (such as C/C++):
2025-03-04 6:19 AM
Sorry
2025-03-04 6:36 AM
Did you tried to delete the generated folder and also the middleware/st folder ?
BR,
2025-03-04 6:44 AM
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 ?
2025-03-04 6:44 AM
Yes you can zip it, so I take a look
2025-03-04 6:49 AM
2025-03-04 7:05 AM
No worries, we all start somewhere :)
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,