[Geany] [PATCH] cross-compile issues.

Enrico Tröger enrico.troeger at xxxxx
Fri Feb 22 10:04:21 UTC 2008


On Thu, 21 Feb 2008 23:23:10 +0200, Yura Siamashka <yurand2 at gmail.com>
wrote:

> Hi
> 
> On Thu, 2008-02-21 at 17:26 +0100, Enrico Tröger wrote:
> > On Thu, 21 Feb 2008 02:29:25 +0200, Yura Siamashka <yurand2 at gmail.com>
> > wrote:
> > 
> > > Hi
> > > 
> > > On Wed, 2008-02-20 at 13:38 +0100, Enrico Tröger wrote:
> > > 
> > > > > 5) Windows doesn't have fnmatch, I replaced it's usage with modified
> > > > > function I found in one of the files. But this is really smell bad.
> > > > I'm not yet sure why this happens but fnmatch is available via liberty,
> > > > IIRC. At least when I wrote the cross-compiling stuff, it worked.
> > > > Right now, I have some other problems which prevent me from further
> > > > testing, e.g. configure doesn't detect the host correctly. And I don't
> > > > have the time to test further now.
> > > 
> > > 2) Since without fnmatch.h we fail to build, I included fnmatch
> > > implementation that come internally with gtk.
> > I'm still thinking it isn't necessary. I did compile it without any
> > extra fnmatch code. I just have to remember and test how I did it. Give
> > me a little time, please. If I'm wrong, I'll apply your patch.
> 
> Well, the current situation is like this:
> 
> configure check for useable fnmatch.h, if it is not found. build will
> fail, unless fnmatch present in one of the dependant libs (I think that
fnmatch is present in libitery.a. Because of these problems, I mentioned
this in http://geany.uvena.de/Support/CrossCompile#libiberty

And I also mentioned the fnmatch when I wrote:
"After that, you should have an executable in the src directory named
geany.exe. If you got some linker errors like undefined reference to
`_fnmatch' or undefined reference to `_lrealpath', you need another
version of libiberty."

Unfortunately, the link to the working libitery.a.gz was broken but I
fixed it and it should work again.

And I added your fix_pkgconfig.sh script on the cross-compile wiki page,
thank you.

Well, I got my cross-compile setup working again and committed a bunch
of changes. It's probably not yet perfect but it should be better:
- some optimisations in src/Makefile.am
- synced the list of Windows libraries to link against with the ones
from makefile.win32
- removed unnecessary -I /usr/local/cross-tools from
scintilla/Makefile.am
- I had to replace $(host)-windres with $(host-alias)-windres. The
variables have the following values on my system:
host = i386-pc-mingw32
host_alias = i386-mingw32
So, $(host)-windres would be i386-pc-mingw32-windres but we need
i386-mingw32-windres (without the "pc"). I'm not sure how portable this
is, please test it whether it works on your machine.


There is still some more work needed in plugins/Makefile.am which isn't
doesn't build any DLl's at all at the moment.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080222/e06d57ae/attachment.pgp>


More information about the Users mailing list