To compile the CLient use this command
"gcc PetCareClient.c -lpthread" or use makefile.

Then when running you must specify a port on the command line. 

To run the Arduino program it must be loaded in the Arduino IDE and the Adafruit libraries must be imported.The IP for the Pi is hardcoded and will need to be changed.