[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [DebianGIS] testing Debian build of GRASS 6.4 SVN



On 05/11/08 03:13, Seb wrote:
On Tue, 04 Nov 2008 17:16:26 +0100,
Moritz Lennert <mlennert@club.worldonline.be> wrote:

[...]

It should be:

--with-wx=/usr/lib/wx/config/gtk2-unicode-release-2.8\
--with-wxwidgets \


Yes, this worked. The packages built fine.

After discussing this on the GRASS mailing list and testing myself, we've come to the conclusion that this actually shouldn't work (sorry for the wrong info), since --with-wx is not recognised by configure. So the fact that it does work for you, seems to indicate that the "solution" for you was not to use --with-wx, but rather not to give any parameter to --with-wxwidgets.

AFAIU, the GRASS configure script actually depends on the existance of something called wx-config, so anything called differently doesn't work.

When I erase the wx-config entry in /etc/alternatives and try with the above combination, I get:

checking whether to use wxWidgets... yes
checking for wx-config... no
configure: error: *** couldn't find wx-config

                  wxWidgets must be installed on your system.

                  Please check that wx-config is in path, the directory
                  where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
                  is in LD_LIBRARY_PATH or equivalent variable and
                  wxWidgets version is 2.8.1 or above.
make: *** [config-stamp] Erreur 1


However, when I have a wx-config entry in /etc/alternatives, configure finds it, even if I use --with-wxwidgets=/I/love/my/mom.

When I erase /etc/alternatives/wx-config and create a symbolic link

/usr/local/wx-config -> /usr/lib/wx/config/gtk2-unicode-release-2.8

and then use --with-wxwidgets=/usr/local/wx-config

it use that wx-config.

So, in conclusion: not sure why my suggestion worked for you, it shouldn't have. It has "worked" for me just because I had /etc/alternatives/wx-config pointing to the 2.8 version.

This thus raises the question of how to deal with that for the debian package when the builder has 2.6 and 2.8 installed with /etc/alternatives/wx-config pointing to the 2.6 version.

Moritz



Reply to: