installing wxWidgets under linux: setup.h is a problem...
Evan Charlton
usenet at evancharlton.com
Mon Oct 29 08:05:35 PDT 2007
Marc wrote:
> Hi,
>
> I am rather new... I finally managed to get kdevelop working, and I
> installed wxWidgets in two ways :
> 1) locally by compiling it, and now my wx-config --prefix is /home/
> bletry/wxWidgets/ (it is the wxX11 version)
> 2) wxGTK via rpm (using yum).
> Under kdevelop I created their "hello world" wxWidgets which first
> could not find wx/wx.h, which I solved by a ln -s wx-2.6/wx wx, but
> now it tells me :
> /usr/include/wx/platform.h:190:22: wx/setup.h : No such file or
> directory.
> Apparently, platform.h wants to find a setup.h that is not included in
> the rpm, but should come when compiling the library... ? there, I am
> lost. Could anyone help, please ? I am rather new to linux world...
>
> Thanks a lot !!
>
> Marc
>
I've never tried setting up two different builds (wxX11 and wxGTK) of
wx, but my process for building on Linux is as follows:
1. Download and extract the source (we'll say it's in ~/wxGTK-2.8.6/ for
now)
2. `cd ~/wxGTK-2.8.6/`
3. `mkdir build-static` # I'll be building a statically-linked Unicode
build for this example
4. `cd build-static/`
5. `../configure --prefix=/usr/local --disable-shared --enable-unicode`
6. `make`
7. `sudo make install`
And KDevelop works and builds fine. I'm not saying this is the best way,
but it works for me. (anyone see any obvious flaws?)
Evan Charlton
More information about the wx-users
mailing list