Important: Please read the Qt Code of Conduct -

Building qt592 32 bit on 64bit ubuntu 1604

  • Hi, im trying to build qt592 32bit on 64bit ubuntu 1604
    My configure options are:

    $src/configure -platform linux-g++-32 \
    -recheck -v -confirm-license -opensource \
    -skip webengine -skip websockets -skip webchannel \
    -skip 3d -skip connectivity -skip declarative -skip location -skip quickcontrols -skip quickcontrols2 -skip script -skip sensors -skip wayland -skip serialbus \
    -skip gamepad \
    -no-icu -no-sql-mysql \
    -no-compile-examples -nomake examples -no-qml-debug -release -force-debug-info -separate-debug-info \
    -no-strip -v \
    -prefix $pr 2>&1 | tee $logf

    configure worked fine, but then make starts, it failed with error:

    /qt-everywhere-opensource-src-5.9.2/qtbase/src/corelib/animation/qabstractanimation.h -o .moc/moc_qabstractanimation.cpp
    usr/include/c++/5/bits/stl_relops.:67: Parse error at "std"
    make[3]: *** [.moc/moc_qabstractanimation.cpp] Error 1
    Makefile:2193: recipe for target '.moc/moc_qabstractanimation.cpp' failed

    Line # 67 In /usr/include/c++/5/bits/stl_relops.h is "namespace std _GLIBCXX_VISIBILITY(default)"

    Qt592 64 bit on this machine builded ok

  • Lifetime Qt Champion

  • Yes, this issue is related
    I added "INCLUDEPATH += /usr/include/x86_64-linux-gnu/c++/5/32" in qtbase/mkspecs/linux-g++-32 and build started, but stopped at

    /usr/include/gnu/lib-names.h:8:31: fatal error: gnu/lib-names-32.h: No such file or directory

    so topic is "fixed", i`ll try to make a bugreport

  • Lifetime Qt Champion


    Maybe a silly question but are you sure you properly installed all development packages needed in their 32bit versions ?

  • Hi, yes i dont )
    As configure works fine, i thougth i was installed all
    But googling again i found and build was successful
    So no bug report needed

  • @abarmotov, Thank you very much! INCLUDEPATH += ... helped.

  • in my case it was a problem with .qmake.stash file in project directory transferred from other system - maybe can help someone else.

Log in to reply