Author Topic: How to create a GUI project C::B - LInux?  (Read 626 times)

Code Noob

  • Guest
How to create a GUI project C::B - LInux?
« on: December 23, 2017, 02:11:58 am »
Hello everyone! :)

About 6 minutes ago, I permanently untied all links with Windows and installed Linux. The only programming experience I've had, however, is with Windows languages (VB.NET & C#). I'm entirely new to C++ and have never programmed in any other languages apart from the 2 aforementioned langs. I'd like an element of similarity between the IDE that I'm used to, and Code::Blocks - so I'd like to set up a GUI application.

I saw a tutorial here: https://www.codeproject.com/articles/803106/introduction-to-wxwidgets-gui-programming-with-wxs

My version of Code::Blocks (16.01 - Debian) has 'wx_Widgets' in the 'build targets' dialogue, so I must have wx_widgets installed on my system. However, this is different to the 'wx_Widgets project' seen in the tutorial - I can't create a GUI project with wx_Widgets (or at least I don't know how).

Can someone possibly offer me some advice regarding setting up a GUI (drag and drop controls)?

Thanks for your help in advance, and happy holidays!  :)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6280
    • My Best Post
Re: How to create a GUI project C::B - LInux?
« Reply #1 on: December 23, 2017, 08:06:15 am »
http://wiki.codeblocks.org/index.php/WxSmith_tutorials

I do not use wxSmith; so, no idea how good the CB wiki is on it.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Lives here!
  • ****
  • Posts: 1919
Re: How to create a GUI project C::B - LInux?
« Reply #2 on: December 23, 2017, 08:34:44 am »
Also, if all fails, search for video tutorials on youtube, there are tons of it: http://lmgtfy.com/?t=v&q=wxWidgets+codeblocks+linux

And if you have a problem describe the problem. It makes no sense to say "it does not work, please help". Ask detailed questions, give detailed error messages or even better full build logs. For ex. http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Code Noob

  • Guest
Re: How to create a GUI project C::B - LInux?
« Reply #3 on: December 23, 2017, 03:00:50 pm »
Thanks for your replies,

My question should have been more channeled: "How do I install wxSmith?"

Unfortunately the C::B wikia describes the installation process on Ubuntu - I am using Debian (and I'm very new to it).

@BlueHazzard My issue is not, unfortunately, concerning the compiling of the program, but it's getting to building a program in the designer (wxWidgets project).

Does anybody know of a way to install the plugin(s) mentioned on the wikia page using apt-get?

A Google search doesn't throw much up with regards to this - bear in mind I have the basic wxWidgets package installed.

Thanks for your help. :)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10967
    • Travis build status
Re: How to create a GUI project C::B - LInux?
« Reply #4 on: December 23, 2017, 04:24:47 pm »
Yes, just install the codeblocks-contrib package.

Keep in mind that ubuntu is debian derivate, so most of the instructions for ubuntu work on debian  and vice versa...
(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!]