[Geany] [PATCH] cross-compile issues.

Yura Siamashka yurand2 at xxxxx
Tue Feb 19 00:25:38 UTC 2008


Hi

After seeing such vigor discussion about vcdiff on windows I finely
decided to find out what is really happening. The first step is
compiling geany.

So I follow Cross Compile instruction on geany web page.
1) Here is script to fix pkgconfig prefix variables, that instruction
suggested to write. (Maybe we should place it somewhere on geany web
page and make link to it from Cross Compile page?)

I used used "configure" "make" approach to get geany.exe. Here is issues
I encounter and patch for them.

1) scintilla/ScintillaGTK.cxx, Windows.h should be changed to windows.h
since cross compiler is still case sensitive. This should be probably
reported to Scintilla.

2) Does windows version need GEANY_PREFIX, GEANY_DATADIR, GEANY_LIBDIR,
GEANY_LOCALEDIR? If so need to define them probably in configure.in. For
now I commented them.

3) Using hardcoded i386-mingw32msvc as cross-compile target is not very
nice. I replaced /usr/local/cross-tools/bin/i386-mingw32msvc-windres
with $(host)-windres in makefile.am. 

Also I used:

test "x$target" != "x${target##*mingw}";

to detect windows cross-compile, but perhaps ## syntax is bashism.
Anyone know how to check it better?

4) Checks for unix domain socket and vte should be placed after mingw
detection, since windows have no such things.

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.


p.s I was able to run geany in wine, but something nasty happend with
fonts. I see only rectangles. I guess I will find it tomorrow.

p.p.s. At download page http://geany.uvena.de/Download/Releases written
that geany-0.13_setup.exe  contains GTK 2.10, but installer said it is
2.12.

-- 
Best regards,
Yura Siamashka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_pkgconfig.sh
Type: application/x-shellscript
Size: 257 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080219/4bdba615/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross-compile-mingw32.patch
Type: text/x-patch
Size: 6821 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080219/4bdba615/attachment-0001.bin>


More information about the Users mailing list