You are here

Gimptool

Hi, I am new to Gimp and like to try compiling Gimp plug-ins using gimptool-2.0, but the compilation shows message.

I compile follow the instruction from GIMP developer Resources http://developer.gimp.org/writing-a-plug-in/1/index.html :

gimptool-2.0 --install hello.c

It shows error below :

'pkg-config' is not recognized as an internal or external command, operable program or batch file.
No output from 'pkg-config' --libs gimpui-2.0

Where does the 'pkg-config' comes from ?

Do I need a separate c compiler to compile or gimptool-2.0 will do the compiling and installation of the plug-in. The Gimp version I installed is Gimp-2.8.

There are documentation says that a pkgconfig file (.pc) is required, do I need to create this .pc file ?

Can anyone advise how to solve this error?

You'll need a complete development enviroment to compile GIMP plug-ins - including a compiler, libraries, their corresponding header files and other tools.

gimptool just removes the need to call the compiler yourself and remember all the parameters it needs, it doesn't replace it.

The input files for pkg-config come with the development packages you'll need.

For apt-based Linux distros, the command

apt-get build-dep gimp

should install most of the dependencies, iirc including pkg-config itself.

Thanks fir the advice. I am using MSVC++ 2010 Express to compile. I encounter errors :

: unresolved external symbol _gimp_main referenced in function _WinMain@16
: error LNK2019: unresolved external symbol _gimp_plugin_menu_register referenced in function _query
: error LNK2019: unresolved external symbol _gimp_install_procedure referenced in function _query
: error LNK2019: unresolved external symbol _g_log referenced in function _run

I have tried setting the subsystem to "console" as well as "windows" both throw out the same errors. Is there any library that I missed out or is there special setting for compiling plug-ins ?

I don't think you will succeed with the Microsoft tools, this is all targeted at compilers like GCC.

I check GCC website, the compiler is running on Linux OS. So I need to install Ubuntu on my desktop. There so many different version, which compatible version of GCC and Ubuntu do you recommend ?

GCC is available on many platforms, including Microsoft Windows - the package management of the common Linux dsitriutions makes it much easier to get all the packages installed, though.

I'm not totally sure if the following installs gcc as well, but try

apt-get build-dep gimp

in a terminal window on your Ubuntu system. This will pull in all the library packages a gimp build depends on, at least.

on Windows, check out partha.com.
He may still have instructions for doing this there.

-Rod

Subscribe to Comments for "Gimptool "