Joe D
Hi
this is my first mail to vtp. i'm new...
to install VTP on my mac
i foollowed the instruction at :
http://www.d.umn.edu/~willemsn/vtp/macosx_readme.html#userdefs
no problems with :
Mini CLOD
wxWidgets
PROJ library
OpenSceneGraph
but i had problem to compile gdal using :
cd gdal-1.4.0
LDFLAGS=-L/sw/lib CFLAGS=-I/sw/include CXXFLAGS=-I/sw/include ./
configure --prefix=/usr/local --without-python --with-macosx-framework
make
sudo make install
... i succesfool build gdal using :
commented the fink line in my /~.profile
#test -r /sw/bin/init.sh && . /sw/bin/init.sh
then i configure it with :
/configure --prefix=/usr/local --without-python --with-macosx-framework
make
sudo make install
next step i created in my home directory a file ~/.vtp-user.defs
override LOCALBASE = /usr/local
override OSG_BASE = /usr/local
override WX_DIR = /usr/local
in the vtp folder i substituted :
http://www.d.umn.edu/~willemsn/vtp/FelkelComponents.cpp
http://www.d.umn.edu/~willemsn/vtp/Make.defs
but when itry to run : make
i've this error :
computer-di-epifanio:~ epifanio$ cd /source/VTP/
computer-di-epifanio:/source/VTP epifanio$ make
cd TerrainSDK && make
mkdir -p /source/VTP/OSX/Frameworks
cd unzip && make all
mkdir -p /source/VTP/OSX/Frameworks/unzip.framework/Versions/A
mkdir -p /source/VTP/OSX/Frameworks/unzip.framework/Headers
ln -s /source/VTP/OSX/Frameworks/unzip.framework/Versions/A /source/
VTP/OSX/Frameworks/unzip.framework/Versions/Current
ln: creating symbolic link `/source/VTP/OSX/Frameworks/
unzip.framework/Versions/Current/A': File exists
make[2]: [/source/VTP/OSX/Frameworks/unzip.framework] Error 1 (ignored)
cp ioapi.h iowin32.h unzip.h /source/VTP/OSX/Frameworks/
unzip.framework/Headers/
cd xmlhelper && make all
make[2]: Nothing to be done for `all'.
cd vtdata && make all
g++ -g -O -Dunix=1 -D__DARWIN_OSX__ -fPIC -I/sw/include -DUNIX -I./
shapelib -I/usr/local/include -I/usr/local/include -I/source/VTP/
TerrainSDK/ -c -o Building.o Building.cpp
In file included from LocalConversion.h:17,
from Building.h:15,
from Building.cpp:12:
Projections.h:44:28: error: ogr_spatialref.h: No such file or directory
In file included from Building.cpp:12:
Building.h:17:25: error: ogrsf_frmts.h: No such file or directory
Projections.h:57: error: expected class-name before '{' token
Projections.h:71: error: 'OGRErr' does not name a type
Projections.h:76: error: 'OGRErr' does not name a type
Projections.h:79: error: 'OGRSpatialReference' has not been declared
Projections.h:141: error: expected constructor, destructor, or type
conversion before '*' token
Projections.h:142: error: expected constructor, destructor, or type
conversion before '*' token
Building.h:165: error: expected ',' or '...' before '*' token
Building.h:165: error: ISO C++ forbids declaration of 'OGRPolygon'
with no type
Building.h:225: error: 'OGRCoordinateTransformation' has not been
declared
Building.cpp:251: error: expected ',' or '...' before '*' token
Building.cpp:251: error: ISO C++ forbids declaration of 'OGRPolygon'
with no type
Building.cpp:811: error: variable or field 'TransformCoords' declared
void
Building.cpp:811: error: 'int vtBuilding::TransformCoords' is not a
static member of 'class vtBuilding'
Building.cpp:811: error: 'OGRCoordinateTransformation' was not
declared in this scope
Building.cpp:811: error: 'trans' was not declared in this scope
Building.cpp:812: error: expected ',' or ';' before '{' token
make[2]: *** [Building.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
computer-di-epifanio:/source/VTP epifanio$
i've also tried to build the gdal using fink... but i had the same
error :-(
i'm sure that i wrong/missing something in the configuration file...
any suggestion about is really appreciated !
thanks to all.
Massimo.