$ mkdir build
$ cd build
- $ cmake ../ -DCMAKE_BUILD_TYPE=debug
+ $ cmake ../ -DCMAKE_BUILD_TYPE=debug -DSTRICT_COMPILATION_CHECKS=ON
$ make
If you want to check the code with the ''sparse'' static analysis tool you
$ cmake ../ -DCMAKE_C_COMPILER=cgcc
$ make
+=== Valgrind
+
+You can run the test program under the http://valgrind.org/[valgrind]
+dynamic analyzer by using a command like:
+
+ $ valgrind --leak-check=full --show-reachable=yes --track-origins=yes \
+ ./bin/picoproj -W 800 -H 480 -f my_image.jpg