Re: Please some one write blog on gmt 5 installation
Peter <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <CANUDaUqpjwc+GCaVsWHE4o8=+CzfKAcVtr2HCADa39_vAq0Rfg@mail.gmail.com> |
Thank you very much Marcelo ... Its working now.. if I face some problem.. I will interrupt you again please don't mind :) Have a great day! -Peter On Sat, Feb 1, 2014 at 12:30 AM, Marcelo Banik <[email protected]>wrote: > Peter, > > I attached my ConfigUser.cmake, as you asked. > > Appears very similar with yours. I hope that just including ".." in cmake > will work. > > Regards, > > Marcelo > > > On Fri, Jan 31, 2014 at 4:42 PM, Peter <[email protected]> wrote: > >> Thank you so much for your quick response, I got it ../ is previous >> directory and where to define netcdf and hdf , gshhg and gcw ? can you >> send me your cmake file(ConfigUser.cmake) I can use it as reference.. >> >> -Peter >> >> >> On Sat, Feb 1, 2014 at 12:06 AM, Marcelo Banik <[email protected]>wrote: >> >>> Hi Peter, >>> >>> Could not be the only problem, but the correct cmake command is: >>> >>> cmake -DCMAKE_INSTALL_PREFIX=/home/peter/software/gmt5 .. >>> >>> The ".." is very important here. >>> >>> Regards, >>> >>> Marcelo >>> >>> >>> >>> On Fri, Jan 31, 2014 at 4:26 PM, Peter <[email protected]> wrote: >>> >>>> Not working, Please someone help me... what I have to change in >>>> ConfigUser.cmake ? where to set netcdf and hdf ? what I am doing wrong ? >>>> >>>> I tried as you said >>>> >>>> $ tar -xf gmt-5.1.0-src.tar.gz >>>> $ cd gmt-5.1.0/ >>>> $ cd cmake/ >>>> $ cp ConfigUserTemplate.cmake ConfigUser.cmake >>>> $ cd .. >>>> $ mkdir build >>>> $ cd build >>>> $ cmake -DCMAKE_INSTALL_PREFIX=/home/peter/software/gmt5 >>>> CMake Error: The source directory "/home/peter/gmt-5.1.0/build" does >>>> not appear to contain CMakeLists.txt. >>>> Specify --help for usage, or press the help button on the CMake GUI. >>>> >>>> $ cat ConfigUser.cmake >>>> >>>> # >>>> # $Id: ConfigUserTemplate.cmake 12425 2013-11-01 10:09:27Z fwobbe $ >>>> # >>>> # Copyright (c) 1991-2013 by P. Wessel, W. H. F. Smith, R. Scharroo, J. >>>> Luis and F. Wobbe >>>> # See LICENSE.TXT file for copying and redistribution conditions. >>>> # >>>> # This program is free software; you can redistribute it and/or modify >>>> it >>>> # under the terms of the GNU Lesser General Public License as published >>>> by the >>>> # Free Software Foundation; version 3 or any later version. >>>> # >>>> # This program is distributed in the hope that it will be useful, but >>>> WITHOUT >>>> # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or >>>> # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public >>>> License >>>> # for more details. >>>> # >>>> # Contact info: gmt.soest.hawaii.edu >>>> # >>>> ---------------------------------------------------------------------------- >>>> >>>> # Use this file to override variables in 'ConfigDefault.cmake' on a >>>> per-user >>>> # basis. First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', >>>> then >>>> # edit 'ConfigUser.cmake'. 'ConfigUser.cmake' is not version controlled >>>> # (currently listed in svn:ignore property) >>>> # >>>> # Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any >>>> string >>>> # ending in "-NOTFOUND" to be false (this happens to be >>>> case-insensitive, so >>>> # "False", "off", "no", and "something-NotFound" are all false). Other >>>> values >>>> # are true. Thus it does not matter whether you use TRUE and FALSE, ON >>>> and >>>> # OFF, or YES and NO for your booleans. >>>> >>>> ## >>>> ## Section 1: Installation paths >>>> ## >>>> >>>> # >>>> ============================================================================ >>>> # Basic setup begins here. All settings are optional. In most cases, >>>> setting >>>> # CMAKE_INSTALL_PREFIX should be all you need to do in order to build >>>> GMT with >>>> # reasonable defaults enabled. >>>> # >>>> ============================================================================ >>>> >>>> # Installation path (usually defaults to /usr/local) [auto]: >>>> set (CMAKE_INSTALL_PREFIX "/home/peter/software") >>>> >>>> # Set install name suffix used for directories and gmt executables >>>> # [undefined]: >>>> set (GMT_INSTALL_NAME_SUFFIX "gmt5") >>>> >>>> # Install into traditional directory structure. Disable to install a >>>> # distribution type directory structure (doc and share separated) [on]: >>>> #set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF) >>>> >>>> # Install convenience links for GMT modules. Disable to install only >>>> the main >>>> # gmt program and access modules as "gmt modulename options" [TRUE]: >>>> #set (GMT_INSTALL_MODULE_LINKS FALSE) >>>> >>>> # >>>> ============================================================================ >>>> # Advanced configuration begins here. Usually it is not necessary to >>>> edit any >>>> # settings below. You should know what you are doing if you do though. >>>> Note: >>>> # installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless >>>> absolute >>>> # path is given. >>>> # >>>> ============================================================================ >>>> >>>> # Set binary installation path [bin]: >>>> #set (GMT_BINDIR "bin") >>>> >>>> # Set library installation path [lib or lib64]: >>>> #set (GMT_LIBDIR "lib") >>>> >>>> # Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]: >>>> #set (GMT_INCLUDEDIR "include/gmt") >>>> >>>> # Set share installation path [share or >>>> share/gmt${GMT_INSTALL_NAME_SUFFIX}]: >>>> #set (GMT_DATADIR "share/gmt") >>>> >>>> # Set doc installation path [share/doc or >>>> # share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]: >>>> #set (GMT_DOCDIR "share/doc/gmt") >>>> >>>> # Set manpage installation path [share/man or >>>> # share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]: >>>> #set (GMT_MANDIR "share/doc/gmt/man") >>>> >>>> # Install documentation files from this external location instead of >>>> creating >>>> # new PDF and HTML documents from scratch >>>> [${GMT_SOURCE_DIR}/doc_release]: >>>> #set (GMT_INSTALL_EXTERNAL_DOC OFF) >>>> >>>> # Install manual pages from this external location instead of creating >>>> the >>>> # manpages from scratch [${GMT_SOURCE_DIR}/man_release]: >>>> #set (GMT_INSTALL_EXTERNAL_MAN OFF) >>>> >>>> ## >>>> ## Section 2: Build dependencies (should only be needed if CMake cannot >>>> ## automatically detect the rights version or path.) >>>> ## >>>> >>>> # Set path to GSHHG Shoreline Database [auto]: >>>> #set (GSHHG_ROOT "gshhg_path") >>>> >>>> # Copy GSHHG files to $/coast [FALSE]: >>>> #set (COPY_GSHHG TRUE) >>>> >>>> # Set path to DCW Digital Chart of the World for GMT [auto]: >>>> #set (DCW_ROOT "dcw-gmt_path") >>>> >>>> # Copy DCW files to $/dcw [FALSE]: >>>> #set (COPY_DCW TRUE) >>>> >>>> # Set location of NetCDF (can be root directory, path to header file or >>>> path >>>> # to nc-config) [auto]: >>>> #set (NETCDF_ROOT "netcdf_install_prefix") >>>> >>>> # Set location of GDAL (can be root directory, path to header file or >>>> path to >>>> # gdal-config) [auto]: >>>> #set (GDAL_ROOT "gdal_install_prefix") >>>> >>>> # Set location of PCRE (can be root directory, path to header file or >>>> path to >>>> # pcre-config) [auto]: >>>> #set (PCRE_ROOT "pcre_install_prefix") >>>> >>>> # Set location of single precision FFTW (can be root directory or path >>>> to >>>> # header file) [auto]: >>>> #set (FFTW3_ROOT "fftw_install_prefix") >>>> >>>> # Set location of ZLIB (can be root directory or path to header file) >>>> [auto]: >>>> #set (ZLIB_ROOT "zlib_install_prefix") >>>> >>>> ## >>>> ## Section 3: GMT features >>>> ## >>>> >>>> # Enforce GPL or LGPL conformity. Use this to disable routines that >>>> cannot be >>>> # redistributed under the terms of the GPL or LGPL such as Shewchuk's >>>> # triangulation (valid values are GPL, LGPL and off) [off]: >>>> #set (LICENSE_RESTRICTED GPL) >>>> >>>> # Configure default units (possible values are SI and US) [SI]: >>>> #set (UNITS "US") >>>> >>>> # Enable file locking [FALSE]: >>>> #set (FLOCK TRUE) >>>> >>>> # Enable building of shared libraries [TRUE] (disable to use static >>>> libraries; >>>> # not recommended): >>>> #set (BUILD_SHARED_LIBS FALSE) >>>> >>>> # Build GMT shared lib with supplemental modules [TRUE]: >>>> #set (BUILD_SUPPLEMENTS FALSE) >>>> >>>> ## >>>> ## Section 4: Advanced tweaking >>>> ## >>>> >>>> # >>>> # Testing and development >>>> # >>>> >>>> # Enable running examples/tests with "ctest" or "make check" >>>> (out-of-source). >>>> # Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the >>>> following >>>> # line. >>>> #enable_testing() >>>> #set (DO_EXAMPLES TRUE) >>>> #set (DO_TESTS TRUE) >>>> # Number of parallel test jobs with "make check": >>>> #set (N_TEST_JOBS 4) >>>> >>>> # Enable this option to run GMT programs from within ${GMT_BINARY_DIR} >>>> without >>>> # installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is >>>> required >>>> # for testing [OFF]: >>>> #set (SUPPORT_EXEC_IN_BINARY_DIR ON) >>>> >>>> # List extra sub-dirs of 'src' with a CMakeList.txt to build non-module >>>> codes >>>> # that link against the full gmt libs (not just the API; for building >>>> codes >>>> # that only need the GMT API, see the gmtextension project). >>>> #set (EXTRA_BUILD_DIRS apidemo) >>>> >>>> # Directory in which to install the release sources per default >>>> # [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]: >>>> #set (GMT_RELEASE_PREFIX "release-src-prefix") >>>> >>>> # If set to false, image conversion from PS images to PNG and PDF does >>>> # not depend on the gmt binary target. Note: "make gmt" is then required >>>> # before docs_depends [TRUE]. >>>> #set (GMT_DOCS_DEPEND_ON_GMT FALSE) >>>> >>>> # >>>> # Debugging >>>> # >>>> >>>> # Set build type can be: empty, Debug, Release, RelWithDebInfo or >>>> MinSizeRel >>>> # [Release]: >>>> #set (CMAKE_BUILD_TYPE Debug) >>>> >>>> # Extra debugging for developers: >>>> #add_definitions(-DDEBUG) >>>> #add_definitions(-DMEMDEBUG) # Turn on memory tracking see >>>> gmt_support.c for extra info >>>> #set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # >>>> recommended even for release build >>>> #set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra >>>> warnings >>>> #set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb >>>> debugging symbols >>>> #set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check >>>> uninitialized variables >>>> #set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link >>>> dependencies >>>> >>>> # >>>> # System specific tweaks >>>> # >>>> >>>> # This is for GCC on Solaris to avoid "relocations remain against >>>> allocatable >>>> # but non-writable sections" problems: >>>> #set (USER_GMTLIB_LINK_FLAGS -mimpure-text) >>>> >>>> # This may be needed to enable strdup and extended math functions with >>>> GCC and >>>> # Suncc on Solaris: >>>> #set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__") >>>> >>>> # Do not warn when building with Windows SDK or Visual Studio Express: >>>> #set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON) >>>> >>>> # Manually select runtime library when compiling with Windows SDK or >>>> Visual >>>> # Studio Express: >>>> #set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS >>>> c:/Windows/System32/msvcr100.dll) >>>> >>>> # If your NetCDF library is static (not recommended, applies to Windows >>>> only) >>>> #set (NETCDF_STATIC TRUE) >>>> >>>> # If want to rename the DLLs to something else than the default (e.g. to >>>> # append the bitness - Windows only) >>>> #if (WIN32) >>>> # set (BITAGE 32) >>>> # # Detect if we are building a 32 or 64 bits version >>>> # if (CMAKE_SIZEOF_VOID_P EQUAL 8) >>>> # set (BITAGE 64) >>>> # endif () >>>> # set (GMT_DLL_RENAME gmt_w${BITAGE}) >>>> # set (PSL_DLL_RENAME psl_w${BITAGE}) >>>> #endif(WIN32) >>>> >>>> # On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build >>>> #if(MSVC11) >>>> # add_definitions(/D_ALLOW_KEYWORD_MACROS) >>>> #endif(MSVC11) >>>> >>>> # vim: textwidth=78 noexpandtab tabstop=2 softtabstop=2 shiftwidth=2 >>>> >>>> -Peter >>>> >>>> >>>> On Fri, Jan 31, 2014 at 8:10 PM, Joaquim Luis <[email protected]> wrote: >>>> >>>>> No. >>>>> >>>>> GMT5 use cmake not autotools as the building system so this won't work. >>>>> >>>>> >>>>> then you commonly enter the created tree of directories searching for >>>>>> a makefike. In this directory, you run: >>>>>> >>>>>> ./configure >>>>>> ./make install >>>>>> >>>>>> normally you have also an INSTALL and README files in the same >>>>>> directory. >>>>>> >>>>>> Finally you create some links and that's all. I don't now if this is >>>>>> your case, but is the common way to do those thinks >>>>>> >>>>>> 2014/1/31, p Valdés<[email protected]>: >>>>>> >>>>>>> tar.gz file is an archive (a box with many archives) + compressed >>>>>>> (gzip) >>>>>>> file >>>>>>> >>>>>>> you need first to uncompress the file with: gunzip myfile.tar.gz >>>>>>> >>>>>>> then you need to move to your choice directory and open the package >>>>>>> (now named myfile.tar) with >>>>>>> >>>>>>> tar -xvvf myfile.tar >>>>>>> >>>>>>> 2014/1/31, Peter<[email protected]>: >>>>>>> >>>>>>>> I have downloaded all the files shown in this page >>>>>>>> >>>>>>>> http://gmt.soest.hawaii.edu/projects/gmt/wiki/BuildingGMT >>>>>>>> http://gmt.soest.hawaii.edu/projects/gmt/wiki/PackagingGMT >>>>>>>> >>>>>>>> >>>>>>>> Really didn't understand please someone help >>>>>>>> >>>>>>>> How to install ? I don't want mixup with system library I want to >>>>>>>> install >>>>>>>> here >>>>>>>> >>>>>>>> /home/peter/software/gmt/gmt5 >>>>>>>> >>>>>>>> I have these files in home directory >>>>>>>> >>>>>>>> gmt-5.1.0-src.tar.gz >>>>>>>> gshhg-gmt-nc4-2.2.4.tar.gz >>>>>>>> dcw-gmt-1.1.0.tar.gz >>>>>>>> >>>>>>>> netcdf_home=/home/peter/software/netcdf/netcdf_4_3 >>>>>>>> hdf_home=/home/peter/software/hdf/hdf5 >>>>>>>> cmake_home=/home/peter/software/cmake/bin >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Please someone kindly help me, I am not interested to use yum as it >>>>>>>> installs old version >>>>>>>> >>>>>>>> >>>>>>>> - Peter >>>>>>>> >>>>>>>> To unsubscribe, send the message "signoff gmt-help" to >>>>>>>> [email protected] >>>>>>>> >>>>>>>> To unsubscribe, send the message "signoff gmt-help" to >>>>>> [email protected] >>>>>> >>>>>> >>>>>> >>>>> To unsubscribe, send the message "signoff gmt-help" to >>>>> [email protected] >>>>> >>>> >>>> To unsubscribe, send the message "signoff gmt-help" to >>>> [email protected] >>>> >>> >>> To unsubscribe, send the message "signoff gmt-help" to >>> [email protected] >>> >> >> To unsubscribe, send the message "signoff gmt-help" to >> [email protected] >> > > To unsubscribe, send the message "signoff gmt-help" to > [email protected] > To unsubscribe, send the message "signoff gmt-help" to [email protected]