Hi I created a program using OpenCV in windows with visual studio. My program has two cpp files. Both of them include many library files. The main function is in detect.cpp file and the other file is lbp.cpp. In windows the program runs just fine and can get every library files and header files. But when I tried to compile the program in Linux it did not compile and gave me error. For simplicity I put the both the cpp files in the same directory and placed this directory in opencv samples folder. But when I tried to compile I got this error:
fatal error: precomp.hpp: No such file or directory
But this file is there in /modules/core/src folder. I am not sure why it cannot find the file. How can I pass the file location while compiling? can anyone suggest me some tutorial how I can compile my code? I searched some articles but they are not helping.
Thanks