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] Compile error on PySide 1.2.2 Python 3.4.2 Ubuntu 14.04: Linking CXX shared library libshiboken.cpython-34m.so
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Compile error on PySide 1.2.2 Python 3.4.2 Ubuntu 14.04: Linking CXX shared library libshiboken.cpython-34m.so

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 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
    codewalloper
    wrote on last edited by
    #1

    Getting compile error from:
    python3.4 setup.py bdist_wheel --qmake=/usr/bin/qmake-qt4
    Last lines of output:
    [ 83%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/shibokenbuffer.cpp.o
    Linking CXX shared library libshiboken.cpython-34m.so
    /usr/bin/ld: /home/steve/py342/lib/libpython3.4m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
    /home/steve/py342/lib/libpython3.4m.a: error adding symbols: Bad value
    collect2: error: ld returned 1 exit status
    make[2]: *** [libshiboken/libshiboken.cpython-34m.so.1.2.2] Error 1
    make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2
    make: *** [all] Error 2
    error: Error compiling shiboken

    Any suggestions? TIA

    [SOLVED]
    Python 3.4.2 was built without using ./configure option '--enable-shared' and the default is 'disabled'. The PySide build apparently needs a python "..3.4.so" shared library and not a static (.a) library.

    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