[GRASS-dev] [GRASS GIS] #830: wxgui loading error for GRASS7 on Ubuntu 9.10

#830: wxgui loading error for GRASS7 on Ubuntu 9.10
----------------------------------------+-----------------------------------
Reporter: isaacullah | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: Ubuntu, fails to load, GUI | Platform: Linux
      Cpu: x86-64 |
----------------------------------------+-----------------------------------
After successful compiling and installation of GRASS 7 on Ubuntu 9.10, the
grass launcher GUI loads properly, but after selection of location and
mapset, only the terminal is present, and no gui. Executing g.gui yields
the following errors:

{{{
   GRASS 7.0.svn (Penaguila_highres):~/grass_7_source/grass_trunk >
WARNING: Vector digitizer is not available (No module named
grass7_wxvdigit).

Note that vector digitizer is currently not working under MS Windows
(hopefully will be fixed soon). Please try more recent version of GRASS.
g.list: error while loading shared libraries: libgdal.so.1: cannot open
shared object file: No such file or directory
g.list: error while loading shared libraries: libgdal.so.1: cannot open
shared object file: No such file or directory
Traceback (most recent call last):
   File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line
1641, in <module>
     sys.exit(main())
   File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line
1634, in main
     app = GMApp(workspaceFile)
   File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line
1558, in __init__
     wx.App.__init__(self, False)
   File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-
unicode/wx/_core.py", line 7978, in __init__
     self._BootstrapApp()
   File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-
unicode/wx/_core.py", line 7552, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line
1577, in OnInit
     workspace = self.workspaceFile)
   File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line
186, in __init__
     self.NewDisplay(show=False)
   File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line
1171, in NewDisplay
     auimgr=self._auimgr, showMapDisplay=show)
   File "/usr/local/grass7.0.svn-
28_11_2009/etc/wxpython/gui_modules/wxgui_utils.py", line 108, in __init__
     Map=self.Map, auimgr=self.auimgr)
   File "/usr/local/grass7.0.svn-
28_11_2009/etc/wxpython/gui_modules/mapdisp.py", line 280, in __init__
     self.MapWindow.ZoomHistory(self.Map.region['n'],
KeyError: 'n'
}}}

I am using Ubuntu 9.10, and have compiled GRASS 7 from latest SVN source
code. Here are my compile options:

{{{
./configure --enable-64bit --with-lesstif --with-freetype=yes --with-
freetype-includes=/usr/include/freetype2 --with-cxx --with-nls --with-
gdal=/usr/bin/gdal-config --with-proj --with-proj-includes=/usr/include
--with-proj-libs=/usr/lib --with-python=/usr/bin/python-config --with-
wxwidgets=/usr/bin/wx-config --with-wxwidgets=/etc/alternatives/wx-config
--with-tcltk-includes=/usr/include/tcl8.5/ --with-cario --enable-largefile
--with-readline --with-blas-libs=/usr/lib/ --with-pthread
}}}

With compile output:

{{{
GRASS is now configured for: x86_64-unknown-linux-gnu

   Source directory: /home/iullah2/grass_7_source/grass_trunk
   Build directory: /home/iullah2/grass_7_source/grass_trunk
   Installation directory: ${prefix}/grass-7.0.svn
   Startup script in directory: ${exec_prefix}/bin
   C compiler: gcc -g -O2
   C++ compiler: c++ -g -O2
   Building shared libraries: yes
   64bit support:
   OpenGL platform: X11

   MacOSX application: no
   MacOSX architectures:
   MacOSX SDK:

   NVIZ: yes

   BLAS support: no
   C++ support: yes
   Cairo support: yes
   DWG support: no
   FFMPEG support: no
   FFTW support: yes
   FreeType support: yes
   GDAL support: yes
   GEOS support: no
   JPEG support: yes
   LAPACK support: no
   Large File support (LFS): yes
   MySQL support: no
   NLS support: yes
   ODBC support: no
   OGR support: yes
   OpenGL support: yes
   PNG support: yes
   PostgreSQL support: no
   Python support: yes
   Readline support: yes
   SQLite support: no
   Tcl/Tk support: yes
   wxWidgets support: yes
   TIFF support: yes
   X11 support: yes
   Regex support: yes
   POSIX thread support: yes

}}}

There were no errors after make.

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

#830: wxgui loading error for GRASS7 on Ubuntu 9.10
-------------------------+--------------------------------------------------
  Reporter: isaacullah | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: Ubuntu, fails to load, GUI
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Comment (by martinl):

Replying to [ticket:830 isaacullah]:
{{{
> g.list: error while loading shared libraries: libgdal.so.1: cannot open
shared object file: No such file or directory
}}}

Apparently not related to the GUI, just broken reference to GDAL/OGR
library.

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

#830: wxgui loading error for GRASS7 on Ubuntu 9.10
-------------------------+--------------------------------------------------
  Reporter: isaacullah | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords: Ubuntu, fails to load, GUI
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by martinl):

  * component: wxGUI => default

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

#830: wxgui loading error for GRASS7 on Ubuntu 9.10
-------------------------+--------------------------------------------------
  Reporter: isaacullah | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords: Ubuntu, fails to load, GUI
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Comment (by isaacullah):

Okay, I want to confirm that I do have a libgdal.so.1 installed in
/usr/lib. It links to /usr/lib/libgdal1.5.0.so.1.12.4, which is the only
GDAL header I have installed on my machine. GRASS should be able to find
this header file as it is in the standard location.

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

#830: wxgui loading error for GRASS7 on Ubuntu 9.10
------------------------+---------------------------------------------------
Reporter: isaacullah | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: libgdal | Platform: Linux
      Cpu: x86-64 |
------------------------+---------------------------------------------------
Changes (by aghisla):

  * keywords: Ubuntu, fails to load, GUI => libgdal

Comment:

I can reproduce the error on Fedora 13 64bit.

1. configure - make - no make install

2. run ./bin.i686-pc-linux-gnu/grass70

No library error running the correct architecture executable.

Maybe make install chooses the wrong architecture?

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

#830: wxgui loading error for GRASS7 on Ubuntu 9.10
-------------------------+--------------------------------------------------
  Reporter: isaacullah | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords: libgdal
  Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Changes (by martinl):

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

Comment:

No activity for 2 years. Probably already solved, closing, please re-open
if needed.

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