Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

OpenCV GTK linker error

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

Problem

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

Undefined reference to gtk_main_iteration

Solution

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 • 🐘 @codeyarns@hachyderm.io📧