Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Ploempie on October 20, 2013, 01:15:53 am

Title: Learning wxWidget
Post by: Ploempie 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?
Title: Re: Learning wxWidget
Post by: stahta01 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 (http://wiki.codeblocks.org/index.php?title=Comparison_of_wxSmith_features)

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

Tim S.

Title: Re: Learning wxWidget
Post by: Ploempie 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.
Title: Re: Learning wxWidget
Post by: BlueHazzard 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!!)?
Title: Re: Learning wxWidget
Post by: Ploempie 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?

Title: Re: Learning wxWidget
Post by: stahta01 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 (http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef)

Site to get generic wxWidgets help is http://forums.wxwidgets.org/ (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.
Title: Re: Learning wxWidget
Post by: stahta01 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 (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.
Title: Re: Learning wxWidget
Post by: Ploempie 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