title: Building wxWidgets Hello world
body: <p>The <a href="http://docs.wxwidgets.org/trunk/overview_helloworld.html" rel="nofollow noreferrer">wxWidgets hello world example</a> does not provide sufficient information to build wxWidgets in any one particular environment.</p>
  
  <p>The <a href="http://wiki.codeblocks.org/index.php/WxWindowsQuickRef" rel="nofollow noreferrer">Code::Blocks wxWidgets hello world example</a> does provide sufficient information, but it does not seem likely that a newbie, or even a quite sophisticated user, could figure out all the necessary steps on their own, because there are arcane magic words required.</p>
  
  <p>The <a href="https://codeyarns.com/2014/07/21/how-to-build-wxwidgets-program-using-cmake/" rel="nofollow noreferrer">Code Yarns example</a> uses CMake, thus could run in many particular environments, but seems to assume that you have already set up wxWidgets and compiled it for your particular environment, and there does not seem to be a CMakeLists.txt file to compile wxWidgets for your particular environment.</p>
  
  <p>wxWidgets is supposed to be cross platform and cross environment, and I am trying to set up a project to compile in several environments: on Windows10 Visual Studio, Windows 10 TDM-GCC, Windows 10 Code::Blocks, Ubuntu Code::Blocks, and Ubuntu 10 gcc.</p>
  
  <p>And apart from the Code::Blocks environments, having trouble.  Apart from Code::Blocks, I cannot find "Hello World" examples that actually set up wxWidgets on the target so that the Hello World will actually compile and run.</p>
  
  <p>The wxWidgets samples directory is not particularly useful, since the samples assume an environment, and do not describe setting up that environment and the actions that will cause the sample to build and run.</p>