Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Otto on July 04, 2011, 12:51:11 am

Title: How to release build a wxWidgets project?
Post by: Otto on July 04, 2011, 12:51:11 am
Hi,

Whenever I build my project (release target), the output directory only contains an executable regarding my code.
How can I choose to include wxWidgets as a static and dynamic library (2 different builds) ?

Thanks.
Title: Re: How to release build a wxWidgets project?
Post by: stahta01 on July 04, 2011, 02:16:22 am
Read this for the basic info on wxWidgets
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef

Then, use the wx wizards and compare the project setting.
The header search folder and the library search folders are changed to match the options.

Note: The library names are also changed.

Edit: If not Windows OS, then see wx-config documentation.

Tim S.
Title: Re: How to release build a wxWidgets project?
Post by: Otto on July 05, 2011, 12:33:46 am
Sorry, forgot to say. It's Linux (Debian 64bit).

If I understand it, I have to choose those build options and they have to match the options in which wxWidgets was built?
If so, how can I know those options? I downloaded a already compiled version from APT package manager.
Title: Re: How to release build a wxWidgets project?
Post by: oBFusCATed on July 05, 2011, 12:52:53 am
`wx-config --cflags` and `wx-config --libs` give you the correct options.
Inspect the projects created by the wizard.
Read the manual about wx-config also.
Title: Re: How to release build a wxWidgets project?
Post by: Otto on July 05, 2011, 01:01:39 am
Quote
otto@motavia:~/iherb-proxy$ wx-config --cflags
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread

otto@motavia:~/iherb-proxy$ wx-config --libs
-pthread   -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8

Is that shared, monolithic... ?
Title: Re: How to release build a wxWidgets project?
Post by: oBFusCATed on July 05, 2011, 01:10:37 am
Re-read my post again please.
Here we do not support wxWidgets or any other library, please ask in an appropriate forum/mailing list.