Cross Compilation for mipsel (ingenic jz4760).

  • Hello!
    I use the host system OpenSuSE 12.3 64 bits.
    I want to make Qt for the device on mipsel.
    I downloaded and installed toolchain for mipsel. This works.
    I downloaded qt-everywhere-opensource-src-4.8.4.
    Unpacked. Created qmake.conf :

    qmake configuration for building with mipsel-linux-g++


    modifications to g++.conf

    QMAKE_CC = mipsel-linux-gcc
    QMAKE_CXX = mipsel-linux-g++
    QMAKE_CFLAGS += -mips32
    QMAKE_CXXFLAGS += -mips32
    QMAKE_LINK = mipsel-linux-g++
    QMAKE_LINK_SHLIB = mipsel-linux-g++
    QMAKE_INCDIR = /opt/mipseltools-gcc412-glibc261/include
    QMAKE_LIDDIR = /opt/mipseltools-gcc412-glibc261/lib

    modifications to linux.conf

    QMAKE_AR = mipsel-linux-ar cqs
    QMAKE_OBJCOPY = mipsel-linux-objcopy
    QMAKE_STRIP = mipsel-linux-strip


    Has configured:
    @./configure -opensource -no-multimedia -no-openssl -no-webkit -no-qt3support -no-phonon -no-phonon-backend -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -silent -xplatform qws/linux-mipsel-g++ -embedded mips -little-endian -qt-freetype -depths 4 -qvfb -qt-gfx-linuxfb -nomake example -nomake demos

    After gmake:
    @/opt/mipseltools-gcc412-glibc261/lib/gcc/mipsel-linux/4.1.2/../../../../mipsel-linux/bin/ld: skipping incompatible /home/vladimir/Develop/qt-everywhere-opensource-src-4.8.4/src/tools/bootstrap/libbootstrap.a when searching for -lbootstrap
    /opt/mipseltools-gcc412-glibc261/lib/gcc/mipsel-linux/4.1.2/../../../../mipsel-linux/bin/ld: cannot find -lbootstrap
    collect2: ld returned 1 exit status
    gmake[1]: *** [../../../bin/lrelease] Ошибка 1
    gmake[1]: Выход из каталога `/home/vladimir/Develop/qt-everywhere-opensource-src-4.8.4/tools/linguist/lrelease'
    gmake: *** [sub-tools-linguist-lrelease-make_default-ordered] Ошибка 2
    How to solve the problem?
    Thank you.

  • Turned out to compile such a configuration:
    @./configure -opensource -no-multimedia -no-openssl -no-webkit -no-qt3support -no-phonon -no-phonon-backend -qt-zlib -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -embedded generic -xplatform qws/linux-mipsel-g++ -little-endian -qt-freetype -depths 4 -qvfb -qt-gfx-qvfb -nomake examples -nomake demos
    Added: -embedded generic

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.