I downloaded the userland repository from https://github.com/raspberrypi/userland and I wanted to compile just RaspiVid.c file. It's because I wanted to use the RaspiVid.c code in my project. But i have problem with compilation even RaspiVid.c file itsel.
I'm tried use command g++ RaspiVid.c -lmmal_core -lmmal_util -lmmal_vc_client -lvcos -lbcm_host -lvcms -lvchq_arm -lpthread -o myRaspiVid
for complation but it says that some files are missing.. When I copied files in the directory, there was problem with association (includes) of this files... Compiled on Raspberry Pi 2.
Is there some CMake pro that is able to resolve this problem and write me down some compile bash/make/cmake file?
Thanks for every response guys.