[Geany-Devel] Failed to build 1.25-release with the makefile.win32 build system

Enrico Tröger enrico.troeger at xxxxx
Wed Jul 15 22:35:28 UTC 2015


On 13/07/15 18:35, Dimitar Zhekov wrote:
> On both my older and newer MinGW-s, make -f makefile.win32 ended up with:
> 
> make[1]: Entering directory '.../geany/plugins'
> gcc -O2 -Wall -pipe -mms-bitfields -DHAVE_CONFIG_H -DGTK -I..
> -I../src -I../scintilla/include -I../tagmanager/src
> -Id:/opt/gtk+/include/gtk-2.0 -Id:/opt/gtk+/lib/gtk-2.0/include
> -Id:/opt/gtk+/include/atk-1.0 -Id:/opt/gtk+/include/cairo
> -Id:/opt/gtk+/include/gdk-pixbuf-2.0 -Id:/opt/gtk+/include/pango-1.0
> -Id:/opt/gtk+/include/glib-2.0 -Id:/opt/gtk+/lib/glib-2.0/include
> -Id:/opt/gtk+/include -Id:/opt/gtk+/include/gettext
> -o htmlchars.o -c htmlchars.c gcc -shared htmlchars.o
> -L"d:/opt/gtk+/lib" -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
> -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0
> -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
> -liconv  -o htmlchars.dll
> 
> htmlchars.o:htmlchars.c:(.text+0x2a): undefined reference to
> `utils_str_equal'
> htmlchars.o:htmlchars.c:(.text+0x3e): undefined reference to
> `utils_str_equal'
> htmlchars.o:htmlchars.c:(.text+0x68): undefined reference to
> `document_get_curre
> nt'
> htmlchars.o:htmlchars.c:(.text+0x7c): undefined reference to
> `sci_has_selection'
> htmlchars.o:htmlchars.c:(.text+0xa8): undefined reference to
> `sci_get_selection_
> contents'
> <long list of additional undefined references>
> 
> Lacking -lgeany perhaps?

Yes, and some more things which are not up2date.
Attached is a simple diff which adds -lgeany and -lgio-2.0.
But there is a make rule missing for signallist.i and maybe more.


> (Personally I'm not a fan of makefile.win32, since you can't build
> geany-plugins with it.)

Is there a reason why you used it?
Waf should do basically and thanks to Thomas' work, building with MSYS2
is very easy and probably the future.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile.win32.diff
Type: text/x-patch
Size: 1675 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20150716/683e9523/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.geany.org/pipermail/devel/attachments/20150716/683e9523/attachment.sig>


More information about the Devel mailing list