mrousavy / gimp-rpc Goto Github PK
View Code? Open in Web Editor NEWA GIMP plugin to display Discord Rich Presence made with C
License: MIT License
A GIMP plugin to display Discord Rich Presence made with C
License: MIT License
where can I find any clear instructions on how to use this code?
$ 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.