When you call a function include ocl like cv::SiftFeatureDetector, will pop up a linker error, Rebuilding openCV from source solved my problem.