Hello,
We are trying to work through a compile error that we receive when attempting to build any software project setup using Qt Creator.
We have used the Toradex detailed documentation available on developer.toradex.com to build everything necessary to generate an embedded Linux OS system image installer from the source files that Toradex provides on their Git server located at: git.toradex.com. We have also successfully downloaded the image that we built to the Colibri i.MX7D board and it works great. The image is copied from our SD Card to NAND and it loads from NAND just fine. To do this we used the following document provided on developer.toradex.com:
We have also used the following document located on developer.toradex.com to setup Qt Creator to cross compile for our embedded Linux image:
After following this document we have attempted to build a number of the example projects that Qt Creator provides for a Generic Linux Device. On some of the user interface example projects we see errors regarding openGL when attempting a build. I thought I remember reading somewhere that the image Toradex supplies provides OpenGL support. Is this an additional component that we need to build into the SDK used by Qt Creator that is not mentioned in the Qt Creator cross-compile document above?
We also notice that when building some of the non user interface based projects that there are warnings which appear related to incompatible libraries. After searching online we discovered that this is not likely an issue that would prevent us from running applications on the embedded Linux installed on our Colibri i.MX7D board since the correct libraries appear to be found as there are no errors related to this. We would like to figure out how to resolve these warnings at some point.
We do have one error though that, so far, we have not been able to figure out. The error is: “undefined reference to ‘qt_version_tag’”. We have researched this online and there are some forums that mention changes which can be made to a CMakeLists.txt file. Unfortunately, there are hundreds of these files throughout folders in our OpenEmbedded build of the embedded Linux OS. This error message isn’t specific enough to determine where the problem is located. Does anyone know what the problem might be?
I have attached some screen images of the steps we’ve taken to setup the Qt Creator project that we are building. There is also a screen image of the warnings and errors that I’m referring to above. We are developing a Qt Quick Application as a test.
We did try and setup the Qt Creator environment using the document, which talks about using Qt Creator 3.0. The problem with this is that we cannot establish a connection to the Colibri i.MX7D board using our private network through Qt Creator 3.0. In order to make that work we had to use our already installed Qt Creator 4.0.2.
We do have a toolchain installed on our host Ubuntu Linux OS, for another one of our products that also runs a, different, version of embedded Linux. This toolchain is also available in Qt Creator 4.0.2. We don’t know if it’s possible that somewhere there is a problem with improper referencing between the toolchains installed and this is causing the problem, but so far we have been unable to resolve this issue and successfully build an application for our embedded Linux.
Also, when we follow these directions in the cross-compile document:
“Note: With Qt 5.7 from OpenEmbedded Morty release (BSP version 2.7 Beta1 and later) require Qt mkspec to be set as follows /usr/local/oecore-x86_64/sysroots/armv7at2hf-neon-angstrom-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ Note: When using Qt Embedded, you may want to switch to the “Run” configuration and add the argument “-qws” to the binary as standalone (instead using the Qt for Embedded Linux server).”
The Tools->Options window displays an error symbol next to our kit and we cannot begin a compilation of our project.
Any help that anyone can provide to resolve this issue so that we can start successfully building applications would be greatly appreciated.
Thank You