[GRASS-dev] [GRASS GIS] #51: wxPython/pseudodc.h not found

#51: wxPython/pseudodc.h not found
---------------------+------------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Keywords: python |
---------------------+------------------------------------------------------
I have taken the wxPython 2.8.7 SRPM from Mandriva 2008.1 and compiled on
my 2007.1 box.
Using the new configure, still wxPython/pseudodc.h is not found:

{{{
./configure --with-wxwidgets=`which wx-config` ...
...
checking whether to use Python... yes
checking for python-config... /usr/bin/python-config
checking for Python.h... yes
checking whether to use wxWidgets... yes
checking for wx-config... /usr/bin/wx-config
checking wxWidgets version... 2.8.7
checking for wx/wxprec.h... yes
checking for wx/wxPython/pseudodc.h... no
configure: error: * Unable to locate wxWidgets includes.
}}}

But:

{{{
locate pseudodc.h
/usr/lib/wxPython/include/wx-2.8/wx/wxPython/pseudodc.h
}}}

And:
{{{
wx-config --cflags
-I/usr/lib64/wx/include/ -I/usr/lib64/wx/include/gtk2-ansi-release-2.8
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_WXGTK_
-pthread
}}}

I assume that we need something line --with-wxpython-includes.

As hack:

{{{
ln -s /usr/lib/wxPython/include/wx-2.8/wx/wxPython /usr/include/wx-2.8/wx/
}}}

makes it work.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python
----------------------+-----------------------------------------------------
Comment (by neteler):

I have submitted this also to Mandriva:
http://qa.mandriva.com/show_bug.cgi?id=37833

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python
----------------------+-----------------------------------------------------
Comment (by neteler):

As this problem is solvable on Mandriva, it should not be the reason to
hold the configure backport to 6.3-release branch.

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python
----------------------+-----------------------------------------------------
Comment (by neteler):

Concerning Mandriva:

{{{
On Feb 17, 2008 7:25 PM, Götz Waschk <bugzilla@qa.mandrivalinux.com>
wrote:
> http://qa.mandriva.com/show_bug.cgi?id=37833
> RPM Package: wxPythonGTK-2.8.7.1-2mdv2008.1.src.rpm
> Status : RESOLVED
...
> --- Comment #3 from Götz Waschk <waschk@mandriva.org> 2008-02-17
19:25:11 CEST ---
> Our wxPython package comes with its private installation of wxGTK and a
version
> of wx-config that is by default not in the path. Just add the right dir
to the
> path and the configure script should work:
> $ /usr/lib/wxPython/bin/wx-config --cflags
> -I/usr/lib/wxPython/lib/wx/include/gtk2-unicode-release-2.8
> -I/usr/lib/wxPython/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
> -D__WXGTK__ -pthread
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python
----------------------+-----------------------------------------------------
Comment (by martinl):

Replying to [comment:3 neteler]:
{{{
> > Our wxPython package comes with its private installation of wxGTK and
a version
> > of wx-config that is by default not in the path. Just add the right
dir to the
> > path and the configure script should work:
> > $ /usr/lib/wxPython/bin/wx-config --cflags
> > -I/usr/lib/wxPython/lib/wx/include/gtk2-unicode-release-2.8
> > -I/usr/lib/wxPython/include/wx-2.8 -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES
> > -D__WXGTK__ -pthread
}}}

modifying Makefile manually is unacceptable. It seems that at least for
Mandriva we need something like --with-wxpython-includes (?)

Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python
----------------------+-----------------------------------------------------
Comment (by martinl):

Replying to [comment:4 martinl]:
> Replying to [comment:3 neteler]:
{{{
> > > Our wxPython package comes with its private installation of wxGTK
and a version
> > > of wx-config that is by default not in the path. Just add the right
dir to the
> > > path and the configure script should work:
> > > $ /usr/lib/wxPython/bin/wx-config --cflags
> > > -I/usr/lib/wxPython/lib/wx/include/gtk2-unicode-release-2.8
> > > -I/usr/lib/wxPython/include/wx-2.8 -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES
> > > -D__WXGTK__ -pthread
}}}
>
> modifying Makefile manually is unacceptable. It seems that at least for
Mandriva we need something like --with-wxpython-includes (?)

sorry I think I completely misunderstood, you can use

{{{
--with-wxwidgets=/usr/lib/wxPython/bin/wx-config --cflags
}}}

but then probably wx/wxprec.h will be not found.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python
----------------------+-----------------------------------------------------
Comment (by martinl):

Replying to [comment:5 martinl]:

I meant

{{{
--with-wxwidgets=/usr/lib/wxPython/bin/wx-config
}}}

>
> but then probably wx/wxprec.h will be not found.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python, wxGUI, vdigit
----------------------+-----------------------------------------------------
Changes (by martinl):

  * keywords: python => python, wxGUI, vdigit
  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#51: wxPython/pseudodc.h not found
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python, wxGUI, vdigit
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * platform: => Unspecified
  * cpu: => Unspecified

Comment:

This should be "fixed" by adding local copy of pseudodc.h, see #58.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#51: wxPython/pseudodc.h not found
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python, wxGUI, vdigit
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by martinl):

Replying to [comment:8 martinl]:
> This should be "fixed" by adding local copy of pseudodc.h, see #58.

Check for wx/wxPython/pseudodc.h removed in r35556. Any objections to
backport to devbr6 and relbr64? Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>

#51: wxPython/pseudodc.h not found
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: python, wxGUI, vdigit
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [comment:9 martinl]:
> Check for wx/wxPython/pseudodc.h removed in r35556. Any objections to
backport to devbr6 and relbr64? Martin

If the wxPseudoDC elimination has been backported, the check for the
header file should also be backported.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:10&gt;
GRASS GIS <http://grass.osgeo.org>

#51: wxPython/pseudodc.h not found
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: fixed | Keywords: python, wxGUI, vdigit
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

Comment:

Replying to [comment:10 glynn]:
> Replying to [comment:9 martinl]:
> > Check for wx/wxPython/pseudodc.h removed in r35556. Any objections to
backport to devbr6 and relbr64? Martin
>
> If the wxPseudoDC elimination has been backported, the check for the
header file should also be backported.

Done in r35582 and r35583. Closing ticket.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/51#comment:11&gt;
GRASS GIS <http://grass.osgeo.org>