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

Moderator: Project members

Post Reply
Message
Author
rexdf
500 Syntax error
Posts: 12
Joined: 2015-04-27 06:47
First name: Eixa7use
Last name: aKeilee8

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

#1 Post by rexdf » 2015-04-28 18:54

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.

User avatar
botg
Site Admin
Posts: 35539
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

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

#2 Post by botg » 2015-04-28 20:21

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.

Post Reply