On Tue, 11 Jan 2022 10:09:30 -0800 (PST) Andre F wrote:
AF> I've been trying to compile wxWidgets(for c++) on Window 10 home & pro
AF> machines with zero luck!! I tried various things on 2 separate
AF> computers with various versions 3.1.5, 3.0.5 & 2.8.12!
Please forget about 2.8.12, it's 10+ years old and there is really no
possible scenario in which you would need it if you're just starting with
wx.
AF> Method #1
AF> ../configure --with-msw --build=x86-winnt-mingw64 --disable-shared
AF> --disable-threads
AF> make MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=release DEBUG_FLAG=0
AF>
AF> Method #2
AF> ../configure -q --with-msw --disable-debug --disable-debug_gdb
AF> --disable-shared --enable-stl --with-opengl --enable-std_string
AF> --enable-std_iostreams
AF> make MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=release DEBUG_FLAG=0
AF>
Both of those use a weird mix of non-default options and make variables,
why exactly did you decide to do it like this? Our documentation at
https://docs.wxwidgets.org/trunk/plat_msw_install.html#msw_build_mingw
gives much simpler commands:
$ ../configure --enable-debug
$ make
that really ought to work out of the box. Of course, most of the options
you've used are actually harmless, but I have doubts about some of them,
e.g. --build option value seems invalid and I don't know how does configure
handle it. You also most definitely shouldn't define any variables on make
command line when using configure.
AF> The latest error(method #2):
AF> ../src/msw/mediactrl_am.cpp: In member function 'void
AF> wxAMMediaEvtHandler::OnActivex(wxActivexEvents&)';
AF> ../src/msw/mediactrl_am.cpp:2234:10: error: narrowing conversion of
AF> '4294966687' from 'unsigned int' to 'long int' [-Wnarrowing]
AF> case 0xfffffd9f: // readystatechange in IActiveMovie2 and IMediaPlayer
This is not an error or, rather, it's only an error if you use -Werror.
It is a warning and one that should have been fixed by fd81223a2f (Fix
c++11-narrowing error when using clang on Windows, 2018-08-16) and so
shouldn't occur in 3.1.5. So while I have no idea what exactly is happening
on your machine, you clearly are not building 3.1.5 with the options above
(because they don't include -Werror anywhere).
AF> I looked up the switches being used and I'm not sure what to do at this
AF> point. I've tried compiling with many variations of the above
AF> methods(adding and removing switches). Nothing seems to make a difference.
You really shouldn't try to randomly add options without understanding
what do they do.
AF> Can someone please provide bungle proof instructions on how to install it?
See the URL above. Please entirely delete your build directory, run
configure without any options except those that you really need (e.g. you
can use --disable-shared if you need static libraries, of course) and then
just make.
AF> I've been coding using wxWidgets via debian and it's nice
You can also cross-compile wxMSW from Debian if you're feeling more
comfortable there.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/