FQ may not be able to see, the Internet has compiled, but not for their own projects, only to compile your own
Original compilation method
summary OpenPGM 5 : C Reference : Build Library : MSVC 2010 on Windows 7
labels Phase-Implementation
sidebar TOC5CReferenceProgrammersChecklist
Building with MSVC 2010 for Windows 7
First install Microsoft Visual C++ 2010 Express, Professional (x64 support), etc. Install the build system CMake and the PGM build dependencies Perl and Python 2.7.
Checkout the repository as per the Subversion guide, or download the latest source archive and extract. You can use Cygwin and Subversion to checkout the source.
$ *cd /cygdrive/c *
$ *svn checkout http://openpgm.googlecode.com/svn/tags/release-5-1-102
libpgm-5.1.102 *
Configure using a Visual Studio Command Prompt.
C:\> *cd \libpgm-5.1.102\openpgm\pgm*
C:\libpgm-5.1.102\openpgm\pgm> *mkdir build*
C:\libpgm-5.1.102\openpgm\pgm> *cd build*
C:\libpgm-5.1.102\openpgm\pgm\build> *cmake ..*
CMake will build a Makefile in the current directory with the PGM library to be built in the sub-directory lib.
To configure the release version use the following command or change the parameter using cmake-gui.
C:\libpgm-5.1.102\openpgm\pgm\build> *cmake -DCMAKE_BUILD_TYPE=Release ..*
Build.
C:\libpgm-5.1.102\openpgm\pgm\build> *nmake*
If you want a redistributable installer use CPack to build the package.
C:\libpgm-5.1.102\openpgm\pgm\build> *nmake package*
labels Phase-Implementation
sidebar TOC5CReferenceProgrammersChecklist
Building with MSVC 2010 for Windows 7
First install Microsoft Visual C++ 2010 Express, Professional (x64 support), etc. Install the build system CMake and the PGM build dependencies Perl and Python 2.7.
Checkout the repository as per the Subversion guide, or download the latest source archive and extract. You can use Cygwin and Subversion to checkout the source.
$ *cd /cygdrive/c *
$ *svn checkout http://openpgm.googlecode.com/svn/tags/release-5-1-102
libpgm-5.1.102 *
Configure using a Visual Studio Command Prompt.
C:\> *cd \libpgm-5.1.102\openpgm\pgm*
C:\libpgm-5.1.102\openpgm\pgm> *mkdir build*
C:\libpgm-5.1.102\openpgm\pgm> *cd build*
C:\libpgm-5.1.102\openpgm\pgm\build> *cmake ..*
CMake will build a Makefile in the current directory with the PGM library to be built in the sub-directory lib.
To configure the release version use the following command or change the parameter using cmake-gui.
C:\libpgm-5.1.102\openpgm\pgm\build> *cmake -DCMAKE_BUILD_TYPE=Release ..*
Build.
C:\libpgm-5.1.102\openpgm\pgm\build> *nmake*
If you want a redistributable installer use CPack to build the package.
C:\libpgm-5.1.102\openpgm\pgm\build> *nmake package*
--------------------------------------------------------------------------------------------------------------------------------------------------
CMAKE can specify the VS version, not necessarily 2010
After CMAKE generate project files can be found SLN project file in the build directory, you can compile VS, not have to use the command-line compiler
need to use GetGnuWin in patch.exe compile, GetGnuWin path needs to be added to the PATH environment variable
when other project references need to be copied include \ pgm entire folder, not just copy pgm.h
need to use GetGnuWin in patch.exe compile, GetGnuWin path needs to be added to the PATH environment variable
when other project references need to be copied include \ pgm entire folder, not just copy pgm.h
Reproduced in: https: //www.cnblogs.com/wuqincao/p/7464699.html