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. [Solved] Building qt-5.1 from source in gentoo
Forum Updated to NodeBB v4.3 + New Features

[Solved] Building qt-5.1 from source in gentoo

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 2.5k 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.
  • C Offline
    C Offline
    curator
    wrote on last edited by
    #1

    Hi all,

    I am trying to build gentoo from source, as it actually isnt in the main portage tree. However, configure runs quite fine, but during the make process, the build fails at building webkit.

    Basically, the relevant error (I think) is the following.

    @
    File "/home/user/qt-everywhere-opensource-src-5.1.0/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 271
    print "error: invalid operand declaration: %s\n" % opr[i]
    ^
    SyntaxError: invalid syntax
    @

    Anyidea, what causes that?

    regards,
    curator

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Are you using Python 3.x by any chance?

      Also, if you are not using QtWebKit, you can skip it's compilation (saves a looooot of time) by passing -skip webkit to configure.

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        curator
        wrote on last edited by
        #3

        Hi, thank you für your reply. Yes I am using python 3.2.5 and need webkit.

        Why isnt such a new release not compatible? is there any patch or something like that or do I really have to install python 2?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Some people still live in Python 2 world in full sunshine, surrounded by flowers and kittens. Anyway, WebKit team is to blame, not Qt ;P

          (Z(:^

          1 Reply Last reply
          0
          • F Offline
            F Offline
            frankiefrank
            wrote on last edited by
            #5

            Ah, sunshine and flowers...

            So this means that if I don't intend to use WebKit, it's ok for me to go with the latest version of Python?

            "Roads? Where we're going, we don't need roads."

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              I suppose so, but have not really checked. Python 2 is default on Kubuntu so so far I have not run into this problem.

              You can have both pythons installed in parallel in any case. Or maybe the 2to3 script can handle this code (this is a script that updates Python 2 code to Python 3).

              (Z(:^

              1 Reply Last reply
              0
              • C Offline
                C Offline
                curator
                wrote on last edited by
                #7

                Hi,

                ok - I will blame webkit. For all other gentoo users, the solution is indeed to install python2 and go with

                @
                eselect python list
                @

                kind regards,
                curator

                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