-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Tim Colson edited this page Mar 17, 2021
·
4 revisions
sudo apt install -y golang
sudo apt install -y gcc libgl1-mesa-dev xorg-dev git
git clone https://github.com/cjeanneret/gopolloplus
cd gopolloplus
go install .
This creates a gopolloplus binary in ~/go/bin/
- Install go - DONE! (Fedora 33 has go v1.15 pre-installed.)
- If you want go v1.16, wait for Fedora 34 (~2021-Apr) or download/extract golang into /usr/local/go as per the Go install page; add that dir to your path. Note that go 1.16 install command does not appear to automatically get all program dependencies.
- Install Fyne.io dependencies
- Fyne.io Getting Started - provides installer commands for grabbing a bunch of dependencies with the dnf package manager, shortened version shown here for Fedora:
sudo dnf install libXcursor-devel libXrandr-devel mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel
- Note: TBD if all are actually required; note that xorg-dev from notes above is not in the list, but xorg-x11-proto-devel is in the dependencies of the installed packages.
- Verify Fyne installed...
- TimC - I suggest you verify the Fyne GUI toolkit works. The instructions say to go get two packages, and then you can simply type "fyne_demo" - but that seems to be incorrect in my case because ~/go/bin was not in my path.
go get fyne.io/fyne/v2
-
go get fyne.io/fyne/v2/cmd/fyne_demo
-->fyne_demo
or possibly~/go/bin/fyne_demo
- Success means you'll get a sample GUI app that launches. Nifty!
go install
-
gopollowplus
-- to run the program; note, check the logs as you may not have access to the /dev/ttyUSB0 port, this generally requires access to the dialout group.
Installing Go and building the project is similar on MacOS to Linux, with a few notable differences:
There is no need to install gcc or the libgl1-mesa-dev and xorg-dev libraries required by Fyne - the GUI builder for Go, but you will need the Xcode command line tools.
- Download the MacOS GoLang Installer Pkg
- Install Xcode command line tools
xcode-select --install
- Clone the project
git clone https://github.com/cjeanneret/gopolloplus
- Change into the gopolloplus directory, and run
go install .
If the system complains about dependencies - you may need to get them manually withgo get .
Note: go version 1.15 appears to get all the dependencies during install, but 1.16 does not.
- Plug in the FDF Console to USB
- List the /dev/tty.usbserial* files - take note
- Copy the configs/config.sample.ini to config.ini
- Set the serial device from above for the "socket"
Run the app -> ./gopolloplus -c <config_file_name>