TPU SOUND PROJECT

Index:

  1. Introduction
  2. HW requirements
  3. SW requirements
  4. UPnP services used
  5. The UPnP control point
  6. The UPnP media renderer (smart speaker)
  7. The user interface

Appendix (UPnP control point):

Set Up a Running CP - General Procedure (cont'd)

8. Compile and run the control point script

Finally, we are able to compile, with two simple makefile commands, the whole CP sources; with the first, all the class objects are put in the obj/ folder, and then linked to produce the final executable bin/cps:

$ cd ~/cp/controlpoint/controller

$ make controlPointServiio

From the same directory, once finish to compile the main executable, we can issue a second command to produce and copy each .cgi script in the correct path (inside web server interface folder):

$ make interface2All

During the copy from bin/ to cgi-bin/, the root priviledge is required, and so at least the first time one root password has to be prompt by the user (sudo commands). Once compiling instructions are completed, in order to enable background autorun for the control point once the system is power up (very useful in a Raspberry Pi), a single line has to be added to the /etc/rc.local file:

[...]

sudo <PATH_TO_CPS_EXECUTABLE>/cps &

[...]