Setting up your local environment

From
Revision as of 09:11, 26 June 2019 by Mpsitech (talk | contribs)
Jump to: navigation, search

For convenience, MPSI provides a self-contained local folder structure for building WhizniumSBE and WhizniumDBE projects. The paths are configured such that no modifications to the workstation's file system outside of this folder structure are necessary.

Four tested configurations are available, two of which catering to (Yocto/PetaLinux) cross-compile environments:

1. apalis: for Toradex's Apalis iMX6 board featuring dual/quad Cortex-A9 ARM cores

2. arty: for the Digilent Arty Z7 board which is built around Xilinx's Z7010/Z7020 Zynq All-Programmable SOC, featuring dual Cortex-A9 ARM cores and FPGA fabric

3. linux: for ubuntu workstations, tested for 16.04 and 18.04

4. mac: for Apple computers

Prerequisites

1. apalis: have your Yocto project set up on your workstation

2. arty: have your PetaLinux project set up on your workstation

3. linux: the following packages are required:

sudo apt-get install make gcc libxml2-dev mysql-client mysql-server libmysqlclient-dev postgresql postgresql-contrib libpq-dev sqlite3 libsqlite3-dev libmicrohttpd-dev libcurl3-dev

4. mac: the following installations are required (you may consider using Homebrew instead of building from source):

MySQL from https://dev.mysql.com/downloads/mysql/ 8.0.16, use Legacy Password Encryption

libcurl: https://curl.haxx.se/download.html, installation should end up in /usr/include and /usr/lib

libxml2: ftp://xmlsoft.org/libxml2, installation should end up in /usr/local/include/libxml2 and /usr/local/lib

libmicrohttpd: https://ftp.gnu.org/gnu/libmicrohttpd, installation should end up in /usr/local/include and /usr/local/lib

Download and unpack

The Whiznium local folder structure is available at https://mpsitech-public.s3.amazonaws.com/whiznium-root.tar.gz. Download it and unpack it at your location of choice.


Build essentials