Code Monkey home page Code Monkey logo

buildscripts's Introduction

Initial setup
=============

    git submodule init
    git submodule update

Install build dependencies
==========================

    On MeeGo:

        sudo ./dependencies.meego.sh

    On Ubuntu:

        sudo ./dependencies.ubuntu.sh

    On Arch Linux:

        sudo ./dependencies.arch.sh

    On Mac OS X (using Homebrew):

        sudo ./dependencies.osx.sh

    On Red Hat Linux, CentOS 6 and Fedora:

        sudo ./dependencies.fedora.sh
        
    On openSUSE:
        sudo ./dependencies.opensuse.sh

Additional dependencies for Mac OS X
====================================

    The dependencies script on Mac OS X does not install a C++ toolchain or
    the Qt libraries. Instead, you should install Xcode and the Qt SDK
    manually:

        http://developer.apple.com/tools/xcode/
        http://qt.nokia.com/downloads/sdk-mac-os-cpp

Build and install
=================

    ./build_and_install

    By default, this will do a Release build. If you want to do a Debug
    build, you have to uncomment the correct line in environment.sh

    If you want to build PySide against the Qt SDK, you have to set the
    environment variable QT_SDK_HOME - this variable needs to be set before
    "environment.sh" is sourced, and before "build_and_install" is run.

    To build Qt Mobility bindings (or to rebuild a specific module), pass
    the module names you want to build as command line arguments, e.g.:

    ./build_and_install mobility

Python 3 Support
================

    By default scripts build PySide for Python 2. To build Python 3 version
    uncomment the following line in "environment.sh":

        #export PYSIDE_BUILDSCRIPTS_USE_PYTHON3=yes

    This will use "python3" to determine the Python version and will also
    take care of passing the right build arguments to Shiboken's CMake.

    The buildscripts are configured so that the default installation path
    for PySide will be different if PySide is compiled for Python 3. This
    has the advantage that you can have PySide for Python 2 and 3 installed
    without any conflicts.

    Please note that some parts of PySide (notably pyside-tools and PySide
    Mobility) are not yet able to handle Python 3 from the CMake scripts, so
    they will still get built against Python 2 (PySide bugs 1148 and 1149).


Updating to the latest version
==============================

    git submodule foreach git checkout master
    git submodule foreach git pull

Working with the build
======================

    source /path/to/environment.sh
    python /path/to/app.py

buildscripts's People

Contributors

igor-bogomolov avatar kenobrien avatar plooney avatar techtonik avatar thp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.