Jump to content

Building Connect on Centos 6+ - anyone done it?


bloogyct

Recommended Posts

Hi All,

 

We have just jumped into Ftrack, and given that there is no build available of Connect for LX, I downloaded the source and attempted a build on Centos 6.6, which is our Studio OS.  I am not getting very far, and was wondering if anyone has done this before, and can give me some hints?

I have setup a Python virtualenv with Python 2.7 and am getting further than with the 6.6 standard 2.6, but it still stops.

 

Right now - I am getting  -

.

.

.

 /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libshiboken/libshiboken-python2.7.so.1.2.2] Error 1
make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 249, in <module>
    setup(**configuration)
  File "/usr/local/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/dist.py", line 266, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/dist.py", line 312, in fetch_build_eggs
    replace_conflicting=True,
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 753, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1005, in best_match
    return self.obtain(req, installer)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1017, in obtain
    return installer(requirement)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/dist.py", line 379, in fetch_build_egg
    return cmd.easy_install(req)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 619, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 649, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 839, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1061, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/home/sandysutherland/venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1049, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Error compiling shiboken
 
Thanks
 
Sandy

 

Link to comment
Share on other sites

Hi Sandy,


 


to install qt 4.8 instead of 4.6 you can look at this link:


 


http://www.qtcentre.org/threads/56495-How-to-install-4-8-on-CentOS-6


 


