Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

OpenCV GTK linker error

📅 2017-Dec-23 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ error, gtk, opencv ⬩ 📚 Archive


I had compiled OpenCV and when I linked my application with OpenCV libraries, I got this error:

Undefined reference to gtk_main_iteration


Since I had no need for GTK, I recompiled OpenCV with the setting WITH_GTK=OFF. Linking with the resulting OpenCV libraries worked fine.

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