Starting with GPSTk version 1.6 (and currently in the development version), the GPSTk will require the system provide regular expression (regex) support. All supported platforms except Visual C++ on Windows provide this functionality. There are multiple ways this could be provided on Visual C++ however the following approach has been and will continue to be tested.

  1. Download setup of the Regex package (GNU regular expression library) at at http://gnuwin32.sourceforge.net/
  2. Run the installer and install to the location of your choice (e.g. c:\Program Files\GnuWin32)
  3. Choose a "Full installation"
  4. Update the PATH, LIB, and INCLUDE variables in your compiler configuration settings for your platform with the paths of the newly install regex library.
    • For example, this file might be C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat. Add c:\Program Files\GnuWin32\include (or the appropriate install directory) to the INCLUDE variable, c:\Program Files\GnuWin32\lib to the LIB variable, and c:\Program Files\GnuWin32\bin to the PATH variable. Here are the detailed steps for the modification on one system:

This uses the free version of Microsoft Visual Studio Express 2012. The build shell is run with the command:
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"" x86

Regex is installed into c:\Program Files\GnuWin32\. In the GnuWin32\lib directory are the files libregex.dll.a libregex.la regex-bcc.lib regex.lib regex2.def. In the GnuWin32\include directory is the file regex.h.

It is recommended that you add the Regex library to the system Path variable in order to prevent having to add it to your path each time you want to run or compile a GPSTk program. This can be done by doing the following:
  1. Clicking start, right clicking on My Computer, and clicking properties.
  2. Go to the "Advanced" tab.
  3. Click "Environment Variables".
  4. Edit the "Path" variable, if it doesn't exist, create it.
  5. Append the path to the "bin" directory in the location where you installed GNUWin32 Regex into. The default for this is "C:\Program Files\GnuWin32\bin", usually you put a semicolon before the location to append a directory to the Path variable.

For this system, the file updated was C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat. Here is an example of the modified file.

Tested Versions:
  • GnuWin32 (PCRE) regex 2.7

Topic attachments
I Attachment Action Size Date Who Comment
vsvars32.batbat vsvars32.bat manage 4.3 K 29 May 2013 - 20:20 BryanParsons Updated Visual Studio C++ file for Regex
Topic revision: r8 - 12 Jun 2015, UnknownUser
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback