OpenCV Library Porting, but is not woorking