Ubuntu 12.04.1 support Native Thunder download

Source: Internet
Author: User
Tags ffi sqlite

First, thank Xinkai. Https://github.com/Xinkai/XwareDesktop

1, Ubuntu 12.04.1 First build Python3.4.2 + Qt5.3.2 + PyQt5.11.3 Environment

The installation path is adjusted according to your own situation, which is installed by default in/OPT

Installing Python3.4.2
Python3.4.2 Download: https://www.python.org/downloads/release/python-342/
Tar xvf python-3.4.2.tgz

sudo apt-get install tcl tk tk-dev

./configure--prefix=/opt/python--enable-shared--enable-ipv6--enable-loadable-sqlite-extensions-- WITH-DBMLIBORDER=BDB:GDBM--with-computed-gotos--without-ensurepip--with-system-expat--with-system-libmpdec-- With-system-ffi--with-fpectl cc= "X86_64-LINUX-GNU-GCC" cflags= "-g-fstack-protector--param=ssp-buffer-size=4- Wformat-werror=format-security "ldflags="-wl,-bsymbolic-functions-wl,-z,relro "cppflags="-D_FORTIFY_SOURCE=2 "

Make

sudo make install

Modify the link library path
sudo gedit/etc/ld.so.conf.d/libc.conf
/usr/local/lib
/opt/python/lib
sudo ldconfig

Check Configuration
/opt/python/bin/python3.4-m Sysconfig | grep Config_args
Config_args = '--enable-shared '--prefix=/usr '--enable-ipv6 '--enable-loadable-sqlite-extensions '-- with-dbmliborder=bdb:gdbm '--with-computed-gotos '--without-ensurepip '--with-system-expat '-- With-system-libmpdec '--with-system-ffi '--with-fpectl ' CC=X86_64-LINUX-GNU-GCC ' cflags=-g-fstack-protector-- Param=ssp-buffer-size=4-wformat-werror=format-security ' Ldflags=-wl,-bsymbolic-functions-wl,-z,relro ' CPPFLAGS =-d_fortify_source=2 ' "

Install the expansion pack
/opt/python/lib/python3.4/site-packages//Expansion pack Installation location
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.tar.gz
Tar xvf setuptools-7.0.tar.gz
sudo/opt/python/bin/python3.4 setup.py Install

wget http://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz
Tar xvf pip-1.5.6.tar.gz
sudo/opt/python/bin/python3.4 setup.py Install

wget Http://github.com//seb-m/pyinotify/archive/master.zip
Unzip-x master.zip-d pyinotify
sudo/opt/python/bin/python3.4 setup.py Install

Check that the module is working properly
/opt/python/bin/python3.4
Check from tkinter import *
Check Import pyinotify

Installing QT5
Ubuntu 12.04.1 comes with QT4 part of the library file, but our platform requires QT5, so first install QT5.
Qt5.3.2 Download: http://qt-project.org/downloads
Installation process:
Download to QT5 's online installer and give it executable permission to click Start. Since my previous files are installed in the/OPT directory, this is installed as root:

chmod a+x Qt-opensource-linux-x64-5.3.2.run

sudo./qt-opensource-linux-x64-5.3.2.run

Installation path:
/opt/qt

link library Path
sudo gedit/etc/ld.so.conf.d/libc.conf
/usr/local/lib

/opt/python/lib
/opt/qt/5.3/gcc_64/lib
sudo ldconfig

Install SIP 4.16.4.
SIP 4.16.4 Download: http://www.riverbankcomputing.com/software/sip/download
Installation process:
Tar xvf sip-4.16.4.tar.gz

/opt/python/bin/python3.4 configure.py

Make

sudo make install

Configuration process:
SIP does not need to be configured, just need to check the version after the installation is complete:
Enter in the terminal separately:
/opt/python/bin/sip-v
In Python3 environment input:
/opt/python/bin/python3.4
>>> Import SIP
>>> print (SIP. SIP_VERSION_STR)
>>> exit ()

Installing PYQT5
PYQT is a python cross-platform graphical development toolset that is a successful fusion of Python and Qt. PYQT contains about 440 classes, more than 6,000 functions and methods, gray is often powerful. It is important to note that Eric (a Python IDE, dependent on PYQT) is currently the latest stable version of ERIC5 only supports PYQT4 (specifically PyQt4.8 above 5.0), the Eric version that supports PYQT5 is now only Eric6.0 snapshot version, This release contains all the features of the latest Eric5, but the stability needs to be tested. If you wish to use a stable Eric5, please install the latest version of PyQt4 PyQt4.11.2 in this step. Here we install the PyQt5.3.2.
PyQt5.3.2 Download: Http://www.riverbankcomputing.com/software/pyqt/download5
Installation process:
Tar xvf pyqt-gpl-5.3.2.tar.gz
/opt/python/bin/python3.4 configure.py

Gedit Qtwebkitwidgets/qtwebkitwidgets.pro
QT + = Printsupport


Error handling:
STRIP:/USR/BIN/PYUIC5: Unrecognized file format
Make: [INSTALL_PYUIC5] Error 1 (ignored)


Gedit Makefile
#-strip $ (install_root)/usr/bin/pyuic5
Next, perform the compilation installation:
Make

sudo make install

Configuration process:
After the installation is complete, enter the PYTHON3 environment to verify the installation success:
/opt/python/bin/python3.4
>>> from Pyqt5.qtcore import pyqt_version_str
>>> print ("PyQt Version:", Pyqt_version_str)
>>> exit ()


2, install the native Thunderbolt

Download the Deb file with version control removed: see attachment

Install dependent packages

sudo apt-get install lib32z1 libc6 libc6-i386 libgcc1 libstdc++6 libcap2-bin chrpath zlib1g:i386 libc6:i386

Install native Thunderbolt: sudo dpkg-i xware-desktop_ubuntu-12.04.1.deb

Modify the running environment of the Py file of the native Thunderbolt (note the path of the front environment when building the default/opt/python/bin/python3.4 here)

sudo gedit xware-desktop/frontend/launcher.py
sudo gedit xware-desktop/frontend/libxware/daemon.py
sudo gedit xware-desktop/frontend/crashreport/crashreportapp.py
sudo gedit xware-desktop/frontend/morula.py
sudo gedit xware-desktop/daemon/xwared.py

Modify the #!/usr/bin/python3 #!/opt/python/bin/python3.4


This article is from the "Earthgavinlee" blog, make sure to keep this source http://earthgavinlee.blog.51cto.com/9668427/1589012

Ubuntu 12.04.1 support Native Thunder download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.