⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 gps源代码
💻
📖 第 1 页 / 共 2 页
字号:
Installation of the GPSTk library and applications--------------------------------------------------This INSTALL file has these sectionsIntroductionBuilding and Installing in a UNIX-like Environment using JamBuilding and Installing in a UNIX-like Environment using GNU makeBuilding under Microsoft Visual Studio .NET 2003ADDENDUM: Standard notes on using configureMore background information can be found at the GPSTk website, http://www.gpstk.org/ .Introduction------------   This project uses Jam for all of its configuration, build & install tasks.   See http://perforce.com/jam/jam.html for more details on this tool.   There are two sections below, excepted from the GPSTk website at    http://www.gpstk.org/, that describe how UNIX and Windows users   can build and install the GPSTk.   This project uses doxygen to dynamically generate API documentation.   See http://www.doxygen.org/ for more details.   As of ver. 1.1 we have introduced autoconf generated Makefiles into the    GPSTk. Since this is a new feature, your mileage may vary. If you don't   know how use these makefile, the attached info at the bottom of this file   from the Free Software Foundation will help.   For more information about building the GPSTk, see the website at   http://www.gpstk.org/Building and Installing in a UNIX-like Environment using Jam------------------------------------------------------------This section describes build and installation under the following environments.   - Linux, AIX and Windows/Cygwin using gcc versions 3.3 and 3.4   - Solaris using Sun Workshop 6 or Sun ONE Studio 8The following procedure will build and install the GPSTk.   1. Ensure that prerequisites such as jam have been installed.   2. Download the GPSTk distribution.   3. Extract the GPSTk tarball. For example, using GNU tar         $ tar xvzf gpstk.tar.gz   4. Change into the gpstk directory and type         $ jam   5. To build the source documentation using doxygen:         $ doxygen    6. To install GPSTk as a system library in /usr/local, assume root       privileges then execute         $ jam install Building and Installing in a UNIX-like Environment using GNU make-----------------------------------------------------------------The following procedure will build and install the GPSTk using recent, standard GNU build tools. The build has been successfully tested using the following tools and versions:   autoconf (GNU Autoconf) 2.59   GNU m4 1.4.2   automake (GNU automake) 1.8.5To check the version of the tool you are using, use the GNU standard version option. For example   autoconf --versionIf you successfully build the GPSTk using other versions of the tools, or if you successfully build in a new environment, please let us know.The following procedure will build and install the GPSTk.   1. Ensure that prerequisites, except jam , have been installed.   2. Download the GPSTk distribution.   3. Extract the GPSTk tarball. For example, using GNU tar         tar xvzf gpstk.tar.gz   4. Change into the gpstk directory and type         ./autogen.sh         ./configure         make   5. To build the source documentation using doxygen:          doxygen    6. To install GPSTk as a system library in /usr/local, assume root       privileges then execute         make installBuilding under Microsoft Visual Studio .NET------------------------------------------------If you are building GPSTk under the Cygwin environment, then use the buildinstructions for UNIX-like environments (above).The GPSTk is not supported under Microsoft Visual C++ 6.0, or earlier, mainly because templates in classes are not supported. Currently there are no Makefiles for MSVS, so you must use jam to build the GPSTk on the command line.Here are the steps we have used to build under MSVS.NET 2003 andthe Free .NET Express Compiler 2005.   1. Ensure that prerequisites such as jam have been installed.   2. You may have to reinstall the compiler to build with GPSTk. In order f      or Jam to work under Windows, the MSVS command line tools       (compiler and linker) must be installed in a directory without      whitespace in it. Thus the default installation directory       (\Program Files\...), for example, will cause Jam to fail. Sorry,       you'll have to re-install in another directory.       Also, if the VSVARS32.BAT batch file was not installed,       this option must be chosen during a reinstallation.   3. Open a command window and run the VSVARS32.BAT batch file before       running Jam. You should be able to type the following into the      DOS Prompt:      cl      and get a response from the compiler.   4. Jam requires that two other environment variables be set: MSCVNT,      and MSCVER. The value you use depends on which version of the compiler      you will used. For the 2003 .NET compiler use:         set MSVCNT=C:\MSVS2003\VC7         set MSCVER=1300      For the 2005 Free Express Compiler use:         set MSVCNT=C:\MSVS2005\VC         set MSCVER=1400      The directory on the right of the '=' is the directory where the command      line tools are installed (it will have subdirectories bin,lib,include,       etc.); this tells Jam where the compiler and linker are.       Of course you may have other install directories; this example uses       C:\MSVC2003 for the 2003 tools and C:\MSVC2005 for the 2005 tools. Note       the different subdirectories '\VC7' and '\VC'; this is an MS thing,       these are the directories where the \bin, \lib, and \include directories      are found. (The values 1300 and 1400 were chosen because all MS       compilers define the macro _MSC_VER as a float number of the form       'MMmm.mm' where MM is the major version, and mm.mm is the minor version       number; in MS VC++ versions 6, 7 and 8 the major versions are 12, 13,       and 14 respectively).   5. Ensure the Jam executable for Windows is in the path. Install the GPSTk       tarball and change to the /dev directory of the GPSTk -- the file       'Jamrules' should be here -- and type         jam      Jam will tell you which compiler you are using, and then get to work.Notes about the Windows build:Note 1. You could install BOTH MS compilers, in different directories, and then put all this setup into batch files that allow you to run either one independently. For example:      REM Batch file go2005.bat  Run from the command line      REM    before using jam and the MS 2005 build tools.      set MSVCNT=C:\MSVC2005\VC      set MSCVER=1400      REM This is a copy of VSVARS32.bat that came with MS VC++ 2005      call VSVARS32_2005      REM Move to my working directory      cd C:\WorkingDirectoryand      REM Batch file go2003.bat  Run from the command line      REM    before using jam and the MS 2003 build tools.      set MSVCNT=C:\MSVC2003\VC7      set MSCVER=1300      REM This is a copy of VSVARS32.bat that came with MS VC++.NET 2003      call VSVARS32_2003      REM Move to my working directory      cd C:\WorkingDirectoryWith  these batch  files the  whole process  is a  simple as  (a) opencommand window, (b)  type go2005 (or go2003), (c)  type jam. Type 'jamclean' to delete all the object (.obj) and executable (.exe) files.Note 2. In the past we have required the commandset NEED_REGEX=yesunder   Windows,   in   order   to  ensure   that   src\regex.c   getscompiled. However  this is  handled automatically within  the Jamrulesfile and so it is not necessary to type this on the command line.Note 3. The Jamrules file is where the MSCVER variable is required(unlike the MSVCNT variable, which the jam executable requires). Ifyou use only one compiler exclusively, you might edit the Jamrulesfile and remove this version dependency; then you would not needMSCVER at all.Note 4. In any  case you ought to look at the  Jamrules file; look for$(NT),  which  the  Windows  executable  jam.exe  defines,  for  itemsrelevant to  Windows. C++FLAGS contains C++  compiler options, CCFLAGScontains  C compiler  options (but  note  that CCFLAGS  is changed  in\src\Jamfile for compiling regex.c), LINKFLAGS are linker options, andLINKLIBS are extra libraries included in  the link.  # Note 5. We havefound  that optimization  is a  practical necessity  in  building withthese compilers. The option /O2 (that's capital 'oh' not 'zero') seemsto be  best for speed. Jamrules  now includes /O2 in  both versions ofthe MS  compilers. Of course you  may change this, or  any compiler orlinker options, by editing Jamrules.Note 6.  In the  past one  of the problems  in using  jam with  the MScompilers beyond version 6.0  has been that the libraries advapi32.liband kernel32.lib seemed  to be missing. This, however,  comes from thejam  executable,  not  from  MS.  These libraries  are  required,  andprovided,  in  MS VC++  6.0,  and  this is  the  default  for the  jamexecutable.  Jam.exe does  this by  defining the  default  LINKLIBS to

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -