libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Cross Compiing MHD with libgnuTLS


From: Evgeny Grin
Subject: Re: [libmicrohttpd] Cross Compiing MHD with libgnuTLS
Date: Mon, 7 Dec 2020 22:12:36 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

Hi David,

Instead of short form of "host" it's better to use full form. I guess you need --host=arm-none-linux-gnueabi so will not need to specify CC (it will be autodetected as well as all other tools, not only compiler). You should point the path to GnuTLS by --with-gnutls=<path to compiled GnuTLS>. I suspect that you need --with-gnutls=/mnt/hgfs/Projects/GnuTLS/gnutls-3.6.15 Variable `LFLAGS` means nothing to configure and you don't need it neither something like this.

I recommend you to learn more about cross-compiling. Pay attention to --prefix parameter, it could help you. Also check how to use PKG_CONFIG_PATH. If you point it to the right directory (should be "${prefix}/lib/pkconfig") then you don't need to manually specify each library and tricky compiler and linker flags.

--
Wishes,
Evgeny

On 07.12.2020 21:36, DJM-Avalesta wrote:
Hi,

I have managed to cross compile and build libgnuTLS from scratch with all of its dependant libraries, libNettle, libHogweed, libGMP etc.

Now I need to link this with the build of libMicroHttpd.

I use the configure command:-

./configure --host=arm CC=arm-none-linux-gnueabi-gcc --with-gnutls=/mnt/hgfs/Projects/libmicrohttpd-0.9.62/src --enable-https=yes LFLAGS=/mnt/hgfs/Projects/GnuTLS/gnutls-3.6.15/lib/.libs/

but I get this

checking how to find GnuTLS library... -I/mnt/hgfs/Projects/libmicrohttpd-0.9.62/src/include -L/mnt/hgfs/Projects/libmicrohttpd-0.9.62/src/lib -lgnutls
checking for gnutls/gnutls.h... yes
checking for gnutls_priority_set in -lgnutls... no
configure: error: can't find usable libgnutls at specified prefix /mnt/hgfs/Projects/libmicrohttpd-0.9.62/src

It looks like my libgnuTLS library is not right, where am I going wrong?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]