Installing from Source on Ubuntu
Carsten A. Arnholm
arnholm at offline.no
Fri Apr 27 08:43:21 PDT 2007
Carlos Moreno wrote:
> Hi,
>
> Installation of wxGTK-2.8.3 on the latest Ubuntu (the recently
> released 7.04) fails at the point of configure --- it reports that
> there is no GTK+ installed; I tried disable-gtk2, thinking that it
> may be that Ubuntu uses GTK+ 1.2.x --- but also fails, at the
> same point.
>
> I vaguely recall the configure script using gtk-config --version
> to check for that; Ubuntu does not seem to have that (i.e.,
> there is no command gtk-config or gtk2-config in the path).
>
> Ubuntu is rather new for me (I'm an old-timer RH --- and now
> Fedora --- user, and am having trouble with the transition to
> Ubuntu).
>
> The binaries are not compatible with my platform (there are
> no binaries for 7.04); plus, I'd like to install from source anyway.
>
> Help?
Hi,
I went through the same story on Kubuntu 7.04 (I have mostly Windows
experience). I found that it was fairly easy to simply install the GTK+2
libraries via the Adept package manager. Then the GTK+ problem dissapeared.
After some reasearch (i.e. reading the install-gtk.txt file), I found the
following worked for me to build everything on Kubuntu 7.04 (I may have
installed autoconf in Adept also).
starting from the main directory of wxWidgets 2.8.3
mkdir buildgtk
cd buildgtk
../configure --with-gtk --disable-shared
make
sudo make install
<password>
sudo ldconfig
It then reported successful install.
The last hurdle was that my code still used the 2.8.1 libraries after I had
done this. I use the Code::Blocks IDE and pointing it to /usr/local instead
of /usr for wxWidgets solved the problem and now I can use 2.8.3 on Kubuntu
7.04. It seems to work fine.
I used the --disable-shared option because I could not figure out where to
specify the LD_LIBRARY_PATH needed when using shared libraries.
Regards
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list