Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

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

    Installation and Deployment
    1
    1
    2374
    Loading More Posts
    • 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
      codewalloper last edited by

      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 Reply Quote 0
      • First post
        Last post