Author Topic: How to release build a wxWidgets project?  (Read 4306 times)

Offline Otto

  • Multiple posting newcomer
  • *
  • Posts: 21
How to release build a wxWidgets project?
« 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.
« Last Edit: July 04, 2011, 01:23:16 am by Otto »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: How to release build a wxWidgets project?
« Reply #1 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.
« Last Edit: July 04, 2011, 02:18:21 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Otto

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: How to release build a wxWidgets project?
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to release build a wxWidgets project?
« Reply #3 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Otto

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: How to release build a wxWidgets project?
« Reply #4 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... ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to release build a wxWidgets project?
« Reply #5 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]