Hi, 2012/6/23 Sergio Pulgarín <[email protected]>: > Hi, > Thank you for your answer. > The python32 is just a link I made to > /opt/pym32/bin/python/ which is where my > 32bit interpreter lives. > > Last night I actually finished compiling! > I could write a how-to if anyone is interested.
Yes please, I'm interested! Regards Roman > > > > > On 23 June 2012 03:06, Roman Lacko <[email protected]> wrote: >> >> Oh, just ignore my post, I see You are using Python 2.7: >> >>> >> >>> /home/sergio/Downloads/PySide-1.1.1/pyside_build/py2.7-qt4.8.1-32bit-release >> >> I will try to compile 32bit PySide under 64bit ubuntu system when I >> have some free time... >> >> Regards >> R. >> >> >> 2012/6/23 Roman Lacko <[email protected]>: >> > Hi Sergio, >> > >> > You have compiled Python 2.7 interpreter, but the setup.py is running >> > under Python32 interpreter: >> >>>sudo python32 setup.py install --qmake /usr/bin/qmake-qt4 >> > >> > You should run setup.py with compiled Python 27 32bit. >> > >> > Also i would use virtualenv, instead of installing custom packages >> > directly to system paths. >> > >> > Regards >> > -Roman >> > >> > 2012/6/22 Sergio Pulgarín <[email protected]>: >> >> >> >>> >> >>> Hi everyone, >> >>> >> >>> I've been using Python for about three months, so >> >>> I'm still a beginner, >> >>> >> >>> Background: >> >>> Anyways, I came across the need to extend Python with >> >>> a couple of C .o objects that are 32 bit only. >> >>> I successfully created a shared object that can be imported >> >>> within a 32bit Python interpreter, otherwise I get a 'wrong >> >>> ELFCLASS32' >> >>> error. >> >>> >> >>> Problem: >> >>> I'm using a 64bit Ubuntu 12.04 machine and I successfully compiled a >> >>> 32bit >> >>> Python 2.7 interpreter; >> >>> I want to create an application that uses my 32bit Python-C module and >> >>> also PySide, so I figured I need to compile PySide for 32bit on my >> >>> 64bit >> >>> machine, >> >>> the same way I compiled the 32bit Python interpreter. >> >>> >> >>> This is the command I'm using, to compile/install the sources >> >>> in PySide-1.1.1.tar.gz >> >>> >> >>> >>sudo python32 setup.py install --qmake /usr/bin/qmake-qt4 >> >>> >> >>> This is the output I get: >> >>> >> >>> >> >>> >> >>> **************************************************************************************************************************** >> >>> >> >>> >> >>> **************************************************************************************************************************** >> >>> Removing /home/sergio/Downloads/PySide-1.1.1/PySide >> >>> Removing /home/sergio/Downloads/PySide-1.1.1/pysideuic >> >>> running install >> >>> running build >> >>> ============================== >> >>> Build type: Release >> >>> Package version: 1.1.1 >> >>> --- >> >>> Script directory: /home/sergio/Downloads/PySide-1.1.1 >> >>> Sources directory: /home/sergio/Downloads/PySide-1.1.1/sources >> >>> Build directory: >> >>> >> >>> /home/sergio/Downloads/PySide-1.1.1/pyside_build/py2.7-qt4.8.1-32bit-release >> >>> Install directory: >> >>> >> >>> /home/sergio/Downloads/PySide-1.1.1/pyside_install/py2.7-qt4.8.1-32bit-release >> >>> --- >> >>> Python executable: /usr/local/bin/python32 >> >>> Python includes: /opt/pym32/include/python2.7 >> >>> Python library: /opt/pym32/lib/libpython2.7.so >> >>> --- >> >>> Qt qmake: /usr/bin/qmake-qt4 >> >>> Qt bins: /usr/bin >> >>> Qt plugins: /usr/lib/i386-linux-gnu/qt4/plugins >> >>> --- >> >>> OpenSSL libs: None >> >>> ============================== >> >>> Building module shiboken... >> >>> Deleting module build folder >> >>> >> >>> /home/sergio/Downloads/PySide-1.1.1/pyside_build/py2.7-qt4.8.1-32bit-release/shiboken... >> >>> Creating module build folder >> >>> >> >>> /home/sergio/Downloads/PySide-1.1.1/pyside_build/py2.7-qt4.8.1-32bit-release/shiboken... >> >>> Configuring module shiboken >> >>> (/home/sergio/Downloads/PySide-1.1.1/sources/shiboken)... >> >>> -- The C compiler identification is GNU >> >>> -- The CXX compiler identification is GNU >> >>> -- Check for working C compiler: /usr/bin/gcc >> >>> -- Check for working C compiler: /usr/bin/gcc -- works >> >>> -- Detecting C compiler ABI info >> >>> -- Detecting C compiler ABI info - done >> >>> -- Check for working CXX compiler: /usr/bin/c++ >> >>> -- Check for working CXX compiler: /usr/bin/c++ -- works >> >>> -- Detecting CXX compiler ABI info >> >>> -- Detecting CXX compiler ABI info - done >> >>> -- Looking for Q_WS_X11 >> >>> -- Looking for Q_WS_X11 - found >> >>> -- Looking for Q_WS_WIN >> >>> -- Looking for Q_WS_WIN - not found. >> >>> -- Looking for Q_WS_QWS >> >>> -- Looking for Q_WS_QWS - not found. >> >>> -- Looking for Q_WS_MAC >> >>> -- Looking for Q_WS_MAC - not found. >> >>> -- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.1", >> >>> required >> >>> is "4.5.0") >> >>> -- Found PythonLibs: /usr/lib/libpython2.7.so (Required is at least >> >>> version "2.6") >> >>> -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES) (Required is >> >>> at >> >>> least version "2.6.32") >> >>> -- Could NOT find LibXslt (missing: LIBXSLT_LIBRARIES) (Required is >> >>> at >> >>> least version "1.1.19") >> >>> -- sphinx-build - not found! doc target disabled >> >>> -- Configuring done >> >>> -- Generating done >> >>> -- Build files have been written to: >> >>> >> >>> /home/sergio/Downloads/PySide-1.1.1/pyside_build/py2.7-qt4.8.1-32bit-release/shiboken >> >>> Compiling module shiboken... >> >>> [ 1%] Generating qrc_generator.cxx >> >>> Scanning dependencies of target apiextractor >> >>> [ 3%] >> >>> Building CXX object >> >>> ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor.cpp.o >> >>> [ 5%] Building CXX object >> >>> ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetabuilder.cpp.o >> >>> [ 7%] Building CXX object >> >>> ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetalang.cpp.o >> >>> /usr/include/qt4/QtCore/qatomic_i386.h: Assembler messages: >> >>> /usr/include/qt4/QtCore/qatomic_i386.h:177: Error: incorrect register >> >>> `%rbx' used with `l' suffix >> >>> make[2]: *** >> >>> [ApiExtractor/CMakeFiles/apiextractor.dir/abstractmetalang.cpp.o] >> >>> Error 1 >> >>> make[1]: *** [ApiExtractor/CMakeFiles/apiextractor.dir/all] Error 2 >> >>> make: *** [all] Error 2 >> >>> error: Error compiling shiboken >> >>> >> >>> >> >>> >> >>> **************************************************************************************************************************** >> >>> >> >>> >> >>> **************************************************************************************************************************** >> >>> >> >>> >> >>> I wonder I anyone had tumbled across this errror? >> >>> >> >>> Any help with this would be much appreciated. >> >>> >> >>> >> >>> Thanks, >> >>> >> >>> Sergio >> >> >> >> >> >> >> >> _______________________________________________ >> >> PySide mailing list >> >> [email protected] >> >> http://lists.qt-project.org/mailman/listinfo/pyside >> >> > > _______________________________________________ PySide mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/pyside
