[GRASS-dev] [GRASS GIS] #458: Unknown lib -lgdi when linking gui/wxpython/vdigit

#458: Unknown lib -lgdi when linking gui/wxpython/vdigit
-------------------------+--------------------------------------------------
Reporter: fundawang | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
When linking gui/wxpython/vdigit, ld returns:
could not find -lgdi

I assume that -lgdi only applies to windows, not for linux.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/458&gt;
GRASS GIS <http://grass.osgeo.org>

#458: Unknown lib -lgdi when linking gui/wxpython/vdigit
------------------------+---------------------------------------------------
  Reporter: fundawang | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
------------------------+---------------------------------------------------
Comment (by fundawang):

Maybe you should backport gui/wxpython/vdigit/Makefile from trunk to 6.4
branch, it also fixes the problem of linking wxPseudoDC

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

#458: Unknown lib -lgdi when linking gui/wxpython/vdigit
------------------------+---------------------------------------------------
  Reporter: fundawang | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
------------------------+---------------------------------------------------
Comment (by neteler):

A patch is proposed in ticket #58 and will be backported over the next
days for RC3.

As dirty hack in the spec file:

{{{
...
%prep
%setup -q %{?_with_svn:-b1 -n %{name}_%{svnver}}%{!?_with_svn:-n
grass-%{version}}
%patch0 -p0 -b .gcc43
# work around suboptimal pseudoDC usage
ln -s /usr/%{_lib}/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so
./lib/

%build
...
}}}

Markus

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

#458: Unknown lib -lgdi when linking gui/wxpython/vdigit
------------------------+---------------------------------------------------
  Reporter: fundawang | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
------------------------+---------------------------------------------------
Comment (by fundawang):

Don't forget to use CXX as linker.

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

#458: Unknown lib -lgdi when linking gui/wxpython/vdigit
------------------------+---------------------------------------------------
  Reporter: fundawang | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: duplicate | Keywords:
  Platform: Linux | Cpu: Unspecified
------------------------+---------------------------------------------------
Changes (by martinl):

  * status: new => closed
  * resolution: => duplicate

Comment:

This is know issue, no reason why to create new ticket for it. Closing.

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