bskari / pi-rc

Turn your Raspberry Pi into a radio controller for RC toys.
GNU General Public License v2.0
139 stars 38 forks source link

Cannot compile #1

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

I've tried compiling the program just like you stated but I encounter compilation errors and the compiler terminates. Output:

Lavanoid@LavanoidPiFour ~/pi-rc $ scons scons: Reading SConscript files... scons: done reading SConscript files. scons: Building targets ... gcc -o pi_pcm.o -c -g -Wall -Wextra -Wshadow -Wswitch-enum -Wswitch-default -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Werror pi_pcm.c pi_pcm.c:64:21 fatal error: jansson.h: No such file or directory compilation terminated. scons: *\ [pi_pcm.o] Error 1 scons: building terminated because of errors.

Please help.

bskari commented 10 years ago

Oops, sorry, you'll need to install the Jansson library to parse the JSON messages. You should just be able to run apt-get install libjansson-dev to install that dependency.

I'll update the README and add this step.