Ticket #458 (closed defect: duplicate)

Opened 4 years ago

Last modified 4 years ago

Unknown lib -lgdi when linking gui/wxpython/vdigit

Reported by: fundawang Owned by: grass-dev@…
Priority: major Milestone: 6.4.0
Component: wxGUI Version: 6.4.0 RCs
Keywords: Cc:
Platform: Linux CPU: Unspecified

Description

When linking gui/wxpython/vdigit, ld returns: could not find -lgdi

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

Change History

Changed 4 years ago by fundawang

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

Changed 4 years ago 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

Changed 4 years ago by fundawang

Don't forget to use CXX as linker.

Changed 4 years ago by martinl

  • status changed from new to closed
  • resolution set to duplicate

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

Note: See TracTickets for help on using tickets.