Opened 15 years ago

Closed 15 years ago

#458 closed defect (duplicate)

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:
CPU: Unspecified Platform: Linux

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 (4)

comment:1 by fundawang, 15 years ago

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

comment:2 by neteler, 15 years ago

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

comment:3 by fundawang, 15 years ago

Don't forget to use CXX as linker.

comment:4 by martinl, 15 years ago

Resolution: duplicate
Status: newclosed

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

Note: See TracTickets for help on using tickets.