Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Compiling pyside for python3.3 (linux)
Forum Updated to NodeBB v4.3 + New Features

Compiling pyside for python3.3 (linux)

Scheduled Pinned Locked Moved Language Bindings
2 Posts 2 Posters 2.6k 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.
  • M Offline
    M Offline
    mid-kid
    wrote on last edited by
    #1

    Well, i've been trying to compile pyside for python 3.3 (Following "these":http://qt-project.org/wiki/Building_PySide_on_Linux instructions).

    NOTE: This happens when building shiboken
    But i'm running into a problem:
    The command: "runcmake" i created following the tutorial automatically gets the python 2.7 libraries.

    So i went to the build scripts and i found this:
    @if [ "$PYSIDE_BUILDSCRIPTS_USE_PYTHON3" == "yes" ]; then
    PYSIDE_BS_CMAKE_FLAGS=$PYSIDE_BS_CMAKE_FLAGS" -DUSE_PYTHON3=1"
    fi@

    so i changed the command to use the "-DUSE_PYTHON3=1" flag.

    The problem now is that it gets the python3.2 libraries.

    I opened the CMAKELISTS.txt and found other flags.
    I added them to the command matching my python3.3 installation:
    @alias runcmake='cmake .. -DCMAKE_INSTALL_PREFIX=$PYSIDESANDBOXPATH -DCMAKE_BUILD_TYPE=Debug -DENABLE_ICECC=0 -DUSE_PYTHON3=1 -DPYTHON3_DBG_EXECUTABLE=$HOME/.python/3.3.0/bin/python3.3 -DPYTHON3_EXECUTABLE=$HOME/.python/3.3.0/bin/python3.3 -DPYTHON3_LIBRARIES=$HOME/.python/3.3.0/lib/libpython3.3m.a -DPYTHON3_DEBUG_LIBRARIES=$HOME/.python/3.3.0/lib/libpython3.3m.a -DPYTHON3_INCLUDE_DIRS=$HOME/.python/3.3.0/include/'@
    NOTE: I have installed python 3.3 from source in my home directory

    Now it gets everything except this:
    @-- Found Python3Libs: /usr/lib/libpython3.2mu.so @

    Any help?

    My system: Linux Mint 14 (Based on Ubuntu 12.10), 64 bit

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bootchk
      wrote on last edited by
      #2

      What step is "-- Found...." an output of? It seems to me that it is just a comment of a "configure" step, where it searches for presence of dependencies. It may be that the other changes you made are accomplishing what you want, to build with libpython3.3, and that you can ignore the comment.

      (I have no experience in building PySide, I could be wrong.)

      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