I was able to use it successfully (http://kdeforge.sourceforge.net/).


 


 


Next thing is pyside which can be tricky to compile. Here is a link to a wheel package compiled on Centos 6.6 with the built in python 2.6.


 


https://s3-eu-west-1.amazonaws.com/ftrack-deployment/files/centos6/PySide-1.2.2-cp26-none-linux_x86_64.whl


 


Follow the install instructions here (make sure you run the post install script and that it does not fail)


 


http://pyside.readthedocs.org/en/latest/building/linux.html#installing-pyside-distribution


 


 


you should then be able to install ftrack-connect with our instructions. If you get an error due to not finding pyside-rcc it can be found in the PySide package, just add that to PATH while installing.


 


export PATH=$PATH:/PATH_TO_VIRTUALENV/lib/python2.6/site-packages/PySide/pyside-rcc


 


Once installed you should be able to start it with:


 


python -m ftrack_connect.__main__


 


If it works the login screen should appear. To be able to login you need to download the ftrack api and put that and its dependencies on your PYTHONPATH.


 


Cheers

Link to comment
Share on other sites

Thanks so much Bjorn and Thorsten,

 

Got it working, but we have found now that the application.py in ftrack_connect under site-packages does not cater for centos either, it only has Mac and Windows discoverApplications sections - so our action pop up windows are completely blank - we are going to have to add a Linux elif section, and then find out how to register actions and all that good stuff!

 

Otherwise nice to get it finally to run!

 

Cheers

 

Sandy

Link to comment
Share on other sites

  • 4 weeks later...

Hi,I build all thing,but have some error:

[root@vfxman ftrack-connect]# export PATH=$PATH:/usr/lib/python2.6/site-packages/PySide[root@vfxman ftrack-connect]# python -m ftrack_connect.__main__Traceback (most recent call last):  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main    "__main__", fname, loader, pkg_name)  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code    exec code in run_globals  File "/usr/lib/python2.6/site-packages/ftrack_connect-0.1.8-py2.6.egg/ftrack_connect/__main__.py", line 11, in <module>    from PySide import QtGuiImportError: libpyside-python2.6.so.1.2: cannot open shared object file: No such file or directory[root@ftserver ftrack-connect]# python -m ftrack_connect.__main__Traceback (most recent call last):  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main    "__main__", fname, loader, pkg_name)  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code    exec code in run_globals  File "/usr/lib/python2.6/site-packages/ftrack_connect-0.1.8-py2.6.egg/ftrack_connect/__main__.py", line 11, in <module>    from PySide import QtGuiImportError: libpyside-python2.6.so.1.2: cannot open shared object file: No such file or directory

how to do?

Link to comment
Share on other sites

Hi,I build all thing,but have some error:

[root@vfxman ftrack-connect]# export PATH=$PATH:/usr/lib/python2.6/site-packages/PySide[root@vfxman ftrack-connect]# python -m ftrack_connect.__main__Traceback (most recent call last):  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main    "__main__", fname, loader, pkg_name)  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code    exec code in run_globals  File "/usr/lib/python2.6/site-packages/ftrack_connect-0.1.8-py2.6.egg/ftrack_connect/__main__.py", line 11, in <module>    from PySide import QtGuiImportError: libpyside-python2.6.so.1.2: cannot open shared object file: No such file or directory[root@ftserver ftrack-connect]# python -m ftrack_connect.__main__Traceback (most recent call last):  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main    "__main__", fname, loader, pkg_name)  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code    exec code in run_globals  File "/usr/lib/python2.6/site-packages/ftrack_connect-0.1.8-py2.6.egg/ftrack_connect/__main__.py", line 11, in <module>    from PySide import QtGuiImportError: libpyside-python2.6.so.1.2: cannot open shared object file: No such file or directory

how to do?

I have install pyside,/usr/lib/python2.6/site-packages/PySide/libpyside-python2.6.so.1.2 is ok!!!!

Link to comment
Share on other sites

python setup.py install    

but some error, but:python ez_setup.py install is ok! why?

[root@vfxman PySide-1.2.2]# python setup.py installRemoving /media/Input/Ftrack/github.com/PySide-1.2.2/pyside_packagerunning installrunning buildPython architecture is 64bitInserting path "/media/Input/Ftrack/github.com/PySide-1.2.2/pyside_install/py2.6-qt4.8.5-64bit-release/bin" to environment==============================Package version: 1.2.2Build type: ReleaseBuild tests: False---Make path: /usr/bin/makeMake generator: Unix MakefilesMake jobs: ---Script directory: /media/Input/Ftrack/github.com/PySide-1.2.2Sources directory: /media/Input/Ftrack/github.com/PySide-1.2.2/sourcesBuild directory: /media/Input/Ftrack/github.com/PySide-1.2.2/pyside_build/py2.6-qt4.8.5-64bit-releaseInstall directory: /media/Input/Ftrack/github.com/PySide-1.2.2/pyside_install/py2.6-qt4.8.5-64bit-releasePython site-packages install directory: /media/Input/Ftrack/github.com/PySide-1.2.2/pyside_install/py2.6-qt4.8.5-64bit-release/lib64/python2.6/site-packages---Python executable: /usr/bin/pythonPython includes: /usr/include/python2.6Python library: /usr/lib64/libpython2.6.soPython prefix: /usrPython scripts: /usr/bin---Qt qmake: /usr/bin/qmakeQt version: 4.8.5Qt bins: /usr/lib64/qt4/binQt plugins: /usr/lib64/qt4/plugins---OpenSSL libs: None==============================Building module shiboken...Deleting module build folder /media/Input/Ftrack/github.com/PySide-1.2.2/pyside_build/py2.6-qt4.8.5-64bit-release/shiboken...Creating module build folder /media/Input/Ftrack/github.com/PySide-1.2.2/pyside_build/py2.6-qt4.8.5-64bit-release/shiboken...Configuring module shiboken (/media/Input/Ftrack/github.com/PySide-1.2.2/sources/shiboken)...Running process: /usr/bin/cmake -G "Unix Makefiles" -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/media/Input/Ftrack/github.com/PySide-1.2.2/pyside_install/py2.6-qt4.8.5-64bit-release /media/Input/Ftrack/github.com/PySide-1.2.2/sources/shiboken -DPYTHON_EXECUTABLE=/usr/bin/python -DPYTHON_INCLUDE_DIR=/usr/include/python2.6 -DPYTHON_LIBRARY=/usr/lib64/libpython2.6.so -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes/usr/bin/cmake -G Unix Makefiles -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake -DBUILD_TESTS=False -DDISABLE_DOCSTRINGS=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/media/Input/Ftrack/github.com/PySide-1.2.2/pyside_install/py2.6-qt4.8.5-64bit-release /media/Input/Ftrack/github.com/PySide-1.2.2/sources/shiboken -DPYTHON_EXECUTABLE=/usr/bin/python -DPYTHON_INCLUDE_DIR=/usr/include/python2.6 -DPYTHON_LIBRARY=/usr/lib64/libpython2.6.so -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=yes-- The C compiler identification is GNU 4.4.7-- The CXX compiler identification is GNU 4.4.7-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- 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 (found suitable version "4.8.5", minimum required is "4.5.0") -- Found PythonLibs: /usr/lib64/libpython2.6.so (found suitable version "2.6.6", minimum required is "2.6")   File "<string>", line 1    from distutils import sysconfig; \                                      ^SyntaxError: unexpected character after line continuation character  File "<string>", line 1    import sys; \                 ^SyntaxError: unexpected character after line continuation characterCMake Error at cmake/Modules/FindPythonInterpWithDebug.cmake:45 (string):  string sub-command REPLACE requires at least four arguments.Call Stack (most recent call first):  CMakeLists.txt:33 (find_package)CMake Error at cmake/Modules/FindPythonInterpWithDebug.cmake:46 (string):  string sub-command REPLACE requires at least four arguments.Call Stack (most recent call first):  CMakeLists.txt:33 (find_package)  File "<string>", line 1    from distutils import sysconfig; \                                      ^SyntaxError: unexpected character after line continuation characterCMake Error at CMakeLists.txt:43 (message):  Could not detect Python module installation directory.-- Configuring incomplete, errors occurred!See also "/media/Input/Ftrack/github.com/PySide-1.2.2/pyside_build/py2.6-qt4.8.5-64bit-release/shiboken/CMakeFiles/CMakeOutput.log".See also "/media/Input/Ftrack/github.com/PySide-1.2.2/pyside_build/py2.6-qt4.8.5-64bit-release/shiboken/CMakeFiles/CMakeError.log".error: Error configuring shiboken
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...