If you are using a Windows machine you can set up an Ubuntu virtual machine on your Windows machine.
It is assumed Ubuntu 18.04 is used. Testing has not been performed on other versions of Ubuntu, or other distros of Linux.
The following bash script can be used to setup your development machine:
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install build-essential
sudo apt-get -y install tree
sudo apt-get -y install git
sudo apt-get -y install ninja-build
sudo apt-get -y install default-jdk
sudo apt-get -y install python
sudo apt-get -y install libpython2.7-dev
sudo apt-get -y install python-pip
python -m pip install --upgrade pip
python -m pip install --user --upgrade setuptools wheel
python -m pip install --user --upgrade twine
# Need later version of cmake than what is obtained when just install cmake using apt-get (version 3.10.2)
if [ -d ~/cmake ]; then
echo folder ~/cmake already exists
else
mkdir -p ~/cmake
cd ~/cmake
wget https://github.com/Kitware/CMake/releases/download/v3.15.2/cmake-3.15.2-Linux-x86_64.sh
sh cmake-3.15.2-Linux-x86_64.sh
fi
An Ubuntu Linux installer named CedaSDK-0.10.23-Linux.deb is available for the CEDA SDK (i.e. the CEDA Core Libraries). See the downloads page.
Download and install the CEDA SDK using the following commands in a terminal:
wget http://cedanet.com.au/ceda/downloads/files/0.10.23/ceda-0.10.23-Linux-x86_64.deb
sudo dpkg -i ceda-0.10.23-Linux-x86_64.deb
the output will be something like:
Selecting previously unselected package cedasdk.
(Reading database ... 132335 files and directories currently installed.)
Preparing to unpack CedaSDK-0.10.2-Linux.deb ...
Unpacking cedasdk (0.10.2) ...
Setting up cedasdk (0.10.2) ...
The CEDA SDK is installed under /usr/lib/ceda using the following directory structure:
/usr/lib/ceda ├── bin ├── cmake ├── export ├── include └── lib
As a sanity check, confirm that the Xcpp program can be run, by typing the following command in a terminal:
/usr/lib/ceda/bin/Xcpp
(or /usr/lib/ceda/debug/bin/Xcpp if you installed the debug version of the CEDA SDK)
This will display the version and a usage message:
Xcpp V2.20 Sep 17 2019
Usage...
Xcpp pathToConfigFile
To uninstall the CEDA SDK type the following command in a terminal:
sudo dpkg -r cedasdk
Type the following commands to clone the ceda sample programs:
mkdir -p ~/cedanet/repos
cd ~/cedanet/repos
git clone https://dbarrett40@bitbucket.org/dbarrett40/ceda-samples.git
To build these sample programs run the linux-build-samples.sh script as follows:
cd ~/cedanet/repos/ceda-samples
sudo ./linux-build-samples.sh
Note that the script is run with sudo to allow it to install a python package called pypizza.
To run the sample programs, use the following commands. The 'cedatests' folder contains the ceda database files which are written by the sample programs.
mkdir ~/cedatests
cd ~/cedanet/repos/build/ceda-samples/linux-x64-shared-RelWithDebInfo/bin
./ConsoleTest
./exThread
./exLss
./exCedaScript
./exObject
./exPersistStore
./exRmi
./exOperation
./exPython
./exPython2