Skip to content

Windows development

Peter Kwan edited this page Feb 1, 2021 · 4 revisions

Install Codeblocks and wxWidgets.

Install CodeBlocks as per the setup guide. Use the installation with MINGW included. My versions at the time of writing are CodeBlocks 20.03 and wxWidgets 3.0.5.

Installing wxTED

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 (These should be on four lines. Haven't mastered GitHub yet) __GNUWIN32__ __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

Clone this wiki locally