[CLOSED] help with using Qt 5.3.0 REALLY CONFUSED!
-
I have just started trying to learn using Qt for embedded Linux development and I am trying to run the provided examples and demos by QT on the TI Sitara AM335x board from Qt Creator. I used the online installer to install Qt on Ubuntu and then using the documentation provided on TI http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT I have managed to establish remote connection with Sitara and run a basic hello world program and webview using tabs as documented in the link.
While trying to run the sample demos or examples provided , i configure the projects with the same settings I used for the above projects. On building and deployment they never seem to run. One of the errors was - /home/siddarth/Qt/Examples/Qt-5.3/widgets/widgets/calculator/button.cpp:41: error: QtWidgets: No such file or directory
I copied the QTWidgets folder from the lib in the QTfolder to the libraries in qtopia folder in Ti Sitara location that were being used by GDB and the GCC. I also copied the QT Core fodler but now I am getting the error - /opt/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/usr/include/qtopia/QtCore/qglobal.h:1030: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
Can someone please help me as to what i am doing wrong!?
[andreyc EDIT] Please do not duplicate the questions. I've closed this one.
See http://qt-project.org/forums/viewthread/43969/