by 808-MC » Sun Dec 08, 2013 4:15 am
I'm trying to get TerraGear built and installed but I'm running into an error that I can't make sense of when I go to make TerraGear. It looks like it has something to do with gdalchop and SimGear even though both are detected. I'm running MacOSX 10.7.5. Any ideas on how I can fix this and get TerraGear installed?
- Code: Select all
Bretts-MacBook-Pro-2:terragear user$ cmake .
-- The C compiler identification is Clang 3.1.0
-- The CXX compiler identification is Clang 3.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- thread
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- SimGear include directory: /usr/local/include
-- found SimGear version: 2.99.0 (needed 2.12.0 or higher)
-- looking for static SimGear libraries
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- found SimGear libraries
-- Performing Test SIMGEAR_COMPILE_TEST
-- Performing Test SIMGEAR_COMPILE_TEST - Success
-- Found SimGear: /usr/local/lib/libSimGearCore.a (Required is at least version "2.12.0")
-- Found GDAL: /usr/local/lib/libgdal.dylib (Required is at least version "1.6.0")
-- Found TIFF: /usr/local/lib/libtiff.dylib (found version "4.0.3")
-- Found CGAL 4.3
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = ' -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=11
-- Mac Leopard detected
-- Requested component: Core
-- Requested component: MPFR
-- Requested component: GMP
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for rint
-- Looking for rint - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/Desktop/fgfs-dev/terragear
Bretts-MacBook-Pro-2:terragear user$ make
Scanning dependencies of target terragear
[ 1%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/clipper.cpp.o
[ 2%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_accumulator.cxx.o
[ 3%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_chopper.cxx.o
[ 5%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_contour.cxx.o
[ 6%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_misc.cxx.o
[ 7%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_nodes.cxx.o
[ 9%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_polygon.cxx.o
[ 10%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_polygon_clean.cxx.o
[ 11%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_polygon_clip.cxx.o
[ 12%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_polygon_tesselate.cxx.o
[ 14%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_rectangle.cxx.o
[ 15%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_shapefile.cxx.o
[ 16%] Building CXX object src/Lib/terragear/CMakeFiles/terragear.dir/tg_surface.cxx.o
In file included from /Users/user/Desktop/fgfs-dev/terragear/src/Lib/terragear/tg_surface.cxx:35:
/Users/user/Desktop/fgfs-dev/terragear/src/Lib/terragear/tg_surface.hxx:54:18: warning: comparison of unsigned
expression < 0 is always false [-Wtautological-compare]
if ( col < 0 || col >= _cols ) {
~~~ ^ ~
/Users/user/Desktop/fgfs-dev/terragear/src/Lib/terragear/tg_surface.hxx:57:25: warning: comparison of unsigned
expression < 0 is always false [-Wtautological-compare]
} else if ( row < 0 || row >= _rows ) {
~~~ ^ ~
/Users/user/Desktop/fgfs-dev/terragear/src/Lib/terragear/tg_surface.hxx:67:18: warning: comparison of unsigned
expression < 0 is always false [-Wtautological-compare]
if ( col < 0 || col >= _cols ) {
~~~ ^ ~
/Users/user/Desktop/fgfs-dev/terragear/src/Lib/terragear/tg_surface.hxx:70:25: warning: comparison of unsigned
expression < 0 is always false [-Wtautological-compare]
} else if ( row < 0 || row >= _rows ) {
~~~ ^ ~
4 warnings generated.
Linking CXX static library libterragear.a
[ 16%] Built target terragear
Scanning dependencies of target gdalchop
[ 18%] Building CXX object src/Prep/GDALChop/CMakeFiles/gdalchop.dir/gdalchop.cxx.o
Linking CXX executable gdalchop
Undefined symbols for architecture x86_64:
"_FSFindFolder", referenced from:
SGPath::desktop() in libSimGearCore.a(sg_path.cxx.o)
"_FSRefMakePath", referenced from:
SGPath::desktop() in libSimGearCore.a(sg_path.cxx.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/Prep/GDALChop/gdalchop] Error 1
make[1]: *** [src/Prep/GDALChop/CMakeFiles/gdalchop.dir/all] Error 2
make: *** [all] Error 2