[GRASS-dev] ubuntu 8.10 compile error

Moritz Lennert mlennert at club.worldonline.be
Wed Nov 12 12:08:46 EST 2008


On 12/11/08 17:58, Isaac Ullah wrote:
> Hi Glynn, Thanks for the advice, it was partially successful. I was 
> indeed missing the wx-gtk2 dev package (I had the wx-base dev package, 
> so as a lesson to others, be very careful when searching through the 
> ubuntu package repository!), and this allowed the NVIS compile error to 
> resolve itself. I am still getting compile erros for 
> "...gui/wxpython/vdigit", albeit a different error than I was getting 
> before. Here is the text of the error:
> 

[...]

> /usr/bin/ld: cannot find -lgdi
> collect2: ld returned 1 exit status
> make: *** [OBJ.i686-pc-linux-gnu/_grass6_wxvdigit.so] Error 1

Typing 'grass lgdi' in google brings up tons of messages with the 
response, which also is in the relevant directory of the source code 
(gui/wxpython/README):

"First, create a symlink to _gdi_.so shared library

$ sudo ln -s `locate _gdi_.so` /usr/local/lib/libgdi.so

e.g.

$ sudo ln -s 
/usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so 
/usr/local/lib/libgdi.so

Then update LD_LIBRARY_PATH or add '/usr/local/lib' to /etc/ld.so.conf
(in this case run 'sudo ldconfig').

Then you can compile the driver."

Moritz


More information about the grass-dev mailing list