bloogyct Posted January 22, 2015 Report Share Posted January 22, 2015 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 valuecollect2: ld returned 1 exit statusmake[2]: *** [libshiboken/libshiboken-python2.7.so.1.2.2] Error 1make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2make: *** [all] Error 2Traceback (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 More sharing options...
instinct-vfx Posted January 29, 2015 Report Share Posted January 29, 2015 Do you have PySide installed already? That looks as if it would try and compile PySide from source as it is a dependency. And that sounds like something you do not want to do typically. Cheers,Thorsten Link to comment Share on other sites More sharing options...
Björn Rydahl Posted February 4, 2015 Report Share Posted February 4, 2015 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 More sharing options...
Björn Rydahl Posted February 4, 2015 Report Share Posted February 4, 2015 And here is one for python 2.7 also built on centos 6.6 https://s3-eu-west-1.amazonaws.com/ftrack-deployment/files/centos6/PySide-1.2.2-cp27-none-linux_x86_64.whl Link to comment Share on other sites More sharing options...
bloogyct Posted February 6, 2015 Author Report Share Posted February 6, 2015 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 More sharing options...
Björn Rydahl Posted February 9, 2015 Report Share Posted February 9, 2015 Hey, we have built a package for Centos 6 now. Anyone interested in it should contact our support and once it is stable enough it will be posted on https://www.ftrack.com/integrations together with Windows and OSX. Link to comment Share on other sites More sharing options...
Jason.Feng Posted March 4, 2015 Report Share Posted March 4, 2015 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 directoryhow to do? Link to comment Share on other sites More sharing options...
Jason.Feng Posted March 4, 2015 Report Share Posted March 4, 2015 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 directoryhow 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 More sharing options...
Jason.Feng Posted March 4, 2015 Report Share Posted March 4, 2015 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.