PDA

View Full Version : installing wxwidgets



S-V
23rd July 2007, 04:11 PM
I want to install wxwidgets for programming in C++
1. Which rpms do I need to download?

As it written in the docs I need to exec. some configuring/compiling commands in a 'base dir'
2. Where I can find this 'base dir'?

markkuk
23rd July 2007, 05:06 PM
Use yum to install the wxGTK and wxGTK-devel packages.
It's impossible to say what the "base dir" means, you don't provide enough information. Which docs? What are you trying to do?

S-V
23rd July 2007, 05:43 PM
I am trying to launch tutorial/ The first line of it: #include "wx/wx.h"
I have installed wxGTK, wxGTK-devel, wxGTK-gl, but I can't find neither "wx.h" file nor "wx" folder

Also
Here (http://sourceforge.net/project/showfiles.php?group_id=9863&package_id=19629) lies file readme-gtk-2.8.4.txt with
If you compile wxWidgets on Linux for the first time and don't like to read
install instructions just do (in the base dir):

> mkdir buildgtk
> cd buildgtk
> ../configure --with-gtk
> make
> su <type root password>
> make install
> ldconfig

it seems I need to download source, not rpm?

S-V
23rd July 2007, 06:00 PM
Compiling works without any problem with wxGTK-devel installed
Seems here is something like "precompiled headers"?

markkuk
23rd July 2007, 06:01 PM
I am trying to launch tutorial/ The first line of it: #include "wx/wx.h"
I have installed wxGTK, wxGTK-devel, wxGTK-gl, but I can't find neither "wx.h" file nor "wx" folder
Are you compiling with the command specified in the tutorial?

g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
The wx-config calls add the compiler options for locating the include files and libraries.


Also
Here (http://sourceforge.net/project/showfiles.php?group_id=9863&package_id=19629) lies file readme-gtk-2.8.4.txt with

If you compile wxWidgets on Linux for the first time and don't like to read
install instructions just do (in the base dir):

> mkdir buildgtk
> cd buildgtk
> ../configure --with-gtk
> make
> su <type root password>
> make install
> ldconfig
it seems I need to download source, not rpm?
No, you don't want the source and you don't need to do anything from that readme file when you install from a RPM.

pfinet
23rd July 2007, 07:28 PM
You can compile your program with no problem using wxGTK-devel, but if you use the wxGTK source then you can debug into the library and build different environments (with/without Unicode, debug/release, try different versions of wxWidget, etc...).
However, this advantage is not necessary at the begin for small programs.

Try DialogBloks, it's a very easy RAD for wxWidget with a GUI designer and a project management tool.