This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Configuring and Building Qt 4.7.0 and QWS for cross-compile on TMDXEVM3730

Other Parts Discussed in Thread: DM3730

Hello,

I have a TI dm3730 evaluation board (by Mistral). I am using the recommended Ubuntu host environment and can cross-compile the simple examples and have written some custom makefiles and code myself, so I know the development environment is good.

A question I hope someone can help me with: the dev kit comes with Qt 4.6.2, but would  like to use 4.7.0. I am having difficultly configuring and cross-compiling it (I can compile and use 4.7.0  for the native Ubuntu host just fine).

 

If I do this:

  1. source ${DVSDK}/linux-devkit/environment-setup
  2. cd into the Qt 4.7.0 directory
  3. ./configure -hostprefix -embedded arm -xplatform qws/linux-arm-gnueabi-g++ -qvfb -opensource -release
  4. answer yes to the license

then the resulting compile dies here:

arm-none-linux-gnueabi-g++ -c -o qfsfileengine_iterator_unix.o -pipe   -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/opt/tools_src/qt-everywhere-opensource-src-4.7.0/include -I/opt/tools_src/qt-everywhere-opensource-src-4.7.0/include/QtCore -I/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/global -I/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/xml -I/opt/tools_src/qt-everywhere-opensource-src-4.7.0/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/home/jgraham/ti-dvsdk_dm3730-evm_4_00_00_17/linux-devkit//arm-none-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  /opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/io/qfsfileengine_iterator_unix.cpp
/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/io/qfsfileengine_iterator_unix.cpp:61: error: ISO C++ forbids declaration of 'QT_DIR' with no type
/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/io/qfsfileengine_iterator_unix.cpp:61: error: expected ';' before '*' token
/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/io/qfsfileengine_iterator_unix.cpp:62: error: ISO C++ forbids declaration of 'QT_DIRENT' with no type
/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/io/qfsfileengine_iterator_unix.cpp:62: error: expected ';' before '*' token
/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/io/qfsfileengine_iterator_unix.cpp:67: error: ISO C++ forbids declaration of 'QT_DIRENT' with no type
/opt/tools_src/qt-everywhere-opensource-src-4.7.0/src/corelib/io/qfsfileengine_iterator_unix.cpp:67: error: expected ';' before '*' token

 

The macro QT_DIR is defined in qplatformdefs.h, which is #included is the file qfsfileengine_iterator_unix.cpp.  So perhaps the problem is that I am pointing to the wrong mkspecs directory?

 

Thanks,
JEG