Author Topic: How to include libwxgtk2.8-0-ansi libraries into my linux executable.  (Read 4208 times)

Offline papafreebird

  • Single posting newcomer
  • *
  • Posts: 8
Hopefully this is not considered a programming topic and won't get closed. 

I need help getting my executable to be self sufficient.  My program will not run on other linux systems without the user first installing an external library libwxgtk2.8-0-ansi.  I would like to include that library into my executable so that the end user will not have to install anything else other than my program. 

Any help would be appreciated.
« Last Edit: May 27, 2008, 05:23:26 pm by papafreebird »

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
You have to link to a static library, here I give you a link to the wxwidgets compilation wiki page:
http://wiki.wxwidgets.org/Compiling_WxWidgets

You should ./configure --help to see a list of available flags before compiling.

Offline papafreebird

  • Single posting newcomer
  • *
  • Posts: 8
Thanks I appreciate the link.  I didn't compile wxwidgets.  I installed them through synaptic package manager of Ubuntu linux.  Are you saying I need to compile my own wxwidgets as a static library?