Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Mac 10.10.4, opencv3.0 in qt creator can't use imwrite

$
0
0
In my program, I want to use imwrite to save a picture, but I got two compile error, which says: error: symbol(s) not found for architecture x86_64 error: linker command failed with exit code 1 (use -v to see invocation) this is my program: #include #include int main() { cv::Mat image=cv::imread("/Users/yinxiangnan/Desktop/lena.jpg"); cv::namedWindow("My Image"); cv::Mat image1; cv::flip(image,image1,1); cv::imshow("My Image",image1); cv::imwrite("/Users/yinxiangnan/Desktop/test.bmp",image1); cv::waitKey(0); return 0; } I can run the program in Xcode, and I can also run it after comment the imwrite line.

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>