Page 1 of 1

swap exisintg project config

Posted: Tue Apr 13, 2021 1:14 am
by El_isra
hi.
i have a codeblocks wxWidgets project created with wxWidgets 3.0.5 (built as molithic, unicode and shared)
i'm compiling right now another wxwidgets 3.0.5, this one for static linking...
wich settings must be modified in order to use the static linking?

Re: swap exisintg project config

Posted: Tue Apr 13, 2021 5:55 am
by PB
Firstly, you need to make sure you built wxWidgets in the required configurations.

Secondly, if the only change is switching from the shared to the static build and everything else (including monolithic) remains the same, you only need:
1. Change the include and library folders, where there is now "gcc_dll", there needs to be "gcc_lib"
2. Remove WXUSINGDLL from the preprocessor defines.

You will still need GCC's DLL, unless you build both wxWidgets and your application linking to those statically, see more e.g. in my guide.

Re: swap exisintg project config

Posted: Tue Apr 13, 2021 12:32 pm
by ONEEYEMAN
Hi,
Unless you want to modify the CodeBlock sources, please drop monolithic build option.

Thank you.

Re: swap exisintg project config

Posted: Tue Apr 13, 2021 1:11 pm
by PB
ONEEYEMAN wrote:
Tue Apr 13, 2021 12:32 pm
Unless you want to modify the CodeBlock sources, please drop monolithic build option.
I don't see how the two are connected?

Re: swap exisintg project config

Posted: Tue Apr 13, 2021 1:15 pm
by ONEEYEMAN
PB,
They are not.
However, the OP already have a reason for rebuilding the library - I'm giving him/her another one to make his/her life and life of all of us easier. :D

Thank you.

Re: swap exisintg project config

Posted: Wed Apr 21, 2021 1:41 pm
by El_isra
at the end the best choice was to create a new project configured with the new wxwidgets libs and transfer every source file from the old project into the new one :D .