libhttpserver icon indicating copy to clipboard operation
libhttpserver copied to clipboard

QUESTION 32 bit?

Open johntaves opened this issue 3 years ago • 2 comments

I'm trying to make a 32 bit version.

I think I got libmicrohttp to compile 32 bit because I see the -m32 on the compile and link lines from make and after I installed it my program's compile now fails only trying to get the 32 bit version of libhttpserver

I tried setting CFLAGS and LDFLAGS to "-m32" and also ../configure CFLAGS=-m32 and LDFLAGS=-m32. Both give me "configure: error: "libmicrohttpd not found"" at the end of ../configure

Any help is appreciated. Thanks,

johntaves avatar Jan 05 '21 01:01 johntaves

Hey,

I suspect this might be a bug in the configure. The library does a bit of magic to find libmicrohttpd (see: https://github.com/etr/libhttpserver/blob/master/configure.ac#L96 ) without using pkgconfig. I think that code is causing the issue you see. I'll need to play with it a bit to see if it can work the way it is or I need to re-add pkgconfig to support similar use-cases.

etr avatar Jan 16 '21 06:01 etr

Hey, sorry for the late response. Did you try setting CXXFLAGS to -m32 too? That did it for me.

etr avatar Mar 07 '21 05:03 etr