Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
254 views
in Technique[技术] by (71.8m points)

c++ - Fatal error: gtk--.h: No such file or directory

My name is Sebastian. I am trying to compile a project under Ubuntu 20. This project is for sending data to a Timex Datalink via a μc (link: https://github.com/dfries/datalink_ironman). In this Github repository is a folder name "graph". Inside this folder is a c++ source file (fun.cc) and a make file. When I open the terminal inside this folder and enter "make" I get the error message "Fatal error: gtk--.h: No such file or directory". But gtk is installed. The command "pkg-config gtk+-2.0 --cflags"gives the output:

-pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16

Has someone an idea how to compile this program?

question from:https://stackoverflow.com/questions/65951994/fatal-error-gtk-h-no-such-file-or-directory

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This program is probably using a very old version of gtkmm from when it was still named gtk--: https://wiki.gnome.org/Projects/gtkmm/FAQ#Why_is_it_named_gtkmm.3F

I would expect to have to do some updates to get it to work with even the most recent version of gtkmm 2.x.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...