Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: How to build WinPT [ Reply ]
By: Timo Schulz on 2007-09-28 18:48
[forum:1164]
You can disable glib support for gpgme.
WinPT does not use glib and thus the gpgme glib
dependency is not needed.

RE: How to build WinPT [ Reply ]
By: Florian Roth on 2007-09-27 23:10
[forum:1159]
Ok, it compiled.
What I did:

Download
ftp://ftp.gtk.org/pub/glib/2.14/win32
- glib-2.14.1.zip
and
- glib-dev-2.14.1.zip
copied it to ~/w32root

unzip glib-2.14.1.zip
unzip glib-dev-2.14.1.zip

Then to includes
cd includes

mv glib-2.0/* .

Then again the autogen --build-32 in the gpgme directory and it worked fine.

Thanks to all for the helpful tips.

RE: How to build WinPT [ Reply ]
By: Florian Roth on 2007-09-27 19:48
[forum:1158]
I get an error while compiling gpgme

Error is:
w32-glib-io.c:35:18: glib.h: No such file or directory

although I've installed glib in all flavors.

Compilation tried on Debian 4 stable.
- libgpg-error is version 1.5 and compiles well
- gpgme is version 1.1.5 and trows this error
version 1.1.3 as well

Any idea why this fails?



RE: How to build WinPT [ Reply ]
By: Ben St on 2006-03-21 00:10
[forum:202]
That's fine.
... but I have to learn examinations for the next two weeks. :(
Ben

RE: How to build WinPT [ Reply ]
By: Bill Foster on 2006-03-17 20:08
[forum:201]
Ben,

I just learned something else. You probably noticed that the .exe files we compile are much larger than the ones we download. To reduce their sizes, run this command, from the directory where they are loacated, on each one of them: /usr/i586-mingw32msvc/bin/strip -s

For instance, /usr/i586-mingw32msvc/bin/strip -s gpg.exe

Still learning,
Bill

RE: How to build WinPT [ Reply ]
By: Bill Foster on 2006-03-15 00:54
[forum:192]
Ben,
My mistake. The command './configure --enable-maintainer-mode && make' is done when compiling for Linux. And that's after './autogen', without the '--build-w32'.

I'd just gotten home, and I was tired. But evidently you did the right thing.

All's well that ends well,
-Bill

RE: How to build WinPT [ Reply ]
By: Ben St on 2006-03-14 20:45
[forum:190]
Bill,

it worked ...
But I found gpg.exe and gpgv.exe in .../g10 and gpgsplit.exe in .../tools .
(I didn't see the ask './configure --enable-maintainer-mode && make', but I used it and it worked.)

Ben

RE: How to build WinPT [ Reply ]
By: Bill Foster on 2006-03-12 23:28
[forum:186]
Ben,
That's great! I'm glad everything worked out.

You can do basically the same thing with gnupg.
The only thing different is after the ./autogen --build-w32 command comes back, it will ask you to enter './configure --enable-maintainer-mode && make' (without the quotes, of course), then when that command finishes, sign-on as 'root' in the gnupg directory, and enter 'make install'. The gpg.exe, gpgsplit.exe, and gpgv.exe files should be in /usr/local/bin/ directory, and four more .exe files should be in /usr/local/libexec/gnupg directory.

Cross-compiling is fun!!
-Bill

RE: How to build WinPT [ Reply ]
By: Ben St on 2006-03-12 09:05
[forum:184]
Bill,

wonderfull! I got it!
Your instructions were very good. (But I used the administration of packages for install the packages.)
I tested it on my old computer (200MHz, 64MB Ram), +/-1 hour for compiling - the next time I use my normal computer :)
Thanks a lot!

Ben
P.S.: Debian is ok, I like it.

RE: How to build WinPT [ Reply ]
By: Bill Foster on 2006-03-11 21:53
[forum:183]
Ben,

I'm assuming you have the latest Debian Linux, that is 3.1 (Sarge).

First you want to install the cross-compiler.

You can use this web-page to locate and download packages: http://www.debian.org/distrib/packages
Enter 'mingw' (without the quotes) in the Keyword box, in the Search package directories area, near the bottom of the page.
Press the Search button, and that should bring up a page with three packages listed. Download all three packages.

From a console terminal, signed on as 'root', and from the same directory where the 3 packages were downloaded to, enter these commands:

dpkg -i mingw32-runtime_3.7-1_all.deb
dpkg -i mingw32-binutils_2.15.94-20050118.1-1_i386.deb
dpkg -i mingw32_3.4.2.20040916.1-2_i386.deb

From the same search area on the web page as before, download these packages:
pkg-config-0.17.2-1
autoconf-2.59a-3
autotools-dev_20050422.1
automake-1.9.6-3 (from the 'testing' Distribution)
libtool-1.5.6-6
libglib2.0-data_2.6.4-1
libglib2.0-dev_2.6.4-1

Using the same 'dpkg -i' command, and signed on as 'root', install those packages.

From ftp://ftp.gnupg.org/gcrypt/libgpg-error/ download libgpg-error-1.2.tar.bz2,
From ftp://ftp.gnupg.org/gcrypt/gpgme/ download gpgme-1.1.2.tar.bz2
From http://wald.intevation.org/frs/?group_id=14 download winpt-0.11.8.tar.bz2

Unzip each package to separate directories.
From a console terminal, signed on as you (NOT ROOT), enter the command 'mkdir ~/w32root' (without the quotes).

cd to the libgpg-error-1.2 directory.
Enter these commands (without the quotes):
'./autogen --build-w32'
'make'
'make install'

Do the same three commands from the gpgme-1.1.2 directory, and from the winpt-0.11.8 directory.

When completed, the winpt.exe file should be in the ~/w32root/bin directory.

Please let me know how everything turns out.

-Bill

RE: How to build WinPT [ Reply ]
By: Ben St on 2006-03-11 18:31
[forum:182]
Bill Foster,
I installed Debian Linux ... (I used Debian never before.)
Sorry, but I'm not sure which packets I have to install now. :)

Ben

RE: How to build WinPT [ Reply ]
By: Bill Foster on 2006-03-10 19:42
[forum:180]
Ben,
Well, I think I know what I was doing wrong. As usual, I was making things more complicated than they needed to be.

I had re-installed Debian a second time with more packages, and in the process of re-installing the cross-compiler, and remembering I had to install pkg-config from the last time, I went ahead and compiled the 0.20 version from freedesktop.org. But the 0.17 Debian package was already installed. And I think that is what had the cross-compiler confused, and unable to find the header files from glib-2.0. So after re-installing Debian a third (and final!) time, everything went smoothly, and I was able to cross-compile WinPT.

It's really much easier than it appears at first. So don't give up. I'll help you if I can.

-Bill Foster

RE: How to build WinPT [ Reply ]
By: Ben St on 2006-03-10 18:06
[forum:177]
Thanks!
But I had unfortunately no success. My knowledge about Linux and programming under Linux (especially cross compiling) is too small.
Ben

RE: How to build WinPT [ Reply ]
By: Bill Foster on 2006-03-07 15:06
[forum:172]
Benjamin,

Like you, I too was using SuSE (9.3) in my attempts at cross-compiling WinPT.
I found this page helpful:
http://basic.xullum.net/mingw32/
where you'll find the link to here: http://mirzam.it.vu.nl/mingw/
with the instructions on getting the RPMs needed.

After building the cross-compiler, you'll need to download the latest versions of the source files for the two librarys needed for building WinPT.
They are "libgpg-error" and "gpgme" found at ftp://ftp.gnupg.org/gcrypt/

I've been at this for a little over a month now, (you'll find my "Two questions...." topic on this same forum), but please note that I still haven't been able to sucessfully cross-compile the "gpgme" library yet, even after switching to a Debian Linux platform to use their cross-compiler.

The "libgpg-error" library compiled very easily. But for "gpgme" I can't seem to get the configure script file to find and/or recognize the glib-2.0 package that I've installed (and re-installed many times). :-)

Long story made short, you'll run into some problems, and you'll have to figure out how to get around them. But for me, that's part of the fun of learning this. And I know it will make seeing that "WinPT.exe" file so much more rewarding.

Best of luck to you. And if you are able to cross-compile "gpgme", I would greatly appreciate it if you would post it here how you did it. And if and when I figure it out, I'll do the same.

-Bill Foster

How to build WinPT [ Reply ]
By: Ben St on 2006-03-06 20:33
[forum:169]
Hi,
I want to built WinPT (but my knowledge over programming under Linux is limited).
I tried it with Linux (Suse) and Cygwin (full installation).
The answer of "./autogen.sh --build-w32" is "Cross compiler kit not installed".
I installed some paketes (with "cross ..." in its description) and googled without success.
What shall I do? Which paketes?
Ben