[GRASS-dev] ubuntu 8.10 compile error

Isaac Ullah isaac.ullah at asu.edu
Wed Nov 12 11:58:52 EST 2008


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:

iullah at MEDLAND-2:~/grass6_source/grass6_devel/gui/wxpython/vdigit$ make
gcc -shared -o OBJ.i686-pc-linux-gnu/_grass6_wxvdigit.so
-L/home/iullah/grass6_source/grass6_devel/dist.i686-pc-linux-gnu/lib
-Wl,--export-dynamic
-Wl,-rpath-link,/home/iullah/grass6_source/grass6_devel/dist.i686-pc-linux-gnu/lib
OBJ.i686-pc-linux-gnu/cats.o OBJ.i686-pc-linux-gnu/digit.o
OBJ.i686-pc-linux-gnu/driver.o OBJ.i686-pc-linux-gnu/driver_draw.o
OBJ.i686-pc-linux-gnu/driver_select.o
OBJ.i686-pc-linux-gnu/grass6_wxvdigit_wrap.o OBJ.i686-pc-linux-gnu/line.o
OBJ.i686-pc-linux-gnu/message.o OBJ.i686-pc-linux-gnu/select.o
OBJ.i686-pc-linux-gnu/undo.o OBJ.i686-pc-linux-gnu/vertex.o -lgrass_vect
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz      -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz      -lgrass_gis
-lgrass_datetime -lz      -lgrass_dgl -lgrass_dig2 -lgrass_gis
-lgrass_datetime -lz     -lgrass_rtree  -lgrass_gis -lgrass_datetime -lz
-lgrass_linkm -lgrass_rtree  -lgrass_dig2 -lgrass_gis -lgrass_datetime
-lz     -lgrass_rtree  -lgrass_dgl -lgrass_rtree -lgrass_linkm
-lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lz
-lgrass_gis -lgrass_datetime -lz      -lgrass_dbmibase -lgrass_gis
-lgrass_datetime -lz       -L/usr/local/lib -lgdal -lgrass_gis
-lgrass_datetime -lz     -L/usr/local/lib -lgdal -lgrass_vedit -lgrass_gis
-lgrass_datetime -lz     -lgrass_vect -lgrass_dbmibase -lgrass_gis
-lgrass_datetime -lz      -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis
-lgrass_datetime -lz      -lgrass_gis -lgrass_datetime -lz      -lgrass_dgl
-lgrass_dig2 -lgrass_gis -lgrass_datetime -lz     -lgrass_rtree  -lgrass_gis
-lgrass_datetime -lz     -lgrass_linkm -lgrass_rtree  -pthread
-Wl,-Bsymbolic-functions  -lwx_gtk2u_richtext-2.8 -lwx_gtk2u_aui-2.8
-lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8
-lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8
-L/usr/lib/python2.5/config -lpthread -ldl -lutil -lm -lpython2.5 -lgdi
/usr/bin/ld: cannot find -lgdi
collect2: ld returned 1 exit status
make: *** [OBJ.i686-pc-linux-gnu/_grass6_wxvdigit.so] Error 1


I thought that it must be something missing in my gtk install, so I went
through the ubuntu repository and got absolutely everything gtk that I could
find (over 140 packages), but to no avail...  A web search hs yielded plenty
of "/usr/bin/ld: cannot find -xxxxx" , but none for "-lgdi". Most of the
solutions to similar errors were of the "you need to install xxxx package"
variety. Unfortuntately, none of these solutions were for a missing -lgdi
nor were they even specific to GRASS... Thanks again in advance for any help
you or others may offer to me.

Cheers,

Isaac

On Fri, Nov 7, 2008 at 3:50 PM, Glynn Clements <glynn at gclements.plus.com>wrote:

>
> Isaac Ullah wrote:
>
> > Hi all,  I'm currently trying to compile both grass 6.4 and grass7 on
> Ubuntu
> > 8.10, and I am consistently getting a couple of compile errors for
> > .../gui/wxwigits/vdigit and .../gui/wxwidgets/NVIS for  that have really
> > stumped me. here are the initial errors:
>
> > Is this a wx issue?
>
> Yes.
>
> > I've read the latest few threads about other compile
> > errors with wx enabling in ./configure options, and I've confirmed that
> my
> > etc/alternatives/wx-config file is pointing to
> > /usr/lib/wx/config/base-unicode-release-2.8,
>
> FWIW, my /usr/lib/wx/config directory contains the following files:
>
>        gtk2-ansi-release-2.6
>        gtk2-unicode-release-2.6
>        gtk2-unicode-release-2.8
>
> I suspect that you haven't installed all of the necessary packages.
> AFAICT, you need at least the following packages:
>
>        libwxbase2.8-0
>        libwxbase2.8-dev
>        libwxgtk2.8-0
>        libwxgtk2.8-dev
>        wx-common
>        wx2.8-headers
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>



-- 

Isaac I Ullah, M.A.

Archaeology PhD Student,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project
***************************************************
isaac.ullah at asu.edu
ullah at archaeologist.com

http://www.public.asu.edu/~iullah
***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20081112/12cb67a8/attachment.html


More information about the grass-dev mailing list