Creating plugins Windows 10 - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Creating plugins Windows 10 (/Thread-Creating-plugins-Windows-10) |
Creating plugins Windows 10 - Tom Swift - 01-31-2021 Hi, all. Has anyone managed to make a plugin in Windows 10 using Visual Studio or Code::Blocks? I managed to find gimp-master.zip and gtk-master.zip but for the life of me can't seem to get it to compile. Could someone give a quick run down of how to get it going in Windows? Thanks. RE: Creating plugins Windows 10 - Tom Swift - 01-31-2021 OK. A little bit of progress. I guess you would need to build a plugin from the command line: Code: gimptool-2.0.exe --build PluginName.c However, it's complaining with this... Code: 'pkg-config' is not recognized as an internal or external command, You can get it and it's dependencies here: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip Unfortunately, these don't work on my AMD 64-bit machine. I'll keep digging. Update. You need to do the following to get pkg-config going... Go to http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ Download the file pkg-config_0.26-1_win32.zip Extract the file bin/pkg-config.exe to C:\MinGW\bin Download the file gettext-runtime_0.18.1.1-2_win32.zip Extract the file bin/intl.dll to C:\MinGW\bin Go to http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28 Download the file glib_2.28.8-1_win32.zip Extract the file bin/libglib-2.0-0.dll to C:\MinGW\bin Except now it's giving me this: Code: Package gimpui-2.0 was not found in the pkg-config search path. I have no idea where gimpui-2.0.pc is located. I'll keep digging. I created a blank file named 'gimpui-2.0.pc' and dropped it in MinGW/bin I've set PKG_CONFIG_PATH without quotations to MinGW/bin is located and it now says this: Code: Package 'gimpui-2.0' has no Name: field Progress... but now I gotta' figure out what goes in this .pc file. RE: Creating plugins Windows 10 - Tom Swift - 02-01-2021 Alrighty, looks like gimpui-2.0.pc contains: Code: prefix=@prefix@ Now it's telling me this: Code: Package gimp-@GIMP_PKGCONFIG_VERSION@ was not found in the pkg-config search path. Is this some kind of cruel joke? sigh... I'll keep going. RE: Creating plugins Windows 10 - Tom Swift - 02-01-2021 OK. I just said 'screw it' and filled in the fields Code: includedir=<my project path>/includes Now I get... Code: gcc -I<my project path> -o'main' 'main.cpp' -mwindows -L<my project path> -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 Getting warmer... Damn, they do NOT make this easy. RE: Creating plugins Windows 10 - Tom Swift - 02-01-2021 After that last error message, I'm wondering now as to where the contents of gimp-master.zip & gtk-master.zip should be located. Should all these be added to the includes directory? RE: Creating plugins Windows 10 - Tom Swift - 02-01-2021 Alright... I'm tapping out. Include files are referencing header files that don't exist. cairo.h comes to mind. I only found a gimp-cairo.h and renaming it only breaks it more. I guess the developers only test on Linux machines. Good night and good luck. |