The comandline that worcks is:PB wrote: ↑Thu Jul 23, 2020 2:17 pmWhat are you missing in the command line compared to the official build (static vs shared aside)? That is how I build wxWidgets for myself with MSVC (the only difference there is using nmake instead of mingw32-make). If you want another options, you cannot use prebuilt wxWidgets binaries anyway? Even if you wanted to use more options, you just copy and paste the options once, save the command as a batch and you are done for ever.
Distributing DLLs in 21st century is no big deal, pretty much every popular programs does that, even in the portable version. Static linking, in particular the CRT, has also many disadvantages and is generally not recommended, feasible, or even with some libraries possible.
Just out of curiousity, which other C++ compiled libraries are you familiar with, providing prebuilt static binaries for a large range of compilers? To me it seems you are not very experienced in C++: compared to other large libraries, wxWidgets build extremely easily, painlessly (as they have no external dependencies, at least on MSW), and quick.
Not sure what API are you talking about. You also seem to confuse CPU time with human time. You can let the build go in the background, you do not need to fearfully stare at the scary command line window all the time the build is going on. Additionally, compared to resources wasted in other ways, building wxWidgets
Even a power user knows how to use system environment variables, it is a must for a real programmer. When building wxWidgets, one commonly uses at least PATH and WXWIN (strongly recommended by the wxWidgets Team). But hey, finally something we can agree on: wxWidgets and C++ seems to be not the best fit for you.
Code: Select all
mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 UNICODE=1 SHARED=0 CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport"
I still disagree that C++ is not my thing, saing that wxWidgets and C++ is not my thing is also incorect, as the problem I have with wxWidgets exists for at least all external C++ APIs I know. Unfortunately every C++ application with GUI has to use external API(s) and wxWidgets is just the best from all known by me APIs.