swap exisintg project config Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
El_isra
In need of some credit
In need of some credit
Posts: 6
Joined: Tue Apr 13, 2021 1:10 am

swap exisintg project config

Post by El_isra » Tue Apr 13, 2021 1:14 am

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?

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2976
Joined: Sun Jan 03, 2010 5:45 pm

Re: swap exisintg project config

Post by PB » Tue Apr 13, 2021 5:55 am

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.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 5049
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: swap exisintg project config

Post by ONEEYEMAN » Tue Apr 13, 2021 12:32 pm

Hi,
Unless you want to modify the CodeBlock sources, please drop monolithic build option.

Thank you.

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2976
Joined: Sun Jan 03, 2010 5:45 pm

Re: swap exisintg project config

Post by PB » Tue Apr 13, 2021 1:11 pm

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?

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 5049
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: swap exisintg project config

Post by ONEEYEMAN » Tue Apr 13, 2021 1:15 pm

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.

El_isra
In need of some credit
In need of some credit
Posts: 6
Joined: Tue Apr 13, 2021 1:10 am

Re: swap exisintg project config

Post by El_isra » Wed Apr 21, 2021 1:41 pm

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 .

Post Reply