-
Notifications
You must be signed in to change notification settings - Fork 8
Build Linux (Ubuntu)
Samie Bee edited this page Jul 13, 2023
·
1 revision
The following process was tested from a fresh Ubuntu 16.04 LTS VM running under
Parallels 13.3.2 on MacOS 10.14.2.
- enable Canonical Partners repo
- update all
These are the only dependencies we install via apt-get:
$ sudo apt-get install cmake
On Ubuntu, I found this was required to get Qt5 working (see qt.io):
$ sudo apt-get install libxcb-xinerama0
Optional but recommended:
$ sudo apt-get install git vim doxygen graphviz cloc
Download and run the latest 64-bit installer from:
E.g.:
$ bash Miniconda3-latest-Linux-x86_64.sh
$ conda update conda
$ git clone git@github.com:wasatchphotonics/Enlighten.git
$ git clone git@github.com:wasatchphotonics/Wasatch.PY.git
By default only root can access USB devices; this allows standard users to access our VID/PID.
$ cd Wasatch.PY
$ sudo cp udev/10-wasatch.rules /etc/udev/rules.d
Create conda env:
$ cd Wasatch.PY
$ rm environment.yml
$ cp environments/conda-linux.yml environment.yml
$ conda update -n base -c defaults conda
$ conda env create -n wasatch3
Run demo:
$ conda activate wasatch3
$ pip install crcmod bleak
$ python -u demo.py
$ conda deactivate
$ cd enlighten
$ cp environments/conda-linux.yml environment.yml
$ conda env create -n conda_enlighten3
$ cd enlighten
$ conda activate conda_enlighten3
$ export PYTHONPATH="../spyc_writer/src:../Wasatch.PY:pluginExamples:.:enlighten/assets/uic_qrc"
$ python -m pip install -r requirements.txt
$ python -m pip install pyudev
(Workaround to PySide2 dependency problem: rebuild_resources from Windows)
$ scripts/rebuild_resources.sh
$ python scripts/Enlighten.py
$ make linux-installer