PDA

View Full Version : Programming with C++ and WxWidgets



audax321
April 23rd, 2005, 04:48 AM
Hello,

I'm just starting out learning C++ on Linux and so far it is going very well. I was just wondering how to install the needed files under Ubuntu Hoary to start using wxWidgets to create GTK applications.

Also, after I get used to programming in Linux I want to start to port any applications I make to Windows. I read that this was possible with wxWidgets, but would I need to compile them under Windows, or are their ways to compile the ported apps under Linux? And if there are, what do I need to install to compile Windows apps under Linux?

Thanks... :)

audax321
April 23rd, 2005, 09:57 AM
Okay, I think I just had to install these:

libwxgtk2.5.3
libwxgtk2.5-dev
wx2.5-headers


Now, does anyone know where I can find some good tutorials about how to use these header files to actually make applications in Linux? The tutorials at WxWidgets website are not that great. Or if there are other cross platform compatible tools to do GUI programming in Linux that have good tutorials and use C++, I would be willing to try those out as well.

Thanks.

(I always end up giving up at learning how to program in Linux right about now and going back to Windows, because I can never find any tutorials... hopefully this will be different...)

sas
April 23rd, 2005, 01:11 PM
Okay, I think I just had to install these:

libwxgtk2.5.3
libwxgtk2.5-dev
wx2.5-headers


Now, does anyone know where I can find some good tutorials about how to use these header files to actually make applications in Linux? The tutorials at WxWidgets website are not that great. Or if there are other cross platform compatible tools to do GUI programming in Linux that have good tutorials and use C++, I would be willing to try those out as well.

Thanks.

(I always end up giving up at learning how to program in Linux right about now and going back to Windows, because I can never find any tutorials... hopefully this will be different...)
You could use Glade (http://glade.gnome.org). It's a little tricky to get get used too, but I think it's still worth it. It compiles on windows too I believe...

Tutorials:
http://www.kplug.org/glade_tutorial/glade2_tutorial/glade2_introduction.html
http://wingtk.sourceforge.net/ishan/starting.html

audax321
April 23rd, 2005, 07:04 PM
sas, thanks i will look into Glade, although i found a hello world example for wxwidgets i'm trying to figure out right now. its not compiling too well though...

Primefalcon
February 8th, 2009, 05:12 AM
you could try OpenGL http://www.opengl.org/

eye208
February 8th, 2009, 05:44 AM
you could try OpenGL http://www.opengl.org/
Congratulations! You just resurrected a thread that had been dead for almost 4 years! =D>

jpeddicord
February 8th, 2009, 06:07 AM
Congratulations! You just resurrected a thread that had been dead for almost 4 years!

Let's put this thread to rest by locking it inside a casket and throwing it in the lake.

Or just by closing it. Yeah, let's go with that.