Author Topic: Learning wxWidget  (Read 6925 times)

Offline Ploempie

  • Single posting newcomer
  • *
  • Posts: 4
Learning wxWidget
« on: October 20, 2013, 01:15:53 am »
Hello,

I programmed for many years only console applicationes.
Now I like to learn to build GUI's.
I want to use Code::Blocks for it.
I am using Linux Mint Mate.
I wonder how to learn to built GUI's. with Code::Blocks.
Is wxSmith the same as wxWidget and is there a tutorial to lear building GUI's with it?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Learning wxWidget
« Reply #1 on: October 20, 2013, 01:26:25 am »
Is wxSmith the same as wxWidget and is there a tutorial to lear building GUI's with it?

1. wxSmith is NOT the same as wxWidgets.
2. wxSmith is a CB Plugin that helps to create wxWidgets CB projects. I have only used wxSmith enough to verify the plugin loads and closes without crashing. Added link to wiki page below that says its a tutorial.
3. wxSmith is often compared to other things like listed here http://wiki.codeblocks.org/index.php?title=Comparison_of_wxSmith_features

Try reading http://wiki.codeblocks.org/index.php?title=WxSmith_tutorials Note: I have NOT read it, myself.

Tim S.

« Last Edit: October 20, 2013, 01:41:08 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 Ploempie

  • Single posting newcomer
  • *
  • Posts: 4
Re: Learning wxWidget
« Reply #2 on: October 20, 2013, 02:22:14 am »
Thank you  stahta01 for the information and the links.
Sadly enough it is not possible here to use Code::Blocks and wxSmith.
I built a wxWidget project, that means only gave it a name and tried to compile and build.
But there are all kinds of  fatal errors about headerfiles that are missing.
And when I opened Code::Blocks there was a yellow frame appearing in the right down corner telling that some plugins were not loaded because of a different version of SDK.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Learning wxWidget
« Reply #3 on: October 20, 2013, 02:32:21 am »
C::B Version? C::B source? Have you installed wxWidgets (wxWidgets is not included in C::B!!)?

Offline Ploempie

  • Single posting newcomer
  • *
  • Posts: 4
Re: Learning wxWidget
« Reply #4 on: October 20, 2013, 02:49:26 am »
I have C::B 12.11 which I downloaded from the Linux Mint Software Center.
I have not installed wxWidgets because I thought I came with C::B.
It is only for Python in the Linux Mint Software Center and I don't know anything about Python and don't want to.
So how can I get it and make it work for C::B 12.11 for just C++ Gui programs?


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Learning wxWidget
« Reply #5 on: October 20, 2013, 02:49:58 am »
C::B Version? C::B source? Have you installed wxWidgets (wxWidgets is not included in C::B!!)?

These need answered before we can help much.

Another wiki link to help with wxWidgets under Code::Blocks (CB).

http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef

Site to get generic wxWidgets help is http://forums.wxwidgets.org/

This site is good for CB and wxSmith help; but, for some wxWidgets stuff the wxForum is much better.

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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Learning wxWidget
« Reply #6 on: October 20, 2013, 02:51:56 am »
I have C::B 12.11 which I downloaded from the Linux Mint Software Center.
I have not installed wxWidgets because I thought I came with C::B.
It is only for Python in the Linux Mint Software Center and I don't know anything about Python and don't want to.
So how can I get it and make it work for C::B 12.11 for just C++ Gui programs?



Install wxWidgets Dev packages is needed under most Linux Distros. I suggest doing the newest 2.8 version of wxWidgets and NOT doing the 2.9 test release.

From Google http://forums.linuxmint.com/viewtopic.php?f=47&t=76829
NOTE: Use at your own risk; I am NOT a linux person!!
Code
$ sudo apt-get install libwxgtk2.8-dev libwxbase2.8-dev

Tim S.
« Last Edit: October 20, 2013, 03:18:27 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 Ploempie

  • Single posting newcomer
  • *
  • Posts: 4
Re: Learning wxWidget
« Reply #7 on: October 20, 2013, 08:53:48 pm »
I did the commandline you gave Tim, and now I succeeded building and running my first program with wxSmith. :)
But I still get a message in the right downcorner in a yellow square:

List of failed plugins:

libFileManager.so
libTreeSearch.so
libwxsmithcontribitems.so
liblib_finder.so