![]() In my situation, the compile took about 20 seconds, so wait for it. Select Finish.ĬB will create a project with several files that create the equivalent of minimal.exe.Ĭompile this in CB. Next screen: leave features unselected for this test build. Next screen: default should have GNU GCC Complier with compiler and debugger checked. Next screen: enter location for wxWidgets (for me C:\wxWidgets-3.1.3). Next screen: select wxFormBuilder and Frame Based When it asks for the project type, scroll down to the bottom and select the wxWidgets icon. Open Code::Blocks and start a new project. The executable "minimal.exe" should be in C:\wxWidgets-3.1.3\samples\minimal\gcc_mswud. On successful completion you can build the "minimal" sample.Ĭhange directory to C:\wxWidgets-3.1.3\samples\minimal.Įxecute the make to build the wxWidgets libraries: Mingw32-make -f makefile.gcc SHARED=0 BUILD=release MONOLITHIC=0 Mingw32-make -f makefile.gcc SHARED=0 BUILD=debug MONOLITHIC=0 Again, in my case: C:\wxWidgets-3.1.3\build\mswĮxecute the following commands, in order: Built by MinGW-W64 project)Ĭhange directory (cd) to \build\msw\ inside the wxWidgets directory. The last line should be gcc version 8.1.0 (x86_64_posix-she-rev0. For my installation this is C:\Program Files\CodeBlocks\MinGW\bin\gdb.exe Click on Default and enter the path to the MinGW debugger. If you want to be able to debug go to Settings -> Debugger. ![]() In CB go to Settings -> Compiler -> Linker Settings -> Add. Put them here in your installation: C:\Program Files\CodeBlocks\MinGW\libĪdd to linker settings. There are, apparently, two library files missing from this installation:ĭownload: Release: mingw64runtime-v7-git20191109-gcc9-tdm64-1.zip Entries should match the location of wxWidgets on your computer. Create a new global variable named wx and define the base, include and lib fields. Run Code::Blocks and go to Settings -> Global Variables. If you don't know how to add MinGW to the Windows PATH environment variable: If you installed in the default location, the path to add is: C:\Program Files\CodeBlocks\MinGW\bin Add the path for the MinGW compiler to the Windows PATH environment variable. Run the Code Blocks installer, accept defaults for everything. WxWidgets: Release: Windows ZIP or Windows 7Z For others like me, this might be useful.Ĭode Blocks: Release: I had no experience with wxWidgets, but quite a lot with Code::Blocks.
0 Comments
Leave a Reply. |