Below discussion comes from the DebianGIS mailing list. It raises an issue about documentation of the configure options.
./configure --help shows:
--with-wxwidgets[=path/wx-config] enable wxWidgets support (wx-config with path, e.g. '--with-wxwidgets=/usr/local/bin/wx-config', default: no)
but this does not seem to work, while below solution does. Looking through the configure file, I don't really understand why this is so (but then again, I can't claim that I understand everything in that file).
So, is the documentation wrong, or does below solution just work by chance ?
Moritz
-------- Original Message --------
Subject: Re: [DebianGIS] testing Debian build of GRASS 6.4 SVN
Date: Tue, 04 Nov 2008 20:13:28 -0600
From: Seb <spluque@gmail.com>
Organization: Church of Emacs
To: pkg-grass-general@lists.alioth.debian.org
On Tue, 04 Nov 2008 17:16:26 +0100,
Moritz Lennert <mlennert@club.worldonline.be> wrote:
[...]
On 05/11/08 03:13, Seb wrote:
Yes, I liked that better too. However, modifying that target as:
,-----[ rules (lines: 66 - 67) ]
| --with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
`-----
It should be:
--with-wx=/usr/lib/wx/config/gtk2-unicode-release-2.8\
--with-wxwidgets \
Yes, this worked. The packages built fine. The only problem reamining
is the clash betwee grass-preview-doc and grass-doc I posted earlier.
Thanks everyone for your help.
Hi,
2008/11/5 Moritz Lennert <mlennert@club.worldonline.be>:
Below discussion comes from the DebianGIS mailing list. It raises an issue
about documentation of the configure options.
./configure --help shows:
--with-wxwidgets[=path/wx-config] enable wxWidgets support (wx-config with
path, e.g. '--with-wxwidgets=/usr/local/bin/wx-config', default: no)
but this does not seem to work, while below solution does. Looking through
the configure file, I don't really understand why this is so (but then
again, I can't claim that I understand everything in that file).
So, is the documentation wrong, or does below solution just work by chance ?
On Tue, 04 Nov 2008 17:16:26 +0100,
Moritz Lennert <mlennert@club.worldonline.be> wrote:
[...]
On 05/11/08 03:13, Seb wrote:
Yes, I liked that better too. However, modifying that target as:
,-----[ rules (lines: 66 - 67) ]
|
--with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
`-----
It should be:
--with-wx=/usr/lib/wx/config/gtk2-unicode-release-2.8\
--with-wxwidgets \
Yes, this worked. The packages built fine. The only problem reamining
is the clash betwee grass-preview-doc and grass-doc I posted earlier.
Thanks everyone for your help.
there is no --with-wx just --with-wxwidgets which takes as argument
*path to wx-config* (similary e.g. to --with-gdal)
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *
On 05/11/08 14:41, Martin Landa wrote:
Hi,
2008/11/5 Moritz Lennert <mlennert@club.worldonline.be>:
Below discussion comes from the DebianGIS mailing list. It raises an issue
about documentation of the configure options.
./configure --help shows:
--with-wxwidgets[=path/wx-config] enable wxWidgets support (wx-config with
path, e.g. '--with-wxwidgets=/usr/local/bin/wx-config', default: no)
but this does not seem to work, while below solution does. Looking through
the configure file, I don't really understand why this is so (but then
again, I can't claim that I understand everything in that file).
So, is the documentation wrong, or does below solution just work by chance ?
On Tue, 04 Nov 2008 17:16:26 +0100,
Moritz Lennert <mlennert@club.worldonline.be> wrote:
[...]
On 05/11/08 03:13, Seb wrote:
Yes, I liked that better too. However, modifying that target as:
,-----[ rules (lines: 66 - 67) ]
|
--with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
`-----
It should be:
--with-wx=/usr/lib/wx/config/gtk2-unicode-release-2.8\
--with-wxwidgets \
Yes, this worked. The packages built fine. The only problem reamining
is the clash betwee grass-preview-doc and grass-doc I posted earlier.
Thanks everyone for your help.
there is no --with-wx just --with-wxwidgets which takes as argument
*path to wx-config* (similary e.g. to --with-gdal)
But what is weird is that the above combination works, whereas giving the path to wx-widgets doesn't...
Here's what Seb wrote:
However, modifying that target as:
,-----[ rules (lines: 66 - 67) ]
| --with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
`-----
still resulted in this at build time:
---<---------------cut here---------------start-------------->---
checking whether to use wxWidgets... yes
checking for wx-config... /usr/bin/wx-config
checking wxWidgets version... 2.6.3
configure: error: *** wxWidgets 2.8.1 or later is required.
make: *** [config-stamp] Error 1
debuild: fatal error at line 1301:
couldn't exec fakeroot debian/rules: ---<---------------cut here---------------end---------------->---
And both for him and for me it works with with-wx.
???
Moritz
IIUC, configure looks for the string wx-config in the path given to wxwidgets, but as you can see in Debian (when you have several version of wxwidgets installed) you the file might not be called *wx-config*.
Moritz Lennert wrote:
>> ./configure --help shows:
>>
>> --with-wxwidgets[=path/wx-config] enable wxWidgets support (wx-config with
>> path, e.g. '--with-wxwidgets=/usr/local/bin/wx-config', default: no)
>>
>> but this does not seem to work, while below solution does. Looking through
>> the configure file, I don't really understand why this is so (but then
>> again, I can't claim that I understand everything in that file).
>>
>> So, is the documentation wrong, or does below solution just work by chance ?
>> On Tue, 04 Nov 2008 17:16:26 +0100,
>> Moritz Lennert <mlennert@club.worldonline.be> wrote:
>> [...]
>>
>>> On 05/11/08 03:13, Seb wrote:
>>>> Yes, I liked that better too. However, modifying that target as:
>>>>
>>>> ,-----[ rules (lines: 66 - 67) ]
>>>> |
>>>> --with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
>>>> `-----
>>> It should be:
>>> --with-wx=/usr/lib/wx/config/gtk2-unicode-release-2.8\
>>> --with-wxwidgets \
>>
>> Yes, this worked. The packages built fine. The only problem reamining
>> is the clash betwee grass-preview-doc and grass-doc I posted earlier.
>> Thanks everyone for your help.
>
> there is no --with-wx just --with-wxwidgets which takes as argument
> *path to wx-config* (similary e.g. to --with-gdal)
But what is weird is that the above combination works, whereas giving
the path to wx-widgets doesn't...
The configure script silently ignores any --with-* options which it
doesn't understand, and it doesn't understand --with-wx.
It's entirely possible that specifying a non-default wx-config script
doesn't work, but that's down the wx installation, not the configure
script.
--
Glynn Clements <glynn@gclements.plus.com>
On 05/11/08 23:38, Glynn Clements wrote:
Moritz Lennert wrote:
./configure --help shows:
--with-wxwidgets[=path/wx-config] enable wxWidgets support (wx-config with
path, e.g. '--with-wxwidgets=/usr/local/bin/wx-config', default: no)
but this does not seem to work, while below solution does. Looking through
the configure file, I don't really understand why this is so (but then
again, I can't claim that I understand everything in that file).
So, is the documentation wrong, or does below solution just work by chance ?
On Tue, 04 Nov 2008 17:16:26 +0100,
Moritz Lennert <mlennert@club.worldonline.be> wrote:
[...]
On 05/11/08 03:13, Seb wrote:
Yes, I liked that better too. However, modifying that target as:
,-----[ rules (lines: 66 - 67) ]
|
--with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
`-----
It should be:
--with-wx=/usr/lib/wx/config/gtk2-unicode-release-2.8\
--with-wxwidgets \
Yes, this worked. The packages built fine. The only problem reamining
is the clash betwee grass-preview-doc and grass-doc I posted earlier.
Thanks everyone for your help.
there is no --with-wx just --with-wxwidgets which takes as argument
*path to wx-config* (similary e.g. to --with-gdal)
But what is weird is that the above combination works, whereas giving the path to wx-widgets doesn't...
The configure script silently ignores any --with-* options which it
doesn't understand, and it doesn't understand --with-wx.
It's entirely possible that specifying a non-default wx-config script
doesn't work, but that's down the wx installation, not the configure
script.
Ok, sorry for the noise. I'll see with the OP why my "solution" suddenly made things work for him.
Moritz