Important: Please read the Qt Code of Conduct -

[SOLVED] Compile error on PySide 1.2.2 Python 3.4.2 Ubuntu 14.04: Linking CXX shared library

  • Getting compile error from:
    python3.4 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
    /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/] Error 1
    make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2
    make: *** [all] Error 2
    error: Error compiling shiboken

    Any suggestions? TIA

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

Log in to reply