The discussion was in year 2022, but it looks like I need to make a conclusion in year 2024.
1, I can define a global compiler variable(gcv) in the "Menu->Settings->Global variables" dialog.
If I'm using msys2's gcc, and the library is installed by pacman, I can set a gcv named
wx_config like below:
wx-config-msys2.exe --prefix=$(TARGET_COMPILER_DIR)
If I'm using a wx library build myself, and I can set the
wx_config gcv like below:
wx-config.exe --prefix=E:/code/wxWidgets-3.2.4 --wxcfg=gcc_dll/mswud --debug
Note that the "--debug" option or the "--wxcfg=gcc_dll/mswud" depends on what kinds of wx library did you built. Maybe you are using release build, so the "--debug" option can be removed, and the correct option could be: "--wxcfg=gcc_dll/mswu".
2,
Now, in your cbp build options, you need to write such options:
For compiler options, you can write:
For resource compiler options, you can write:
`$(#WX_CONFIG) --rcflags`
For linker options, you can write:
`$(#WX_CONFIG) --libs all`
Note either
wx-config.exe or
wx-config-msys2.exe was built from the
eranif/wx-config-msys2: wx-config tool for MSYS2 based installation of wxWidgets using the mingw64 repositoryBTW:It looks like when using a gcv, the "#" should be used, so the below command will cause errors.
`$(WX_CONFIG) --libs all`
BTW2:You must use the
Backtick in the compiler options.