cross problem at gpgme

Marcus Brinkmann marcus.brinkmann at ruhr-uni-bochum.de
Fri Mar 13 22:41:57 CET 2009


Oguz Yarimtepe wrote:
> I have a cross compile problem of gpgme. Although i had set the
> LD_LIBRARY_PATH and LDFLAGS i am getting errors at the make process of
> gpgme. 
> 
> Below is how i compile:
> 
> ./configure --host="sh4-linux"  --prefix="$ROOTDIR/usr"
> --enable-maintainer-mode --without-pth-test
> --with-gpg="$ROOTDIR/usr/bin" --with-gpgsm="$ROOTDIR/usr/bin"
> --disable-largefile --with-pth=$ROOTDIR/usr

Oooh, you got some paths wrong.

1. --prefix must be the *host* path.  This means that it should just be
"/usr", not $ROOTDIR/usr.  But this breaks make install, so ...

2. ... you need to specify $ROOTDIR with make install:
   $ make install DESTDIR="$ROOTDIR"

3. --with-gpg and --with-gpgsm also must be *host* paths, and in fact the full
   filename to the gpg binary, so:
   --with-gpg=/usr/bin/gpg --with-gpgsm=/usr/bin/gpgsm

   These files do not need to exist.  They are not used at build time (unless
you run the test suite, which is disabled when cross compiling).

The --with-pth spec is fine.

Good luck,
Marcus




More information about the Gnupg-devel mailing list