Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Can't build Qt 4.8.5 for DM365 (ARM 9)



  • I'm trying to build Qt 4.8.5 using this qmake.conf:
    @#

    qmake configuration for building with arm-none-linux-gnueabi-g++

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

    modifications to g++.conf

    QMAKE_CFLAGS_RELEASE = -03 -march=armv5te
    QMAKE_CXXFLAGS_RELEASE = -03 -march=armv5te
    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)@

    And here are my configure script arguments:
    @./configure -v -embedded arm
    -prefix /opt/qt-4.8.5
    -platform /qws/linux-x86_64-g++
    -xplatform /qws/linux-dm365-g++
    -depths 16,24,32
    -no-mmx -no-3dnow -no-sse -no-sse2
    -no-cups -no-largefile -no-accessibility
    -no-gtkstyle
    -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc
    -no-qt3support
    -no-webkit
    -no-openssl
    -nomake demos
    -nomake examples
    -shared
    -release
    -no-largefile
    -no-phonon
    -no-svg
    -no-opengl
    -fast
    -little-endian -host-little-endian
    -nomake docs
    -opensource -confirm-license
    -nomake tools@

    When i try to execute configure script, I get errors like this:
    @/usr/bin/ld: project.o: Relocations in generic ELF (EM: 40)
    project.o: error adding symbols: File in wrong format
    collect2: error: ld returned 1 exit status
    @


Log in to reply