bbidulock / libwnck

Fork of the gnome libwnck library.
Other
0 stars 1 forks source link

header not found #1

Open SolarAquarion opened 4 years ago

SolarAquarion commented 4 years ago

../libwnck/libwnck.h:41:10: fatal error: libwnck/wnck-enum-types.h: No such file or directory 41 | #include <libwnck/wnck-enum-types.h> | ^~~~~~~

SolarAquarion commented 4 years ago

make all, is not generating the headers

jakyote commented 2 years ago

libwnck/Makefile.am defines $(wnck_built_headers) and $(wnck_built_cfiles) but not $(BUILT_SOURCES) which is the array autotools generated Makefile seems to actually be looking for

autotools complains about almost every macro used in confiure.ac being deprecated and recommends running autoupdate, unfortunately that doesn't actually address most of the complaints, nor does it detect the issue in libwnck/Makefile.am

there's probably a lot more that should be adjusted in configure.ac and the Makefiles, but at minimum i can successfully build by simply applying the following patch and running autoupdate before ./configure.ac & make

(not sure autoupdate is strictly necessary as it barely touches anything, but it shouldn't hurt)

--- a/libwnck/Makefile.am
+++ b/libwnck/Makefile.am
@@ -239,6 +239,10 @@ inlinepixbufs_pairs =                          \
 inlinepixbufs.h: $(inlinepixbufs_SOURCES)
    $(AM_V_GEN)$(GDK_PIXBUF_CSOURCE) --raw --build-list $(inlinepixbufs_pairs) > $@

+BUILT_SOURCES = \
+   $(wnck_built_headers)   \
+   $(wnck_built_cfiles)
+
 CLEANFILES =           \
    $(wnck_built_cfiles)    \
    $(wnck_built_headers)
bbidulock commented 2 years ago

It builds fine for me without any changes. Be sure to use ./autogen.sh as stated in the README.