dietpi-roon-IQaudio. Installing IQ_rot for rotary encoder

I’m afraid that I am a total newby looking for some help.

I am trying to install a rotary encoder for volume control on my pi with IQaudio digiAMP+. Vague instructions are at: http://www.iqaudio.com/downloads/IQaudIO.pdf

Has anyone managed to do this and get it working? If so, could you explain how please.

I have installed wiringpi and am told by Gordon at IQ that I also need libasound2 and libasound2-dev, both of which I have installed. I also had to install git. but when I run the gcc command from root it can’t find the file and if I run it from /tools I am getting:

root@DietPi:~# cd tools
root@DietPi:~/tools# gcc IQ_rot.c -oIQ_rot -lwiringPi -lasound
IQ_rot.c:40:0: warning: "TRUE" redefined
 #define TRUE 1
 ^
In file included from IQ_rot.c:16:0:
/usr/local/include/wiringPi.h:32:0: note: this is the location of the previous definition
 #  define TRUE (1==1)
 ^
IQ_rot.c:41:0: warning: "FALSE" redefined
 #define FALSE 0
 ^
In file included from IQ_rot.c:16:0:
/usr/local/include/wiringPi.h:33:0: note: this is the location of the previous definition
 #  define FALSE (!TRUE)
 ^

Any ideas please?

Thanks

Val

Sorted now:
https://community.roonlabs.com/t/digiamp-rpi3-dietpi-adding-rotary-encoder-help-needed/29425/5

Hi…It appears dnsmasq creates a loopback once installed, causing the value to report 127.0.0.1. Either way, Google DNS servers are being used on your system.I tried a few other methods of scraping DNS on the system, all provide 127.0.0.1.

turnkey pcb assembly

So Im looking for the dream cast web browser CDI, but I cant find it. Is there a way to burn GDIs onto discs?