I am building a simple GUI application which I have successfully deployed and run on my Raspberry PI dev board. However, due to issues with OpenCV being dependent on GTK+ v2.0, I have to back-port my application to an old version of GTK+. I'm already familiar with changing include paths, and so on, and library linking orders in my makefiles. However, when I make all the necessary changes, a fatal error occurs during build.
Building dependencies file for main.o
In file included from /opt/rpi/usr/include/gtk-2.0/gdk/gdkscreen.h:32:0,
from /opt/rpi/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
from /opt/rpi/usr/include/gtk-2.0/gdk/gdk.h:32,
from /opt/rpi/usr/include/gtk-2.0/gtk/gtk.h:32,
from inc/ui.h:8,
from main.c:10:
/opt/rpi/usr/include/gtk-2.0/gdk/gdktypes.h:55:23: fatal error:
gdkconfig.h: No such file or directory
I've confirmed that the missing file, gdkconfig.h
exists for my GTK+ v3.0 installation:
find /opt/rpi/usr/include -iname "gdkconfig*"
./gtk-3.0/gdk/gdkconfig.h
But there is no such file for my GTK+ v2.0 installation. I've already installed the latest version via apt-get
, but still no luck.
Are there any solutions to this issue?
Thank you.
libopencv_highgui
would have done the trick too. You should never downgrade an application if other choices are available. - liberforce