mrousavy / gimp-rpc

A GIMP plugin to display Discord Rich Presence made with C
MIT License
13 stars 2 forks source link

Linux compilation issue #5

Open GGORG0 opened 3 years ago

GGORG0 commented 3 years ago
$ git clone https://github.com/mrousavy/gimp-rpc.git
gimptool-2.0 --install-admin gimp-rpc/plugin.c

Cloning into 'gimp-rpc'...
remote: Enumerating objects: 56, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 56 (delta 0), reused 5 (delta 0), pack-reused 50
Receiving objects: 100% (56/56), 582.07 KiB | 1.04 MiB/s, done.
Resolving deltas: 100% (17/17), done.
gcc  -I/usr/include/gimp-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/pixman-1 -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -pthread  -o '/usr/lib/gimp/2.0/plug-ins/plugin/plugin' 'gimp-rpc/plugin.c'  -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgegl-0.4 -lgegl-npd-0.4 -lm -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -ljson-glib-1.0 -lbabl-0.1 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz -lfontconfig -lfreetype  
gimp-rpc/plugin.c:1:10: fatal error: gimp/libgimp/gimp.h: No such file or directory
    1 | #include <gimp/libgimp/gimp.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

even when I try to compile it with gcc manually:

$ gcc gimp-rpc/plugin.c
gimp-rpc/plugin.c:1:10: fatal error: gimp/libgimp/gimp.h: No such file or directory
    1 | #include <gimp/libgimp/gimp.h>
      |          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

trying to do git submodule update --init --recursive in that directory clones the gimp and discord-rpc folders, but I still get the same error.

Edit: Also, I'm using: Arch Linux:

$ uname -a
Linux ggorg-arch 5.10.55-1-lts #1 SMP Sat, 31 Jul 2021 08:12:13 +0000 x86_64 GNU/Linux

Gimp 2.10.24:

gimp --version
GNU Image Manipulation Program version 2.10.24

GCC 11.1.0

$ gcc --version
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
bl4ze1g commented 2 years ago

I have the same issue, have you come up with a fix yet?

EndangeredNayla commented 1 year ago

git clone with --recursive OR git submodule update --init will pull the gimp submodule in the repo where these files are located. that should get you building :)

LordEnder-Kitty commented 1 month ago

I tried both things. It's still giving the error. I'm on Linux Mint 21.3. I tried with both the flatpak version and the proper version.