Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile on Ubuntu 21.04 (make error) #6

Open
hellocatfood opened this issue Aug 9, 2021 · 5 comments
Open

Cannot compile on Ubuntu 21.04 (make error) #6

hellocatfood opened this issue Aug 9, 2021 · 5 comments

Comments

@hellocatfood
Copy link

I'm trying to compile this plugin on Ubuntu 21.04. Running autogen.sh goes well but when I run make I get this error

make
make  all-recursive
make[1]: Entering directory '/home/hellocatfood/Desktop/gimp-texturize'
Making all in po
make[2]: Entering directory '/home/hellocatfood/Desktop/gimp-texturize/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/hellocatfood/Desktop/gimp-texturize/po'
Making all in src
make[2]: Entering directory '/home/hellocatfood/Desktop/gimp-texturize/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -pthread -I/usr/local/include/babl-0.1 -I/usr/include/gimp-2.0 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -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/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -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 -I/usr/local/include -DLOCALEDIR=\""/usr/local/share/locale"\" -DDATADIR=\""/usr/local/share/gimp-texturize"\"   -g -O2 -Wall -MT interface.o -MD -MP -MF .deps/interface.Tpo -c -o interface.o interface.c
In file included from /usr/include/gimp-2.0/libgimp/gimp.h:25,
				 from interface.c:3:
/usr/include/gegl-0.4/gegl.h:23:10: fatal error: babl/babl.h: No such file or directory
   23 | #include <babl/babl.h>
	  |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:446: interface.o] Error 1
make[2]: Leaving directory '/home/hellocatfood/Desktop/gimp-texturize/src'
make[1]: *** [Makefile:412: all-recursive] Error 1
make[1]: Leaving directory '/home/hellocatfood/Desktop/gimp-texturize'
make: *** [Makefile:353: all] Error 2

Diving into the make file it looks like it's trying to find babl.h in /usr/local/include/babl-0.1 when it's located in /usr/include/babl-0.1/babl

@lmanul
Copy link
Owner

lmanul commented Aug 9, 2021

Thank you for the report! I will look into this.

@eribertomota
Copy link
Contributor

The same for Debian. Details at https://bugs.debian.org/997101

@lmanul
Copy link
Owner

lmanul commented Nov 12, 2021

I've made a few updates/changes/enhancements, can you try again? Note that you will need to install build dependencies first. On a Debian-based system, sudo apt build-dep gimp-texturize . It builds find for me on Ubuntu 21.10.

@hellocatfood
Copy link
Author

I've run the build-dep command and have other dependencies install and still get exactly the same error, this time on Ubuntu 21.10

@lmanul
Copy link
Owner

lmanul commented Nov 15, 2021

Thank you both for your report! I have modernized things a little bit, using "meson" to build instead of autotools. Could you give it a try? The new instructions on how to compile / install are in the README.md file. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants