-
Notifications
You must be signed in to change notification settings - Fork 7
Windows development
Install CodeBlocks as per the setup guide. Use the installation with MINGW included. My versions at the time of writing are CodeBlocks 25.03 and wxWidgets 3.2.8.
Edit config.gcc and enter these parameters
MONOLITHIC = 1
USE_UNICODE = 1
BUILD = release
Clone the source code and these things will need to be changed:
Obviously my path is E:\dev\wxwidgets but change it to your path.
In Project->Project Build Options there are many things to be set. Use the "Original GCC Compiler" that is already installed.
Compiler settings -> Other compiler options
wxTED: --pipe --mthreads
You may see wx-config --cflags but this is for Linux and can be ignored.
Compiler Settings->Search Directories wxTED:E:\dev\wxwidgets\wxWidgets-3.0.5\include Debug: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll\mswu Release: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll\mswu
Compiler Settings-> #defines set these options for wxTED
__WXMSW__
WXUSINGDLL
wxUSE_UNICODE
Under Linker settings->Link libraries enter libwxmsw30u.a. This should be the name of the dll in your wxwidgets lib->gcc_dll folder.
wxTED: Other linker options : -mthreads wx-config --libs -lwininet
Debug Link Libraries: libwxmsw30u.a
Release Link Libraries: libwxmsw30u.a
Under Search Directories Compiler wxTED: E:\dev\wxwidgets\wxWidgets-3.0.5\include Debug: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll\mswu Release: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll\mswu
Under Search Directories Linker wxTED: Debug: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll Release: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll
Under Search Directories Resource Compiler wxTED: E:\dev\wxwidgets\wxWidgets-3.0.5\include Debug: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll\mswu Release: E:\dev\wxwidgets\wxWidgets-3.0.5\lib\gcc_dll\mswu
Make sure that under Build Options->Compiler options that static libgcc and static libstdc++ are checked.
If it can't find wx\setup.h then it will be in wx\msw\setup.h. Copy the setup.h to the correct location and then edit values that you might want like UNICODE 1.