User forums > General (but related to Code::Blocks)

How to release build a wxWidgets project?

(1/2) > >>

Otto:
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.

stahta01:
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.

Otto:
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.

oBFusCATed:
`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.

Otto:

--- 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
--- End quote ---

Is that shared, monolithic... ?

Navigation

[0] Message Index

[#] Next page

Go to full version