Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compile 4.7.2 fails

Compile 4.7.2 fails

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 6 Posters 6.9k Views 1 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.
  • G Offline
    G Offline
    Gerard
    wrote on last edited by
    #1

    Hello,

    After entering the following commands:

    "sudo ./configure -opensource -confirm-license -verbose -nomake examples -nomake demos -debug -no-qt3support -no-opengl -no-cups"

    and

    "sudo make"

    I get the following errors:

    @
    /home/gerard/qt-everywhere-opensource-src-4.7.2/lib/libQtCore.so: undefined reference to g_main_context_push_thread_default' /home/gerard/qt-everywhere-opensource-src-4.7.2/lib/libQtCore.so: undefined reference to g_main_context_pop_thread_default'

    collect2: ld returned 1 exit status

    make[4]: *** [../../../../bin/assistant] Error 1
    make[4]: se sale del directorio «/home/gerard/qt-everywhere-opensource-src-4.7.2/tools/assistant/tools/assistant»
    make[3]: *** [sub-assistant-make_default-ordered] Error 2
    make[3]: se sale del directorio «/home/gerard/qt-everywhere-opensource-src-4.7.2/tools/assistant/tools»
    make[2]: *** [sub-tools-make_default-ordered] Error 2
    make[2]: se sale del directorio «/home/gerard/qt-everywhere-opensource-src-4.7.2/tools/assistant»
    make[1]: *** [sub-assistant-make_default-ordered] Error 2
    make[1]: se sale del directorio «/home/gerard/qt-everywhere-opensource-src-4.7.2/tools»
    make: *** [sub-tools-make_default-ordered] Error 2

    gerard@gerard-laptop:~/qt-everywhere-opensource-src-4.7.2$
    @

    If anyone could help me, it would be very appreciated. Ive been trying to resolve this problem for the last 2 days.

    Gerard

    [EDIT: code markup for log output, Volker]

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      Seems to be that glib is missing in the list of linked libraries or that it is the wrong version. Do you have multiple glib versions installed?

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gerard
        wrote on last edited by
        #3

        It works!

        I added the argument "-no-glib" to the command ./configure.

        Thank you very much!!

        1 Reply Last reply
        0
        • S Offline
          S Offline
          saravanant
          wrote on last edited by
          #4

          Hi Gerard..
          I am also facing the same issue.
          Could you tell me how to resolve this?
          Where should i add -no-glib argument?

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            [quote author="saravanant" date="1328694355"]Hi Gerard..
            I am also facing the same issue.
            Could you tell me how to resolve this?
            Where should i add -no-glib argument?[/quote]

            For Gerard it would be like this:
            [code]
            ./configure -opensource -confirm-license -verbose -nomake examples -nomake demos -debug -no-qt3support -no-opengl -no-cups -no-glib
            [/code]

            So it has to be added somewhere as a command line argument.

            [Edit] sudo removed, see also next note of tobias below VVVVVVV

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              Off-topic: There is no need to run configure or make as root.

              You will need root privileges to "make install" if you are installing into some system place like /usr/local/Trolltech or /opt/something, but everything else will run fine without.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                CharlesThoma2013gmail.com
                wrote on last edited by
                #7

                I just wish I had bothered to search this forum before spending a day on my own, trying to get rid of the annoying message.

                As soon as I put the -no-glib in the configure script everything ran fine and my customer is happy.

                One side note.. I had to compile with -lrt (something I normally don't have to do)... small price :)

                Thanks!!!!!

                Tom

                1 Reply Last reply
                0

                • Login

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