I would remove what installation you have of opencv, and start fresh.
Glancing at the code, or rather what's in the repo. If you haven't, try installing opencv separate from here:
https://github.com/Itseez/opencv, or by simply typing sudo apt-get install opencdv-lib. You aren't losing anything by not using their altered opencv that can change one camera's internal settings. V4L2 does this for ANY camera, well, for the most part.
Once you think it is done, run the following program to ensure everything is working:
https://github.com/rr1706/sample
Then I would try to run their program if you desire.
So in your first post you say you are using the Pi, but on your latest one you say the roboRIO....
As for your last comment indirectly about compilers: grab a book about compilers and read it. The general cs courseload for any university should include a class on compilers.