[Geany-Users] need help building Geany Plugins

Colomban Wendling lists.ban at xxxxx
Tue Apr 17 21:46:13 UTC 2018


Le 14/04/2018 à 13:31, Kevin Klein a écrit :
> On Thu, 12 Apr 2018 at 19:36:38, Colomban Wendling wrote:
> 
>> Okay, that's good, it suggests pkg-config is working fine.  Now, just to
>> be sure, what does
>>
>> $ PKG_CONFIG_PATH=/user/kklein/geany/1.33/lib/pkgconfig pkg-config
>> --cflags --libs geany
>>
>> give you?
> 
> -DGTK -pthread -I//include/geany -I//include/geany/tagmanager
> -I//include/geany/scintilla -I/usr/include/gtk-2.0
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
> -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
> -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15
> -I/usr/include/libdrm -I/usr/include/harfbuzz  -L//lib -lgeany
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
> -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig
> -lgobject-2.0 -lglib-2.0 -lfreetype

The Geany include paths are suspicious, they should start with
"/user/kklein/geany/1.33/", not "//".  There's likely something fishy
with your installation; how did you configure it?  --prefix="" DESTDIR=
/user/kklein/geany/1.33/?  If so, it's not a great solution, you should
have been using --prefix=/user/kklein/geany/1.33/, as DESTDIR is
basically for making an archive out of an installation (e.g. handy for
creating distribution package like .debs or RPMs).

If you didn't, that might be a very bizarre bug, and if you can
reproduce it we'd like to know.

At any rate, the right fix is to have a proper installation.  If it is
otherwise good, you can try and edit
/user/kklein/geany/1.33/lib/pkgconfig/geany.pc and change the "prefix="
line to "/user/kklein/geany/1.33/"

After this is fixed, all should be fine.

> 
>> And similarly for glib.
> 
> Here is the command I ran:
> 
> pkg-config --cflags --libs glib-2.0
> 
> Here is the output:
> 
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lglib-2.0

This looks good to me, so you should not be setting GLIB_CFLAGS at all
(or, if you *really* want, to that value above, minus the -lglib-2.0,
which is the LIBS part).

Regards,
Colomban


More information about the Users mailing list