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
Experienced Solver
Experienced Solver
Posts: 50
Joined: Tue Apr 13, 2021 1:10 am
Location: Buenos Aires, Argentina
Contact:

swap exisintg project config

Post 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?
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4183
Joined: Sun Jan 03, 2010 5:45 pm

Re: swap exisintg project config

Post 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.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: swap exisintg project config

Post by ONEEYEMAN »

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: 4183
Joined: Sun Jan 03, 2010 5:45 pm

Re: swap exisintg project config

Post 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?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: swap exisintg project config

Post 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.
El_isra
Experienced Solver
Experienced Solver
Posts: 50
Joined: Tue Apr 13, 2021 1:10 am
Location: Buenos Aires, Argentina
Contact:

Re: swap exisintg project config

Post 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 .
Post Reply