I'm getting this weird runtime crash when instantiating QVariantAnimation or QPropertyAnimation. It appears this happens when the program doesn't link appropriately the class. But I have double checked my simple project and can't see anything wrong.

Qt Code:
  1. #include <QtCore/QVariantAnimation>
  2. #include <QtCore/QEasingCurve>
  3.  
  4. class MyAnimacion : public QVariantAnimation {
  5. public:
  6. MyAnimacion() : QVariantAnimation() {}
  7. ~MyAnimacion(){}
  8. void updateCurrentValue( const QVariant & value ) {}
  9. };
  10. int main() {
  11. MyAnimacion myAnimacion;
  12. return 0;
  13. }
To copy to clipboard, switch view to plain text mode 

In Eclipse:
Qt Include Directory: /home/user/DEV/SDK/QtSDK/qt/include
Qt Link Directory: /home/user/DEV/SDK/QtSDK/qt/lib
Link Library: QtCore

Qt Code:
  1. make all
  2. Building file: ../src/AnimationTest.cpp
  3. Invoking: GCC C++ Compiler
  4. g++ -I/home/user/DEV/SDK/QtSDK/qt/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/AnimationTest.d" -MT"src/AnimationTest.d" -o"src/AnimationTest.o" "../src/AnimationTest.cpp"
  5. Finished building: ../src/AnimationTest.cpp
  6.  
  7. Building target: AnimationTest
  8. Invoking: GCC C++ Linker
  9. g++ -L/home/user/DEV/SDK/QtSDK/qt/lib -o"AnimationTest" ./src/AnimationTest.o -lQtCore
  10. Finished building target: AnimationTest
To copy to clipboard, switch view to plain text mode 

Runtime Crash:
Qt Code:
  1. ../AnimationTest: symbol lookup error: ../AnimationTest: undefined symbol: _ZN17QVariantAnimationC2EP7QObject
To copy to clipboard, switch view to plain text mode 

I don't know if QVariantAnimation is restricted to QtGui, I'm trying to use it to manually update the position of stuff in my game with the keyValueAt method.