installing wxWidgets under linux: setup.h is a problem...
Evan Charlton
usenet at evancharlton.com
Mon Oct 29 11:39:19 PDT 2007
Marc wrote:
> On 29 oct, 16:05, Evan Charlton <use... at evancharlton.com> wrote:
>> 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
>
> Thanks for your answer :)
> I cannot use RPM version ? yum had the good idea to find
> something... ? But does not this allow one to avoid the compiling
> step ?
>
You could use yum but then you are limited to their build configuration
(you cannot choose options such as static/dynamic linking, unicode,
etc). That's why I choose to build from source (it only takes a few
minutes on a 1.8 Core 2 Duo machine).
More information about the wx-users
mailing list