Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Problem trying to use python2.7 instead of python2.6

Problem trying to use python2.7 instead of python2.6

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 878 Views
  • 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.
  • F Offline
    F Offline
    franofcholet
    wrote on 25 Jan 2015, 15:59 last edited by
    #1

    Hi everyone !

    I had some python errors when trying to compile my Webkit. It's because of the python version, so I tried to make webkit compiling with python2.7. I edited the CMakeLists.txt (in the root folder of Webkit) and replaced :
    find_package(PythonInterp 2.6.0 REQUIRED)
    by : find_package(PythonInterp 2.7.0 REQUIRED)

    But it doesnt work, I got an error telling me that cmake could not locate any python >2.7 (and I have 2.7 and 3).

    I found a temporary solution : I made a symbolic link : /usr/bin/python2.6--->/usr/bin/python2.7 and kept the former CMakeLists.txt.

    But I would like to fixe the problem "properly"... Any advice ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Jan 2015, 21:46 last edited by
      #2

      Hi and welcome to devnet,

      As silly as it may sound, you would have to give cmake the path to find your python 2.7

      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
      0

      1/2

      25 Jan 2015, 15:59

      • Login

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