-
Notifications
You must be signed in to change notification settings - Fork 0
building pas
This being Linux, building from source seems unavoidable. Sigh.
- Get git.
apt-get install git
- Clone the repository.
git clone https://github.com/pkivolowitz/pas.git
- Get the mysql c++ connector.
apt-get install libmysqlcppconn-dev
- Get Google Protocol Buffers (proto3) located here:
https://github.com/google/protobuf/releases/tag/v3.0.0
Ubuntu comes with protoc2. You need protoc3.
One way to resolve this is by removing protoc2.
You may need to compile proto3 from source - especially if you want ARM.
Follow directions here:
https://github.com/google/protobuf/blob/master/src/README.md
- Get go.
apt-get install golang-go
- Set $GOPATH, typically ~/go.
cd
mkdir go
export GOPATH=~\go
- Get go helpers
go get -u github.com/golang/protobuf/protoc-gen-go
- Get libpulse-dev
apt-get install libpulse-dev
- Get libavcodev
apt-get install libavcodec-dev
- Get libavformat
apt-get install libavformat-dev
- Rebuild pas proto commands with (rom the pas root directory):
protoc -I=protos --cpp_out=protos/cpp --go_out=protos/go protos/commands.proto
-
The pas server finally builds. Try the command-line client. It ought to build as well.
-
Edit server/db_component.cpp to set the IP address of your mysql server.
-
Create the MySQL schema.
-
Run
pacmd list-sinks
after attempting server.out. Attempting server.out first will cause the pulseaudio system to start enabling pacmd to work.
Note the alsa names. These are what the server will attempt to open. More later.
- Install ffmpeg.
apt-get install ffmpeg
- Install curses
apt-get install ncurses-dev
pas is Copyright © 2017 by Perry Kivolowitz - see license