[GRASS-dev] wxnviz broken in 6.5 on Linux 64bit

Markus Metz markus.metz.giswork at googlemail.com
Mon Aug 30 07:13:49 EDT 2010


Message:

3D view mode not available
Reason: /lib/libz.so.1.2.3: wrong ELF class: ELFCLASS32
Note that the wxGUI's 3D view mode is currently disabled on
MS Windows (hopefully this will be fixed soon). Please keep
an eye out for updated versions of GRASS. In the meantime
you can use "NVIZ" from the File menu.

Problem is ctypes, the Makefiles have been backported from trunk
without adapting to the build system in 6.5.

in 6.5, lib/python/ctypes/nviz.py imports 34 libs:

# Begin libraries

_libs["grass_nviz"] = load_library("grass_nviz")
_libs["grass_bitmap"] = load_library("grass_bitmap")
_libs["grass_linkm"] = load_library("grass_linkm")
_libs["grass_g3d"] = load_library("grass_g3d")
_libs["grass_gis"] = load_library("grass_gis")
_libs["grass_datetime"] = load_library("grass_datetime")
_libs["z"] = load_library("z")
_libs["grass_gis"] = load_library("grass_gis")
_libs["grass_datetime"] = load_library("grass_datetime")
_libs["z"] = load_library("z")
_libs["grass_vect"] = load_library("grass_vect")
_libs["grass_dbmibase"] = load_library("grass_dbmibase")
_libs["grass_gis"] = load_library("grass_gis")
_libs["grass_datetime"] = load_library("grass_datetime")
_libs["z"] = load_library("z")
_libs["grass_dbmiclient"] = load_library("grass_dbmiclient")
_libs["grass_dbmibase"] = load_library("grass_dbmibase")
_libs["grass_gis"] = load_library("grass_gis")
_libs["grass_datetime"] = load_library("grass_datetime")
_libs["z"] = load_library("z")
_libs["grass_gis"] = load_library("grass_gis")
_libs["grass_datetime"] = load_library("grass_datetime")
_libs["z"] = load_library("z")
_libs["grass_dgl"] = load_library("grass_dgl")
_libs["grass_dig2"] = load_library("grass_dig2")
_libs["grass_gis"] = load_library("grass_gis")
_libs["grass_datetime"] = load_library("grass_datetime")
_libs["z"] = load_library("z")
_libs["grass_rtree"] = load_library("grass_rtree")
_libs["grass_gis"] = load_library("grass_gis")
_libs["grass_datetime"] = load_library("grass_datetime")
_libs["z"] = load_library("z")
_libs["grass_linkm"] = load_library("grass_linkm")
_libs["grass_rtree"] = load_library("grass_rtree")

# 34 libraries
# End libraries

in 7.0, lib/python/ctypes/nviz.py imports only one lib:

# Begin libraries

_libs["grass_nviz.7.0.svn"] = load_library("grass_nviz.7.0.svn")

# 1 libraries
# End libraries

The same applies to all other files generated in lib/python/ctypes

The difference is caused by $(NVIZLIB) != $(NVIZLIB) between 6.5 and
7.0, same for all others in lib/python/ctypes/Makefile

In 6.5 it should read something like

date_LIBS       = -l$(DATETIME_LIBNAME)
etc.

instead of

date_LIBS       = $(DATETIMELIB)

More modifications might be necessary.

Markus M


More information about the grass-dev mailing list