Giter VIP home page Giter VIP logo

qt515_qtwebkit_build's Introduction

qt515_qtwebkit_build

Build scripts: QtWebkit 5.212 for Qt 5.15.x

The script build_qt_unix.sh is meant to build patched QtWebkit 5.212 and Qt 5.15.x mainly for macOS. It can also be used for Linux, but it's not well tested yet.

This environment is needed to build the xTuple software.

ATTENTION: all shell commands below assumes that current directory is this repository scripts. They do source setenv.sh to set necessary variables.

Build Qt and QtWebkit

Pre-requisites

MacOS

  1. xcode
  2. hombrew

The rest (python3, python2, perl...) will be installed by script if not yet installed (see install_prerequisites step in build_qt_unix.sh).

User defined vars

Edit setenv.sh to change software version, source and build directories:

#!/bin/bash

export PNG_VER=1.6.43      # http://www.libpng.org/pub/png/libpng.html
export JPG_VER=9f          # https://ijg.org/files/
export PSQL_VER=16.3       # https://www.postgresql.org/ftp/source/
export QT_VER=5.15.15      # https://download.qt.io/official_releases/qt/5.15/

# This is for macOS where it will be installed. For linux it might be used pre-installed qt
export QT_DIR="/opt/Qt/$QT_VER/qt_xtuple"

export SRC_DIR="$HOME/work/src"
export BUILD_DIR="$HOME/work/build"

# This will be used for xtuple build
export XTUPLE_PREFIX="$HOME/work"
export XTUPLE="$XTUPLE_PREFIX/qt-client"
export XTUPLE_BUILD="$XTUPLE"

Edit build steps

Building can sometimes fail, so to make the try-and-error process easier, the build is divided into steps. If a step fails, the script will exit. On re-run, it will continue from the failed step, with the last successful step saved in the last_successful_step file under the source directory.

To restart clean build, first remove last_successful_step file if it exists in the sources directory $SRC_DIR.

You can disable any step by commenting it out.

Building Qt and QtWebkit is divided into three steps each: prep, build, install. This way, it's easier to continue if a failure happens during the build.

# File to track the last successfully completed step
STATE_FILE="$SRC_DIR/last_successful_step"

# List of functions to run
BUILD_STEPS=(
    "install_prerequisites"
    "download_sources"
    "build_png"
    "build_jpg"
    "build_psql"
    "prep_qt"
    "build_qt"
    "install_qt"
    "prep_webkit"
    "build_webkit"
    "install_webkit"
)

Build Qt and QtWebkit

Run

sh build_qt_unix.sh

It will take quite some time (1-4 hours depending on hardware).

Cleanup build and source dirs

When build finished all the necessary files will be installed in $QT_DIR directory. Source and build directories can be removed ($SRC_DIR and $BUILD_DIR) using file manager or terminal commands.

Build xTuple

Get the sources

To build xTuple on MacOS/Linux first get the sources:

source setenv.sh && mkdir -p "$XTUPLE_PREFIX" && cd "$XTUPLE_PREFIX" && git clone --recurse-submodules --depth=1 https://github.com/dilshodm/qt-client.git && cd -

Note --depth=1 - this is to clone shallow copy. If you need full repo with history, then remove that argument.

Build xTuple

sh build_xtuple_unix.sh

This will build xtuple and if it's macOS it will create dmg file which will be located in qt-client/bin/ directory.

Author

Dilshod Mukhtarov dilshodm<at>gmail.com

qt515_qtwebkit_build's People

Contributors

dilshodm avatar wgs4 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.