-
Notifications
You must be signed in to change notification settings - Fork 15
/
LinuxPackages.i386
56 lines (48 loc) · 1.45 KB
/
LinuxPackages.i386
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# Packages required for building under linux
# ====================================================
# G++ (4:4.7.2-1ubuntu2)
# openjdk-7-jre
# default-jre-headless
echo disabled
exit
echo This installs the packages to build i386 version
echo
if [ "$1" == "" ]; then
BITNESS=`getconf LONG_BIT`
echo "Native ${BITNESS} bit"
elif [ "$1" == "32" ]; then
BITNESS=32
echo "${BITNESS} bit"
elif [ "$1" == "64" ]; then
BITNESS=64
echo "${BITNESS} bit"
else
echo "Usage $0 [32|64]"
fi
#exit
if [ "${BITNESS}" == "32" ]; then
# Native build
# =====================================================
sudo apt-get -y install libusb-1.0-0-dev
sudo apt-get -y install tcl8.5-dev
sudo apt-get -y install libxerces-c-dev
sudo apt-get -y install libwxgtk3.0-dev
sudo apt-get -y install libwxbase3.0-dev
sudo apt-get -y install g++
sudo apt-get -y install openjdk-8-jdk
sudo apt-get -y install libusb-1.0-0
elif [ "${BITNESS}" == "64" ]; then
# On 64-bit to build 32-bit usbdm library for KDS
# =====================================================
sudo apt-get -y install gcc-multilib
sudo apt-get -y install g++-4.8-multilib
sudo apt-get -y install build-essential
sudo apt-get -y install libc6-dev-i386
sudo apt-get -y install libusb-1.0-0-dev:i386
sudo apt-get -y install tcl8.5-dev:i386
sudo apt-get -y install libxerces-c-dev:i386
sudo apt-get -y install libwxgtk3.0-dev:i386
fi
# Note:
# Different architectures of libxerces & libwxgtk2 are not compatible