Author Topic: how to create statically linked apps using codeblocks+wxWidgets on Linux  (Read 2426 times)

ciremai

  • Guest
hello guys, I want to learn to create wxWidgets apps using Code::Blocks 16.01 on Salix Linux. and I have a couple of a questions.
I have installed codeblocks with wxWidgets-2.8.12. the wxWidgets was configured with

--enable-shared --enable-debug

the questions are
1. how to create a statically-linked wxWidgets App so that I would be able to run the app in other computer without installing wxWidgets library? 
2. considering this wxWidgets-codeblocks configuration, can I create a wxWidgets-3 apps? If I choose to create a wxWidgets-3 project that available in the create-new-project-wizard the output is still in 2.8.12 version.

Thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Step 1: Build a static wxWidgets of the version you want to use.
Step 2: Learn about your Linux Distro on how to test wx-config to default to the correct version of wxWidgets.

Please read the rules http://forums.codeblocks.org/index.php/topic,9996.0.html

Tim S.
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