Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
User avatar
Deluge
Earned some good credits
Earned some good credits
Posts: 122
Joined: Fri Apr 30, 2010 4:52 am
Location: USA
Contact:

Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib

Post by Deluge » Sun Aug 25, 2019 3:41 am

I apologize for this question because I am sure it has been answered more than once, but I haven't been able to find an answer myself.

I am compiling wxWidgets 3.1.2 on Windows under MSYS2/MinGW-w64. I have no problems compiling. The only issue is that in the make install command, the .dll files are installed to ${PREFIX}/lib instead of ${PREFIX}/bin. Is there a switch I can use to tell it to install all .dll files to ${PREFIX}/bin?

This is part of a shell script with the options that I am using to configure wxWidgets:

Code: Select all

CONFIG_OPTS=(
	--disable-gtktest
	--disable-sdltest
	--with-libpng=sys
	--with-libjpeg=builtin
	--with-libtiff=builtin
	--with-libxpm=builtin
	--with-libiconv=builtin
	--with-regex=builtin
	--with-zlib=sys
	--with-liblzma=builtin
	--with-expat=builtin
)

if ${OS_WIN}; then
	CONFIG_OPTS+=(--with-msw)
fi

LIBTYPE_OPTS=(--enable-shared=yes)

${DIR_CONFIG_ROOT}/configure --prefix="${INSTALL_PREFIX}" ${LIBTYPE_OPTS[@]} ${CONFIG_OPTS[@]}
All other libraries I have built & installed using a GNU Autotools configure script default to installing .dll files to ${PREFIX}/bin. I am not sure why wxWidgets does not do the same, or if there is something I have accidentally done that is causing the files to be installed to ${PREFIX}/lib.

Obviously I can manually copy the files to the ${PREFIX}/bin directory. But I would like to know if there is a reason this is happening & if I can change it in the configure command.
Projects:
Debreate
MyABCs
Stendhal

OSes:
Windows 10 Home (missing my Linux & Freebsd :()

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 269
Joined: Fri Nov 03, 2006 2:00 pm

Re: Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib

Post by stahta01 » Mon Aug 26, 2019 1:06 am

Have you tried using my Msys2 package of mingw-w64-wxWidgets3.1 ?

https://github.com/msys2/MINGW-packages ... Widgets3.1

No binary supplied; but, it should build without problems using "makepkg-mingw".

Tim S.

stahta01
Super wx Problem Solver
Super wx Problem Solver
Posts: 269
Joined: Fri Nov 03, 2006 2:00 pm

Re: Compiling wxWidgets on Win32: DLLs Installed to ${PREFIX}/lib

Post by stahta01 » Mon Aug 26, 2019 5:27 pm

If you are trying wxGTK/Win you might want to look at my mingw-w64-wxWidgets-git package

Code: Select all

https://github.com/stahta01/msys2-mingw-packages/tree/testing/mingw-w64-wxWidgets-git

Post Reply