Page 1 of 1

help with a project

Posted: Thu Jul 11, 2013 6:32 pm
by vette8413
I have a project and i need to write a gui in c++ on the raspberry and im not sure on what to install and how to access it. i am a newbie so a step by step would be helpful

Re: help with a project

Posted: Thu Jul 11, 2013 6:34 pm
by Davespice
Hi there!
How much programming have you done? If not much than I might suggest not to start with C++, maybe start with Python or Scratch first and when you get a bit more confident then move onto C++?

See what everyone else thinks.

Re: help with a project

Posted: Thu Jul 11, 2013 6:38 pm
by vette8413
I have done come c++ but have access to programming teachers that are well versed in it. I have done several programs with visual studios and was kind of looking for something along those lines i need to make a screen with text and then a text box for input plus have 2 counters. the counters need to be controlled by some switches ran through the giop pins

Re: help with a project

Posted: Thu Jul 11, 2013 6:46 pm
by Davespice
Okay well maybe GTK+ might be a good way to go. This is a framework for doing GUI applications under X.
Here is a beginners tutorial on that; https://developer.gnome.org/gtk-tutorial/2.90/
Or just google "c++ gtk tutorial"

You'll need to run this command to pull down the dev files so you'll be able to reference it in your C++ code.

Code: Select all

sudo apt-get install libgtk2.0-dev
With regards to an IDE though you might find it easier to do the programming work on say a Windows PC or a Mac, access the file system of the Pi remotely and only use the Pi to build and run your code. The X desktop on the Pi is a bit slow and web browsing is quite laborious.
Something like this if you're on Windows; http://blogs.arcsoftwareconsultancy.com ... etworking/
And this if you're on OSX or Linux; http://gettingstartedwithraspberrypi.tu ... th-bonjour