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.

Linux/AM3354: Linux/AM3354

Part Number: AM3354

Tool/software: Linux

Platform:

Ubuntu Linux 14.04

AM3354

ti-processor-sdk-linux-am335x-evm-02.00.02.11

qt-everywhere-opensource-src-5.5.0

I want to porting QT5.5.0 to AM3354(User Board).

1. /home/lee/qt-everywhere-opensource-src-5.5.0/qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

QT_QPA_DEFAULT_PLATFORM = linuxfb
QT_INSTALL_DIR = /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase
COMPILER_FLAGS += -o3 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard
QMAKE_CFLAGS_RELEASE += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard
QMAKE_CXXFLAGS_RELEASE += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard

# modifications to g++.conf
QMAKE_CC                = arm-linux-gnueabihf-gcc
QMAKE_CXX               = arm-linux-gnueabihf-g++
QMAKE_LINK              = arm-linux-gnueabihf-g++
QMAKE_LINK_SHLIB        = arm-linux-gnueabihf-g++

# modifications to linux.conf
QMAKE_AR                = arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY           = arm-linux-gnueabihf-objcopy
QMAKE_NM                = arm-linux-gnueabihf-nm -P
QMAKE_STRIP             = arm-linux-gnueabihf-strip
load(qt_config)

2. ./home/lee/qt-everywhere-opensource-src-5.5.0/configure

./configure -release \
    -opensource \
    -confirm-license \
    -optimized-qmake \
    -platform linux-g++ \
    -xplatform linux-arm-gnueabi-g++ \
    -prefix /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase \
    -pch \
    -qt-libjpeg \
    -qt-libpng \
    -qt-zlib \
    -qt-sql-sqlite \
    -qreal float \
    -linuxfb \
    -no-evdev \
    -no-egl \
    -no-eglfs \
    -no-opengl \
    -no-directfb \
    -no-sql-db2 \
    -no-sql-ibase \
    -no-sql-mysql \
    -no-sql-oci \
    -no-sql-odbc \
    -no-sql-psql \
    -no-sql-sqlite2 \
    -no-sql-tds \
    -no-xcb \
    -no-xcb-xlib \
    -no-icu \
    -no-c++11 \
    -no-cups \
    -no-iconv \
    -no-android-style-assets \
    -make libs \
    -nomake examples \
    -nomake tests \

/home/lee/ti-processor-sdk-linux-am335x-evm-02.00.02.11/linux-devkit/sysroots/cortexa8hf-vfp-neon-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory
 # include <gnu/stubs-soft.h>
                             ^
compilation terminated.
make: *** [project.o] Error 1
[linux-devkit]:~/qt-everywhere-opensource-src-5.5.0>

  • Hello,

    Please check this thread:
    e2e.ti.com/.../581668

    Hope this helps.

    BR
    Margarita
  • Thanks for your reply.

    I used "touch" command, then

    <built-in>:0:0: note: this is the location of the previous definition
    In file included from /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase/include/QtCore/qglobal.h:1:0,
    from /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase/mkspecs/linux-g++/qplatformdefs.h:39,
    from /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase/src/corelib/io/qfsfileengine_p.h:48,
    from /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase/src/corelib/io/qfsfileengine.cpp:34:
    /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:703:121: error: invalid application of ‘sizeof’ to incomplete type ‘QStaticAssertFailure<false>’
    enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)}
    ^
    /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:708:47: note: in expansion of macro ‘Q_STATIC_ASSERT’
    #define Q_STATIC_ASSERT_X(Condition, Message) Q_STATIC_ASSERT(Condition)
    ^
    /home/jack/qt-everywhere-opensource-src-5.5.0/qtbase/src/corelib/io/qfsfileengine.cpp:83:1: note: in expansion of macro ‘Q_STATIC_ASSERT_X’
    Q_STATIC_ASSERT_X(sizeof(SignedIOType) == sizeof(UnsignedIOType),
    ^
    make: *** [qfsfileengine.o] Error 1
    [linux-devkit]:~/qt-everywhere-opensource-src-5.5.0>