Page 1 of 1

How can I link against libwx_baseu_net-3.0-i686-w64-mingw32.a?

Posted: 2015-04-28 18:54
by rexdf
I use the following code to build wx3 and get an HOST_SUFFIX for wx3 library.

Code: Select all

pushd wx3
./configure --host=i686-w64-mingw32 --prefix=${PRE_BUILD_PATH} --enable-static --disable-shared --enable-unicode CPPFLAGS="-I${PRE_BUILD_PATH}/include" LDFLAGS="-L${PRE_BUILD_PATH}/lib"
make
make install
popd
rm -rf wx3
get library like libwx_baseu_net-3.0-i686-w64-mingw32.a libwx_baseu_xml-3.0-i686-w64-mingw32.a

Code: Select all

pushd filezilla
# autoreconf -i
./configure --host=i686-w64-mingw32 --with-tinyxml=builtin --disable-precomp CPPFLAGS="-I${PRE_BUILD_PATH}/include" LDFLAGS="-L${PRE_BUILD_PATH}/lib"
make
It cannot find libwx_baseu-3.0.a etc. If I change HOST_SUFFIX test script in wx3/configure, it works.

Can I use the libwx_baseu-3.0-i686-w64-mingw32.a in Filezilla? I just try to understand the toolchain, so it's not a bug report. I just want to know about how to use this kind of library with HOST_SUFFIX.

Re: How can I link against libwx_baseu_net-3.0-i686-w64-mingw32.a?

Posted: 2015-04-28 20:21
by botg
That's a bug in wx-config as far as I understand it. It doesn't appear to deal correctly with host suffixes in all situations.

Passing --host when not actually cross-compiling confuses the wx build system it seems.