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.

MIDAS2.0 Qt build failure

Other Parts Discussed in Thread: MIDAS

Hi,

I am trying to setup  MIDAS 2.0 build environment in my machine.

I am following the procedures in the link MIDAS_2.0.

http://processors.wiki.ti.com/index.php/MIDAS_Ultrasound_v2.0_Demo#PSP_and_DVSDK.C2.A0Setup

I have completed all the steps except "QT Setup" section.

     

t Libraries

1. Download the Qt libraries 4.6.2 for embedded Linux from here, save it in ~, and extract the source as:

host $ cd ~
host $ gunzip qt-everywhere-opensource-src-4.6.2.tar.gz
host $ tar xvf qt-everywhere-opensource-src-4.6.2.tar

2. Important: Ensure that Qt uses the host g++ for compiling the Qt libraries. To do this, check your ~/.bashrc file to ensure that CC, CXX variables are not set for cross-compile, i.e. comment any custom definitions as below if present by adding the # sign, as:

#export CC=~/toolchain/arm-2009q1/bin/arm-none-linux-gnueabi-gcc
#export CXX=~/toolchain/arm-2009q1/bin/arm-none-linux-gnueabi-g++

   Run the following command to reset paths. 

host $ source ~/.bashrc

   It is recommended that you close this command window and open a new one before proceeding to ensure environment variables have been picked up.
   NOTE: If you see an error with this please see Gotcha 1 for a common mistake in this step.

3. Edit ~/qt-everywhere-opensource-src-4.6.2/mkspecs/common/linux.conf and add the “-lts” option to QMAKE_LIBS_THREAD as:

QMAKE_LIBS_THREAD     = -lpthread -lts

4. Create an omap3 qmake configuration as follows:

host $ cd ~/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/
host $ cp -r ./linux-arm-g++ ./linux-omap3-g++
host $ gedit ./linux-omap3-g++/qmake.conf

    Replace the text in qmake.conf with the following. Make sure to change <username> as per your host:

# qmake configuration for building with arm-linux-g++

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf

# To include ts-lib
QMAKE_INCDIR += /home/<username>/workdir/filesys/include
QMAKE_LIBDIR += /home/<username>/workdir/filesys/lib

#Compiler Flags to take advantage of the ARM architecture
QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
QMAKE_CXXFLAGS_RELEASE= -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
QMAKE_CC = arm-none-linux-gnueabi-gcc
QMAKE_CXX = arm-none-linux-gnueabi-g++
QMAKE_LINK = arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = arm-none-linux-gnueabi-g++

# modifications to linux.conf
QMAKE_AR = arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-none-linux-gnueabi-objcopy
QMAKE_STRIP = arm-none-linux-gnueabi-strip

load(qt_config)

5. Configure qmake and build Qt libraries. 

host $ cd ~/qt-everywhere-opensource-src-4.6.2
host $ ./configure -prefix /opt/qt -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-omap3-g++ -depths 16,24,32 \ -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc \ -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -qt-mouse-tslib
host $ make
host $ make install INSTALL_ROOT=/home/<username>/workdir/filesys
                         

 I'm trying this command

host $ ./configure -prefix /opt/qt -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-omap3-g++ -depths 16,24,32 \ 
-no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc \ 
-qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -qt-mouse-tslib

blow the error message.

won@ubuntu:~/qt-everywhere-opensource-src-4.6.4$ ./configure -prefix /opt/qt -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-omap3-g++ -depths 16,24,32 \
> -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc \
> -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -qt-mouse-tslib
Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

o


You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies


This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license? yes

Creating qmake. Please wait...
make: Nothing to be done for `first'.
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
/home/won/qt-everywhere-opensource-src-4.6.4/config.tests/unix/compile.test: line 69: /home/won/qt-everywhere-opensource-src-4.6.4/bin/qmake: cannot execute binary file
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/home/won/qt-everywhere-opensource-src-4.6.4/mkspecs//qws/linux-omap3-g++.

won@ubuntu:~/qt-everywhere-opensource-src-4.6.4$

How can I correct this error.

Please share your thoughts on this issue.

Thanks in advance,