Qt5 on OpenWRT



  • Hi,
    I'm trying to get qt5 packaged for OpenWRT (at least core, network and xml) i've pushed everything on github so if you want to take a look and/or contribute here is the link : https://github.com/rferrazz/qwebdomo-openwrt/tree/master/qt5

    At the moment the package compiles and installs fine, but when i try to call qmake to build another package (for example the qxmpp package in the same git project) it says:
    @Project ERROR: Unknown module(s) in QT: xml network core@

    Can someone with a knowledge on openwrt point me on the right direction to get qmake to work and to find the installed libraries?

    Thaknk you!



  • i've noticed that running
    @qmake -E@

    it doesn't print any variable named like Qt.<module>.<other>
    for example in my desktop it prints out
    @QT.core.libs = /usr/lib@

    Any hints??



  • Hi,
    I've got a similar problem with Qt on open wrt.
    Your post is two years old, so I hope you already have an answer?!
    If you have a solution, please point me on the right direction.
    Thank you!



  • I couldn't success compiling QT5 on openwrt
    I've got problem like this :
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse2' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -msse2 -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o sse2.o sse2.cpp cc1plus: error: unrecognized command line option "-msse2" make[3]: *** [sse2.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse2'
    sse2 disabled.
    sse3 auto-detection... ()

    what's the problem ?


  • Moderators

    There is no problem: you do not have SSE support which is optional (I guess you're building for a non-x86 CPU (MIPS), right?).
    Since MIPS does not have SSE this test will fail and SSE support will be disabled, but you should be able to build unless you get any real errors.



  • @jsulm Here is what i get when i compile, Sorry it's so long. how to fix it ?

    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse2' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -msse2 -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o sse2.o sse2.cpp cc1plus: error: unrecognized command line option "-msse2" make[3]: *** [sse2.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse2'
    sse2 disabled.
    sse3 auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse3' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -msse3 -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o sse3.o sse3.cpp cc1plus: error: unrecognized command line option "-msse3" make[3]: *** [sse3.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse3'
    sse3 disabled.
    ssse3 auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/ssse3' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -mssse3 -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o ssse3.o ssse3.cpp cc1plus: error: unrecognized command line option "-mssse3" make[3]: *** [ssse3.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/ssse3'
    ssse3 disabled.
    sse4_1 auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse4_1' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -msse4.1 -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o sse4_1.o sse4_1.cpp cc1plus: error: unrecognized command line option "-msse4.1" make[3]: *** [sse4_1.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse4_1'
    sse4_1 disabled.
    sse4_2 auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse4_2' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -msse4.2 -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o sse4_2.o sse4_2.cpp cc1plus: error: unrecognized command line option "-msse4.2" make[3]: *** [sse4_2.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/sse4_2'
    sse4_2 disabled.
    avx auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/avx' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -mavx -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o avx.o avx.cpp cc1plus: error: unrecognized command line option "-mavx" make[3]: *** [avx.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/common/avx'
    avx disabled.
    mips_dsp auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/mips_dsp' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o mips_dsp.o mips_dsp.cpp mips_dsp.cpp: In function 'int main(int, char**)': mips_dsp.cpp:45:35: error: '__builtin_mips_lhx' was not declared in this scope make[3]: *** [mips_dsp.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/mips_dsp'
    mips_dsp disabled.
    mips_dspr2 auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/mips_dspr2' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o mips_dspr2.o mips_dspr2.cpp mips_dspr2.cpp: In function 'int main(int, char**)': mips_dspr2.cpp:47:51: error: '__builtin_mips_append' was not declared in this scope make[3]: *** [mips_dspr2.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/mips_dspr2'
    mips_dspr2 disabled.
    zlib auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/zlib' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o zlib.o zlib.cpp zlib.cpp:42:18: fatal error: zlib.h: No such file or directory compilation terminated. make[3]: *** [zlib.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/zlib'
    zlib disabled.
    POSIX iconv auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/iconv' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o iconv.o iconv.cpp iconv.cpp:45:19: fatal error: iconv.h: No such file or directory compilation terminated. make[3]: *** [iconv.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/iconv'
    POSIX iconv disabled.
    SUN libiconv auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/sun-libiconv' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o gnu-libiconv.o ../gnu-libiconv/gnu-libiconv.cpp ../gnu-libiconv/gnu-libiconv.cpp:45:19: fatal error: iconv.h: No such file or directory compilation terminated. make[3]: *** [gnu-libiconv.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/sun-libiconv'
    SUN libiconv disabled.
    GNU libiconv auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/gnu-libiconv' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o gnu-libiconv.o gnu-libiconv.cpp gnu-libiconv.cpp:45:19: fatal error: iconv.h: No such file or directory compilation terminated. make[3]: *** [gnu-libiconv.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/gnu-libiconv'
    GNU libiconv disabled.
    Glib auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/glib' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o glib.o glib.cpp glib.cpp:44:18: fatal error: glib.h: No such file or directory compilation terminated. make[3]: *** [glib.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/glib'
    Glib disabled.
    ICU auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/icu' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o icu.o icu.cpp icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory compilation terminated. make[3]: *** [icu.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/icu'
    ICU disabled.
    PulseAudio auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/pulseaudio' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o pulseaudio.o pulseaudio.cpp pulseaudio.cpp:42:30: fatal error: pulse/pulseaudio.h: No such file or directory compilation terminated. make[3]: *** [pulseaudio.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/pulseaudio'
    PulseAudio disabled.
    FontConfig auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/fontconfig' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o fontconfig.o fontconfig.cpp fontconfig.cpp:42:22: fatal error: ft2build.h: No such file or directory compilation terminated. make[3]: *** [fontconfig.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/fontconfig'
    FontConfig disabled.
    libudev auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/libudev' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o libudev.o libudev.cpp libudev.cpp:42:21: fatal error: libudev.h: No such file or directory compilation terminated. make[3]: *** [libudev.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/libudev'
    libudev disabled.
    evdev auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/evdev' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o evdev.o evdev.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o evdev evdev.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/evdev'
    evdev enabled.
    XLib auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/x11/xlib' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o xlib.o xlib.cpp xlib.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory compilation terminated. make[3]: *** [xlib.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/x11/xlib'
    XLib disabled.
    Xrender auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/x11/xrender' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o xrender.o xrender.cpp xrender.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory compilation terminated. make[3]: *** [xrender.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/x11/xrender'
    Xrender disabled.
    EGL auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/qpa/egl' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o egl.o egl.cpp egl.cpp:42:21: fatal error: EGL/egl.h: No such file or directory compilation terminated. make[3]: *** [egl.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/qpa/egl'
    EGL disabled.
    FreeType auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/freetype' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o freetype.o freetype.cpp freetype.cpp:42:22: fatal error: ft2build.h: No such file or directory compilation terminated. make[3]: *** [freetype.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/freetype'
    FreeType disabled.
    STL auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/stl' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o stltest.o stltest.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o stl stltest.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/stl'
    STL enabled.
    POSIX clock_gettime() auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/clock-gettime' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o clock-gettime.o clock-gettime.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o clock-gettime clock-gettime.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ -lrt make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/clock-gettime'
    POSIX clock_gettime() enabled.
    POSIX Monotonic Clock auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/clock-monotonic' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o clock-monotonic.o clock-monotonic.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o clock-monotonic clock-monotonic.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ -lrt make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/clock-monotonic'
    POSIX Monotonic Clock enabled.
    mremap auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/mremap' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o mremap.o mremap.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o mremap mremap.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/mremap'
    mremap enabled.
    getaddrinfo auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/getaddrinfo' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o getaddrinfotest.o getaddrinfotest.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o getaddrinfo getaddrinfotest.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/getaddrinfo'
    getaddrinfo enabled.
    inotify auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/inotify' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o inotifytest.o inotifytest.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o inotify inotifytest.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/inotify'
    inotify enabled.
    IPv6 interface name auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/ipv6ifname' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o ipv6ifname.o ipv6ifname.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o ipv6ifname ipv6ifname.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/ipv6ifname'
    IPv6 interface name enabled.
    getifaddrs auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/getifaddrs' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o getifaddrs.o getifaddrs.cpp mipsel-openwrt-linux-uclibc-g++ -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/usr/lib -L/home/ubuntu/openwrt/staging_dir/toolchain-mipsel_r2_gcc-linaro_uClibc-0.9.32/lib -lpthread -lrt -o getifaddrs getifaddrs.o -L/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/lib\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib\ \ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/ make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/getifaddrs'
    getifaddrs enabled.
    OpenSSL auto-detection... ()
    make[3]: Entering directory /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/openssl' mipsel-openwrt-linux-uclibc-g++ -c -Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time -fhonour-copts -msoft-float -fPIE -I../../../mkspecs/linux-openwrt-g++ -I. -I/home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/include\ /home/ubuntu/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/include -o openssl.o openssl.cpp openssl.cpp:42:30: fatal error: openssl/opensslv.h: No such file or directory compilation terminated. make[3]: *** [openssl.o] Error 1 make[3]: Leaving directory/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/config.tests/unix/openssl'
    OpenSSL disabled.
    OpenSSL support cannot be enabled due to functionality tests!
    Turn on verbose messaging (-v) to /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/configure to see the final report.
    If you believe this message is in error you may use the continue
    switch (-continue) to /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/qtbase/configure to continue.
    *** qtbase/configure exited with non-zero status.
    make[2]: *** [/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.0.2/.configured_] Error 101
    make[2]: Leaving directory /home/ubuntu/openwrt/package/qt5' make[1]: *** [package/qt5/compile] Error 2 make[1]: Leaving directory/home/ubuntu/openwrt'
    make: *** [package/qt5/compile] Error 2


  • Moderators

    You can try to call configure with -v option to see more details or try to call it with -continue to continue.



  • @jsulm: i'm building for MIPS but what i get after compiling is that :

    file /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-install/usr/bin/lconvert
    /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-install/usr/bin/lconvert: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=2d77aa51a7361591e0dbfa170b36748a2f2a400f, not stripped

    what's missing ?


  • Moderators

    "x86-64" - you built for x86 not Mips!
    How did you call configure script?



  • @jsulm i just call make package/qt5/compile V=99

    in fact after compiling i got :
    xmlpatterns: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), not stripped

    and the others are all x86-64


  • Moderators

    How exactly did you call configure script? What are those other x86_64?



  • @jsulm
    admin@ubuntu:/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-install/usr/bin$ ls
    lconvert lupdate qdoc qmake rcc xmlpatterns
    lrelease moc qlalr qtpaths syncqt.pl xmlpatternsvalidator

    file xmlpatterns
    xmlpatterns: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), not stripped

    file xmlpatternsvalidator
    xmlpatternsvalidator: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1, dynamically linked (uses shared libs), not stripped

    file lconvert
    lconvert: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=2d77aa51a7361591e0dbfa170b36748a2f2a400f, not stripped

    file moc
    moc: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=f9cbf1c4ff95dd8f3d9e53834cd4e15ae777e048, not stripped

    ....

    and i didn't call configure script apart


  • Moderators

    lconvert and moc are used on the host (during build and UI translation) not on the target, that's why they are X86_64. So, everything is fine.



  • thank you @jsulm
    and it's okey to not call the configure script apart ?
    and how should i call it ?


  • Moderators

    Actually you should not be able to build without calling configure before.
    How else did you define MIPS as platform to build for?
    Are you sure you did not?
    Call it -h parameter to see how to use it.



  • @jsulm i didn't call it, i think it's defined in the Makefile of qt5

    a message that appear when i run make :

    Qt now detects the target and host architectures based on compiler
    output. Qt will be built using mips for the target architecture
    and x86_64 for the host architecture (note that these two
    will be the same unless you are cross-compiling).

    how can i check if it's built correctly or not ?


  • Moderators

    Usually makefiles are generated when configure is called.
    Where did you get Qt sources from?




  • Moderators

    OK, it is a preconfigured Qt for OpenWRT



  • @jsulm sorry for bothering you but i really need your help

    i'm in fact trying to compile some package that depends on qt5 but when building i got this :

    -- Found Qt5 core, checking for further dependencies...

    CMake Error at cmake/modules/QtVersionAbstraction.cmake:25 (find_package):
    Could not find module FindQt5WebKitWidgets.cmake or a configuration file
    for package Qt5WebKitWidgets.

    Adjust CMAKE_MODULE_PATH to find FindQt5WebKitWidgets.cmake or set
    Qt5WebKitWidgets_DIR to the directory containing a CMake configuration file
    for Qt5WebKitWidgets. The file will have one of the following names:

    Qt5WebKitWidgetsConfig.cmake
    qt5webkitwidgets-config.cmake
    

    Call Stack (most recent call first):
    src/CMakeLists.txt:8 (include)

    CMake Error at cmake/modules/QtVersionAbstraction.cmake:26 (find_package):
    Could not find module FindQt5WebKit.cmake or a configuration file for
    package Qt5WebKit.

    Adjust CMAKE_MODULE_PATH to find FindQt5WebKit.cmake or set Qt5WebKit_DIR
    to the directory containing a CMake configuration file for Qt5WebKit. The
    file will have one of the following names:

    Qt5WebKitConfig.cmake
    qt5webkit-config.cmake
    

    Call Stack (most recent call first):
    src/CMakeLists.txt:8 (include)

    CMake Error at cmake/modules/QtVersionAbstraction.cmake:27 (find_package):
    Could not find module FindQt5Widgets.cmake or a configuration file for
    package Qt5Widgets.

    Adjust CMAKE_MODULE_PATH to find FindQt5Widgets.cmake or set Qt5Widgets_DIR
    to the directory containing a CMake configuration file for Qt5Widgets. The
    file will have one of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake
    

    Call Stack (most recent call first):
    src/CMakeLists.txt:8 (include)

    -- Using Qt 5!
    CMake Error at cmake/modules/QtVersionAbstraction.cmake:47 (find_package):
    Could not find module FindQt5DBus.cmake or a configuration file for package
    Qt5DBus.

    Adjust CMAKE_MODULE_PATH to find FindQt5DBus.cmake or set Qt5DBus_DIR to
    the directory containing a CMake configuration file for Qt5DBus. The file
    will have one of the following names:

    Qt5DBusConfig.cmake
    qt5dbus-config.cmake
    

    Call Stack (most recent call first):
    src/CMakeLists.txt:8 (include)

    CMake Error at /home/ubuntu/openwrt/staging_dir/host/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
    Could NOT find Qt5Keychain (missing: QTKEYCHAIN_LIBRARY
    QTKEYCHAIN_INCLUDE_DIR)
    Call Stack (most recent call first):
    /home/ubuntu/openwrt/staging_dir/host/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
    cmake/modules/FindQt5Keychain.cmake:35 (find_package_handle_standard_args)
    src/CMakeLists.txt:28 (find_package)

    in this directory i have only these :

    ubuntu@ubuntu:~/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-install/usr/lib/cmake$ ls
    Qt5 Qt5Concurrent Qt5LinguistTools Qt5Nfc Qt5Script Qt5SerialPort Qt5Test Qt5WebSockets Qt5XmlPatterns
    Qt5Bluetooth Qt5Core Qt5Network Qt5Positioning Qt5Sensors Qt5Sql Qt5WebChannel Qt5Xml

    is this a problem of wrong building qt5 ?


  • Moderators

    It looks like your Qt installation does not contain following packages:

    • Qt5WebKitWidgets
    • Qt5WebKit
    • Qt5Widgets
    • Qt5DBus

    You should build them first.



  • @jsulm yes, and how to build them plz !
    from where can i get them !


  • Moderators

    You already have Qt sources, right? Then build that modules like you did for QtCore.



  • @jsulm it works now thank you



  • @jsulm i now figure out that it's okey for Qt5Widgets and Qt5DBus but not for both of Qt5WebKitWidgets and Qt5WebKit

    i have this when compiling qt5 :

    make[2]: Entering directory /home/ubuntu/openwrt/package/qt5' mkdir -p /home/ubuntu/openwrt/bin/ramips/packages /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-ramips/qt5-webkitwidgets/CONTROL install -d -m0755 /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-ramips/qt5-webkitwidgets/usr/lib/ cp -fpR /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-install/usr/lib/libQt5WebKitWidgets.so* /home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-ramips/qt5-webkitwidgets/usr/lib/ cp: cannot stat '/home/ubuntu/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/qt-everywhere-opensource-src-5.4.2/ipkg-install/usr/lib/libQt5WebKitWidgets.so*': No such file or directory make[2]: *** [/home/ubuntu/openwrt/bin/ramips/packages/qt5-webkitwidgets_5.4.2-1_ramips.ipk] Error 1 make[2]: Leaving directory/home/ubuntu/openwrt/package/qt5'

    and here is my makefile

    include $(TOPDIR)/rules.mk

    PKG_NAME:=qt5
    PKG_VERSION:=5.4.2
    PKG_RELEASE:=1
    PKG_MD5SUM:=fa1c4d819b401b267eb246a543a63ea5

    PKG_SOURCE:=qt-everywhere-opensource-src-$(PKG_VERSION).tar.gz
    PKG_SOURCE_URL:=http://download.qt-project.org/official_releases/qt/5.4/$(PKG_VERSION)/single
    PKG_BUILD_DIR=$(BUILD_DIR)/qt-everywhere-opensource-src-$(PKG_VERSION)
    PKG_BUILD_PARALLEL:=1
    PKG_BUILD_DEPENDS:=+libstdcpp

    include $(INCLUDE_DIR)/package.mk
    -include $(if $(DUMP),,./files/qmake.mk)

    define Package/qt5/Default
    SECTION:=libraries
    CATEGORY:=Libraries
    TITLE:=qt5
    URL:=http://qt-project.org
    DEPENDS:=+librt +zlib +libstdcpp +libpthread @!LINUX_2_6
    endef

    define Package/qt5-core
    $(call Package/qt5/Default)
    TITLE+=core
    endef

    define Package/qt5-concurrent
    $(call Package/qt5/Default)
    TITLE+=concurrent
    DEPENDS+=+qt5-core
    endef

    define Package/qt5-network
    $(call Package/qt5/Default)
    TITLE+=network
    DEPENDS+=+qt5-core
    endef

    define Package/qt5-xml
    $(call Package/qt5/Default)
    TITLE+=xml
    DEPENDS+=+qt5-core
    endef

    define Package/qt5-xmlpatterns
    $(call Package/qt5/Default)
    TITLE+=xmlpatterns
    DEPENDS+=+qt5-core +qt5-network
    endef

    define Package/qt5-webkitwidgets
    $(call Package/qt5/Default)
    TITLE+=webkitwidgets
    DEPENDS+=+qt5-core
    endef

    define Package/qt5-webkit
    $(call Package/qt5/Default)
    TITLE+=webkit
    DEPENDS+=+qt5-core
    endef

    define Package/qt5-widgets
    $(call Package/qt5/Default)
    TITLE+=widgets
    DEPENDS+=+qt5-core
    endef

    define Package/qt5-dbus
    $(call Package/qt5/Default)
    TITLE+=dbus
    DEPENDS+=+qt5-core +qt5-network
    endef

    define Package/qt5-gui
    $(call Package/qt5/Default)
    TITLE+=gui
    DEPENDS+=+qt5-core +qt5-network
    endef

    define Build/Configure
    mkdir -p $(PKG_BUILD_DIR)/qtbase/mkspecs/linux-openwrt-g++
    $(CP) ./files/$(FILEPFX)qmake.conf $(PKG_BUILD_DIR)/qtbase/mkspecs/linux-openwrt-g++/qmake.conf
    $(CP) ./files/$(FILEPFX)qplatformdefs.h $(PKG_BUILD_DIR)/qtbase/mkspecs/linux-openwrt-g++/qplatformdefs.h
    ( cd $(PKG_BUILD_DIR) ;
    TARGET_CC="$(TARGET_CROSS)gcc"
    TARGET_CXX="$(TARGET_CROSS)g++"
    TARGET_AR="$(TARGET_CROSS)ar cqs"
    TARGET_OBJCOPY="$(TARGET_CROSS)objcopy"
    TARGET_RANLIB="$(TARGET_CROSS)ranlib"
    TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
    TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
    TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) -lpthread -lrt"
    TARGET_INCDIRS="$(TARGET_INCDIRS)"
    TARGET_LIBDIRS="$(TARGET_LIBDIRS) $(STAGING_DIR)/usr/lib/"
    CFLAGS=
    CXXFLAGS=
    LDFLAGS=
    ./configure
    -arch mipsel
    -no-c++11
    -prefix $(CONFIGURE_PREFIX)
    -bindir $(CONFIGURE_PREFIX)/bin
    -libdir $(CONFIGURE_PREFIX)/lib
    -datadir $(CONFIGURE_PREFIX)/share/Qt
    -plugindir $(CONFIGURE_PREFIX)/lib/Qt/plugins
    -xplatform linux-openwrt-g++
    -opensource
    -confirm-license
    -no-sql-db2
    -no-sql-ibase
    -no-sql-mysql
    -no-sql-oci
    -no-sql-odbc
    -no-sql-psql
    -no-sql-sqlite
    -no-sql-sqlite2
    -no-sql-tds
    -no-qml-debug
    -no-gif
    -no-libpng
    -no-libjpeg
    -no-xcb
    -no-strip
    -openssl
    -no-nis
    -no-cups
    -no-eglfs
    -no-directfb
    -no-linuxfb
    -no-kms
    -no-opengl
    -make libs
    -nomake examples
    -nomake tests
    -skip qtdeclarative
    -skip qtmultimedia
    -skip activeqt
    -skip qtimageformats
    -skip qtgraphicaleffects
    -skip qtdoc
    -v
    -continue
    )
    endef

    define Build/Compile
    TARGET_CC="$(TARGET_CROSS)gcc"
    TARGET_CXX="$(TARGET_CROSS)g++"
    TARGET_AR="$(TARGET_CROSS)ar cqs"
    TARGET_OBJCOPY="$(TARGET_CROSS)objcopy"
    TARGET_RANLIB="$(TARGET_CROSS)ranlib"
    TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
    TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
    TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) -ldl -lpthread -lrt"
    TARGET_INCDIRS="$(TARGET_INCDIRS)"
    TARGET_LIBDIRS="$(TARGET_LIBDIRS) $(STAGING_DIR)/usr/lib/"
    STAGING_DIR="$(STAGING_DIR)"
    STAGING_DIR_HOST="$(STAGING_DIR)/../host"
    PKG_CONFIG_SYSROOT="$(STAGING_DIR)"
    $(MAKE) -C $(PKG_BUILD_DIR)
    INSTALL_ROOT=$(PKG_INSTALL_DIR)
    $(MAKE) -C $(PKG_BUILD_DIR) install
    endef

    define Build/InstallDev
    $(INSTALL_DIR) $(2)/bin
    $(INSTALL_DIR) $(1)/bin
    $(INSTALL_DIR) $(1)/usr/mkspecs
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_DIR) $(1)/usr/include
    $(INSTALL_DIR) $(1)/usr/lib
    $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
    $(INSTALL_DIR) $(1)/usr/lib/cmake

    $(INSTALL_DIR) $(STAGING_DIR)/mk/
    $(INSTALL_DATA) ./files/qmake.mk $(STAGING_DIR)/mk/
    
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/bin/* \
    	$(2)/bin/
    	
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/bin/* \
    	$(2)/bin/
    
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/mkspecs/* \
    	$(1)/usr/mkspecs/
    
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
    	$(1)/usr/lib/pkgconfig/
    
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/include/* \
    	$(1)/usr/include/
    	
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/lib/*.so* \
    	$(1)/usr/lib/
    
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/lib/*.prl* \
    	$(1)/usr/lib/
    
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/lib/*.la* \
    	$(1)/usr/lib/
    
    $(CP) \
    	$(PKG_INSTALL_DIR)/usr/lib/cmake/* \
    	$(1)/usr/lib/cmake/
    

    endef

    define Package/qt5-core/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Core.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Core.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Core.la
    $(1)/usr/lib/
    endef

    define Package/qt5-concurrent/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Concurrent.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Concurrent.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Concurrent.la
    $(1)/usr/lib/
    endef

    define Package/qt5-network/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Network.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Network.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Network.la
    $(1)/usr/lib/
    endef

    define Package/qt5-xml/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Xml.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Xml.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Xml.la
    $(1)/usr/lib/
    endef

    define Package/qt5-xmlpatterns/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5XmlPatterns.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5XmlPatterns.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5XmlPatterns.la
    $(1)/usr/lib/
    endef

    define Package/qt5-webkitwidgets/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5WebKitWidgets.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5WebKitWidgets.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5WebKitWidgets.la
    $(1)/usr/lib/
    endef

    define Package/qt5-webkit/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Webkit.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Webkit.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Webkit.la
    $(1)/usr/lib/
    endef

    define Package/qt5-widgets/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Widgets.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Widgets.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Widgets.la
    $(1)/usr/lib/
    endef

    define Package/qt5-dbus/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5DBus.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5DBus.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5DBus.la
    $(1)/usr/lib/
    endef

    define Package/qt5-gui/install
    $(INSTALL_DIR) $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Gui.so*
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Gui.prl
    $(1)/usr/lib/
    $(CP)
    $(PKG_INSTALL_DIR)/usr/lib/libQt5Gui.la
    $(1)/usr/lib/
    endef

    $(eval $(call BuildPackage,qt5-core))
    $(eval $(call BuildPackage,qt5-concurrent))
    $(eval $(call BuildPackage,qt5-network))
    $(eval $(call BuildPackage,qt5-xml))
    $(eval $(call BuildPackage,qt5-xmlpatterns))
    $(eval $(call BuildPackage,qt5-webkitwidgets))
    $(eval $(call BuildPackage,qt5-webkit))
    $(eval $(call BuildPackage,qt5-widgets))
    $(eval $(call BuildPackage,qt5-dbus))
    $(eval $(call BuildPackage,qt5-gui))


Log in to reply
 

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