Page 1 of 1

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

Posted: Sun Aug 25, 2019 3:41 am
by Deluge
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.

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

Posted: Mon Aug 26, 2019 1:06 am
by stahta01
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.

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

Posted: Mon Aug 26, 2019 5:27 pm
by stahta01
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