Discussion:
mingw-w64 build.
Mohd Radzi Ibrahim
2014-09-17 00:43:05 UTC
Permalink
Hi,

wx = 3.0.1
os = ubuntu 14.04

I build the library using this configure options:

../configure prefix=/usr/local/w32dll --host=i686-w64-mingw32
--enable-shared

Configured wxWidgets 3.0.1 for `i686-w64-mingw32'

Which GUI toolkit should wxWidgets use? msw
Should wxWidgets be compiled into single library? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets support Unicode? yes (using
wchar_t)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.6 no
wxWidgets 2.8 yes
Which libraries should wxWidgets use?
STL no
jpeg builtin
png builtin
regex builtin
tiff builtin
zlib builtin
expat builtin
libmspack no
sdl no


after make and make install, the lib created in /usr/local/w32dll/lib
contains suffixes i686-w64-mingw32.dll.a

The problem is, when I use 'wx-config --libs' I have those without the
suffixes returned:

-L/usr/local/w32dll/lib -Wl,--subsystem,windows -mwindows
-lwx_mswu_xrc-3.0 -lwx_mswu_webview-3.0 -lwx_mswu_html-3.0 -lwx_mswu_qa-3.0
-lwx_mswu_adv-3.0 -lwx_mswu_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0
-lwx_baseu-3.0


Is there something missing in my ../configure that causes this to happen?

Thank you in advance.


best regards,
Radzi.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-09-17 10:07:17 UTC
Permalink
On Wed, 17 Sep 2014 08:43:05 +0800 Mohd Radzi Ibrahim wrote:

MRI> ../configure prefix=/usr/local/w32dll --host=i686-w64-mingw32
...
MRI> The problem is, when I use 'wx-config --libs' I have those without the
MRI> suffixes returned:

This is a known bug in wx-config, I think you should be able to work
around it by passing --host=i686-w64-mingw32 to it explicitly.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Mohd Radzi Ibrahim
2014-09-21 07:38:03 UTC
Permalink
Thanks for the suggestion.

My solution is putting --build=x86_64-linux during configure resulting
wx-config that uses the library with correct suffix.

best regards,
Radzi.
Post by Vadim Zeitlin
MRI> ../configure prefix=/usr/local/w32dll --host=i686-w64-mingw32
...
MRI> The problem is, when I use 'wx-config --libs' I have those without the
This is a known bug in wx-config, I think you should be able to work
around it by passing --host=i686-w64-mingw32 to it explicitly.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...