Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building qt592 32 bit on 64bit ubuntu 1604
Forum Updated to NodeBB v4.3 + New Features

Building qt592 32 bit on 64bit ubuntu 1604

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 5 Posters 2.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abarmotov
    wrote on last edited by
    #1

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

    pr="/home/user1/bin/qt592_linux32"
    src=/home/user1/src/qt-everywhere-opensource-src-5.9.2
    logf="conf_run.txt"
    
    $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

    1 Reply Last reply
    1
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      it might be a moc issue
      https://forum.qt.io/topic/27761/moc-parse-error-at-std-workaround

      1 Reply Last reply
      0
      • A Offline
        A Offline
        abarmotov
        wrote on last edited by
        #3

        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

        /qtbase/src/network/kernel/qdnslookup_unix.cpp:58:0:
        /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

        1 Reply Last reply
        2
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • A Offline
            A Offline
            abarmotov
            wrote on last edited by
            #5

            Hi, yes i dont )
            As configure works fine, i thougth i was installed all
            But googling again i found https://stackoverflow.com/questions/22359098/compiling-32bits-qt-sources-on-a-64bit-debian-environement and build was successful
            So no bug report needed

            1 Reply Last reply
            2
            • I Offline
              I Offline
              ikyb
              wrote on last edited by ikyb
              #6

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

              1 Reply Last reply
              0
              • Seb TurS Offline
                Seb TurS Offline
                Seb Tur
                wrote on last edited by
                #7

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

                1 Reply Last reply
                2

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved