1. คลิกขวาที่ project โฟล์เดอร์ใน eclipse เลือก Properties -> C/C++ Build -> Setting -> Tool Setting -> GCC C++ Compiler -> include
- เลือก add แล้วพิมพ์
/usr/include/opencv
- เลือก Miscellaneous และในช่อง Other flags ให้พิมพ์
`pkg-config --cflags opencv`
2. เลือก Tool Setting -> GCC C++ Linker ที่ Miscellaneous ในช่อง Other flags ให้พิมพ์
`pkg-config --libs opencv`
เท่านี้เราก็พร้อมใช้งาน OpenCV แล้วครับ
No comments:
Post a Comment