Кросс компиляция для mipsel.



  • На хост системе OpenSuSE 12.3 64 bit пытаюсь собрать qt-everywhere-opensource-src-4.8.4 для устройства на mipsel (ingenic jz4760).
    Toolchain для mipsel установлен и работает (компиляция и запуск через qemu "Hello world!" проходит без ошибок).

    Отредактировал qmake.conf:
    @#

    qmake configuration for building with mipsel-linux-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_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

    load(qt_config)
    @

    Конфигурация qt-everywhere-opensource-src-4.8.4:

    @./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
    @

    Сборка завершается с ошибкой:
    @vladimir@linux-5sgs:~/Develop/qt-everywhere-opensource-src-4.8.4> gmake
    cd tools/linguist/lrelease/ && gmake -f Makefile
    gmake[1]: Вход в каталог /home/vladimir/Develop/qt-everywhere-opensource-src-4.8.4/tools/linguist/lrelease' linking ../../../bin/lrelease /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
    vladimir@linux-5sgs:~/Develop/qt-everywhere-opensource-src-4.8.4> @
    Как решить эту проблему?
    Спасибо.



  • Удалось собрать при такой конфигурации :
    @./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
    @
    Добавлена опция -embedded generic.


Log in to reply
 

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