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.

AM37x Linux SDK configuration with Qt Creator 3.5.1

Hi,

I install Qt Creator 3.5.1 (opensource) and ti-sdk-am37x-evm-06. Does anyone knows how to configure QT version, compilers and kits?

I red QT_TI_AM37_EVM_SDK_CONFIG.pdf but I amgetting error that says;

Failed to set up kit for Qbs: Could not determine whether Qt is a static build.

Cannot read /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/mkspecs/default/qmake.conf: No such file or directory

Could not read qmake configuration file /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/mkspecs/default/qmake.conf.

 

Kind Regards

  • Hi,

    I will ask the software team to check this.
  • Thank you, I will wait the answer...

  • Hi Niyazi,

    The error messages due to incorrect configuration of path to qmake.conf file. I suggest you to search in your file system where the qmake.conf file is placed and correct the path.
    Also check all path configurations on the QtCreator menu Tools->Options.

    BR
    Tsvetolin Shulev
  • Hi,

    Thank you. When I search I find 322 qmake.conf files. Example:
    /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/armv7ahf-vfp-neon-2.6.33-oe-linux-gnueabi/usr/share/qtopia/mkspecs/aix-g++
    /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/armv7ahf-vfp-neon-2.6.33-oe-linux-gnueabi/usr/share/qtopia/mkspecs/aix-g++-64
    /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/armv7ahf-vfp-neon-2.6.33-oe-linux-gnueabi/usr/share/qtopia/mkspecs/unsupported/win32-g++-cross

    In e2e.ti.com/.../469761 I post the images of my QT configurations on the QtCreator menu Tools->Options.

    I also download the “QT_TI_AM37_EVM_SDK_CONFIG.pdf” from TI website. Follow the steps and I get an error that says as shown below:
    Cannot read /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/mkspecs/default/qmake.conf: No such file or directory

    In my /ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin folder I have as shown below:

    ntms@ubuntu:~$ cd /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin
    ntms@ubuntu:~/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin$ ls
    arm-linux-gnueabihf-addr2line arm-linux-gnueabihf-ld.gold openssl
    arm-linux-gnueabihf-ar arm-linux-gnueabihf-nm opkg-cl
    arm-linux-gnueabihf-as arm-linux-gnueabihf-objcopy opkg-key
    arm-linux-gnueabihf-c++filt arm-linux-gnueabihf-objdump pkg-config
    arm-linux-gnueabihf-cpp arm-linux-gnueabihf-ranlib qdbuscpp2xml
    arm-linux-gnueabihf-g++ arm-linux-gnueabihf-readelf qdbuscpp2xml4
    arm-linux-gnueabihf-gcc arm-linux-gnueabihf-size qdbusxml2cpp
    arm-linux-gnueabihf-gcc-4.7.3 arm-linux-gnueabihf-strings qdbusxml2cpp4
    arm-linux-gnueabihf-gcc-ar arm-linux-gnueabihf-strip qmake
    arm-linux-gnueabihf-gcc-nm i686-arago-linux-libtool qmake2
    arm-linux-gnueabihf-gcc-ranlib libtoolize qt.conf
    arm-linux-gnueabihf-gcov lrelease rcc
    arm-linux-gnueabihf-gdb lrelease4 rcc4
    arm-linux-gnueabihf-gprof lupdate uic
    arm-linux-gnueabihf-ld lupdate4 uic3
    arm-linux-gnueabihf-ld.bfd moc uic34
    arm-linux-gnueabihf-ldd moc4 uic4
    ntms@ubuntu:~/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin$

    But there isn’t any “mkspecs/default/qmake.conf” files.

    Kind Regards,
  • Niyazi,

    Probably if you are using 64-bit Ubuntu you have missed to install 32-bit libraries needed by the Sitara SDK. On the linked below article you can use a corresponding command depending on the your Ubuntu version:
    processors.wiki.ti.com/.../Sitara_Linux_SDK_64_Bit_Ubuntu_Support

    BR
    Tsvetolin Shulev
  • Hi Cvetolin,

    Ubuntu 14.04 64-bit
    Run the below command to install the required 32-bit libraries needed by the Sitara SDK and Code Composer Studio v6.0
    sudo apt-get install libc6:i386

    In (e2e.ti.com/.../1688021 I get similar reply. And I ask a question what else now?

    Kind Regards,
  • Could you post the output of this command?
    /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -v
  • Hi Kemal,

    Yesterday I was talking the problem on Ubuntu 14.04. This morning my Ubuntu 14.04 crashed. So I am using now Ubuntu 12.04 that has same setting such as using same TI sdk and QT version. I did what you ask for ın thıs machıne and here is the result:

    ntms@ubuntu:~$ /home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc -v
    Using built-in specs.
    COLLECT_GCC=/home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf-gcc
    COLLECT_LTO_WRAPPER=/home/ntms/ti-sdk-am37x-evm-06.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../libexec/gcc/arm-linux-gnueabihf/4.7.3/lto-wrapper
    Target: arm-linux-gnueabihf
    Configured with: /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/gcc-linaro-4.7-2013.03/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install --with-sysroot=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-languages=c,c++,fortran --enable-multilib --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3-d16 --with-float=hard --with-pkgversion='crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03' --with-bugurl=bugs.launchpad.net/gcc-linaro --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --with-gmp=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpfr=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-mpc=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-ppl=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-cloog=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-libelf=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static --with-host-libstdcxx='-L/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/arm-linux-gnueabihf/build/static/lib -lpwl' --enable-threads=posix --disable-libstdcxx-pch --enable-linker-build-id --enable-gold --with-local-prefix=/cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/install/arm-linux-gnueabihf/libc --enable-c99 --enable-long-long --with-mode=thumb
    Thread model: posix
    gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03)

    ntms@ubuntu:~$

     

    Kind Regards

     

  • The compiler is functional. You should be able to successfully configure and compile you Qt application now.
  • Hi Kemal,

    No luck. I re created clean Ubuntu 14.01 64 bit. This time I install qt-opensource-linux-x86-5.4.1.run (instead of 5.5.1). Then I install ti-sdk-am37x-06.00.00.00-Linux-x86-Install.bin. First I learn that my 64bit Ubuntu doesn’t have some 32-bit libraries. So I came again this post and red what you said it me before for installing those 32-bit libraries then I install the ti-sdk-am37x-06.

    Than I also receive a mail from ACS HK. (ACR890 Pos Termianl SDK) and they wrote to me that "... the latest toolchain provided by TI actually cannot be used for current version of ACR890". So they send me a "5003-acr890-linux-devkit.zip" toolchain. I unzip the toolchain and copy it to /home/ntms/linux-devkit. But I dont know how to use this toolchain with QT 5.4.1. Could you hel me please how to configure my QT using 5003-acr890-linux-devkit tollchain.

    Here is my toolchain folder.
    ----------------------------------------------------------------------------------------------------------
    ntms@ubuntu:~$ cd /home/ntms/linux-devkit
    ntms@ubuntu:~/linux-devkit$ ls
    arm-arago-linux-gnueabi include share
    bin lib site-config-armv7a-vfp-neon-oe-linux-gnueabi
    environment-setup libexec var
    etc mkspecs version-armv7a-vfp-neon-oe-linux-gnueabi
    i686-linux sbin
    ntms@ubuntu:~/linux-devkit$ ^C
    ntms@ubuntu:~/linux-devkit$
    ------------------------------------------------------------------------------------------------------------


    And here is my environment-setup file:

    SDK_PATH="/home/ken/ti-sdk-am37x-evm-05.07.00.00/linux-devkit"
    if [ -z "$ZSH_NAME" ] && [ "x$0" = "x./environment-setup" ]; then
    echo "Error: This script needs to be sourced. Please run as \". ./environment-setup\""
    exit 1
    else
    if [ -n "$BASH_SOURCE" ]; then
    SDK_PATH="`dirname $BASH_SOURCE`"
    fi
    SDK_PATH=`readlink -f "$SDK_PATH"`
    export SDK_PATH=/home/ken/ti-sdk-am37x-evm-05.07.00.00/linux-devkit
    fi
    export TARGET_SYS=arm-arago-linux-gnueabi
    export TARGET_PREFIX=$TARGET_SYS-
    export PATH=$SDK_PATH/bin:$PATH
    export CPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH
    export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS
    export PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS/usr/lib/pkgconfig
    export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
    export CONFIG_SITE=$SDK_PATH/site-config
    export CC=${TARGET_PREFIX}gcc
    export CXX=${TARGET_PREFIX}g++
    export GDB=${TARGET_PREFIX}gdb
    export CPP="${TARGET_PREFIX}gcc -E"
    export NM=${TARGET_PREFIX}nm
    export AS=${TARGET_PREFIX}as
    export AR=${TARGET_PREFIX}ar
    export RANLIB=${TARGET_PREFIX}ranlib
    export OBJCOPY=${TARGET_PREFIX}objcopy
    export OBJDUMP=${TARGET_PREFIX}objdump
    export STRIP=${TARGET_PREFIX}strip
    export CONFIGURE_FLAGS="--target=$TARGET_SYS --host=$TARGET_SYS --build=i686-linux --with-libtool-sysroot=$SDK_PATH/$TARGET_SYS"
    export CPPFLAGS=" -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=$SDK_PATH/$TARGET_SYS"
    export CFLAGS="$CPPFLAGS"
    export CXXFLAGS="$CPPFLAGS"
    export LDFLAGS=" --sysroot=$SDK_PATH/$TARGET_SYS"
    export OECORE_NATIVE_SYSROOT=$SDK_PATH
    export OECORE_TARGET_SYSROOT=$SDK_PATH/$TARGET_SYS
    export OECORE_ACLOCAL_OPTS="-I $SDK_PATH/usr/share/aclocal"
    export OECORE_DISTRO_VERSION="2013.02"
    export OECORE_SDK_VERSION="2013.02"
    export OE_QMAKE_CFLAGS="$CFLAGS"
    export OE_QMAKE_CXXFLAGS="$CXXFLAGS"
    export OE_QMAKE_LDFLAGS="$LDFLAGS"
    export OE_QMAKE_CC=$CC
    export OE_QMAKE_CXX=$CXX
    export OE_QMAKE_LINK=$CXX
    export OE_QMAKE_AR=$AR
    export OE_QMAKE_LIBDIR_QT=$SDK_PATH/$TARGET_SYS/usr/lib
    export OE_QMAKE_INCDIR_QT=$SDK_PATH/$TARGET_SYS/usr/include/qtopia
    export OE_QMAKE_MOC=$SDK_PATH/bin/moc4
    export OE_QMAKE_UIC=$SDK_PATH/bin/uic4
    export OE_QMAKE_UIC3=$SDK_PATH/bin/uic34
    export OE_QMAKE_RCC=$SDK_PATH/bin/rcc4
    export OE_QMAKE_QDBUSCPP2XML=$SDK_PATH/bin/qdbuscpp2xml4
    export OE_QMAKE_QDBUSXML2CPP=$SDK_PATH/bin/qdbusxml2cpp4
    export OE_QMAKE_QT_CONFIG=$SDK_PATH/$TARGET_SYS/usr/share/qtopia/mkspecs/qconfig.pri
    export OE_QMAKE_STRIP="echo"
    export QMAKESPEC=$SDK_PATH/$TARGET_SYS/usr/share/qtopia/mkspecs/linux-g++
    export PS1="\[\e[32;1m\][linux-devkit]\[\e[0m\]:\w> "



    Kind Regards,
  • Use the existing settings in linux-devkit as a reference and setup your new tool-chain accordingly. Then you can follow the same steps as in hand on with Qt labs.
  • Hi Niyazi,
    can you please share me 5003-acr890-linux-devkit.zip?
    Regards
    Azhar (azhar_iiee@yahoo.com)
  • Hi,

    I don't have acr890-linux-devkit. I have only "ti-sdk-am37x-evm-05.07.00.00-Linux-x86-Install" and you can download from TI web side its free.

    Kind Regards