Hello everyone.

I'm starting a project using GPStk, but I'm having a problem with the installation. I was following the "Building under" guide but it was unsuccessful.

I installed Cmake, MS Visual Studio 2012 (along with the C++ Redistributable) and downloaded the gpstk-2.4.src.tar.gz package. I've followed all the steps proposed in the guide but later, already in Visual Studio, when building the INSTALL project I got this error:

Error 1 error MSB3073: The command "setlocal "C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd :VCEnd" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 134 5 INSTALL

Also, I noticed that in the Solution Explorer panel I only have 56 projects to build instead of the 111 that appear in the guide figures. I don't know if it's a sign of anything. Nevertheless, all the 56 projects were successfully installed. The big problem, apparently, is building the INSTALL project.

Anyone has any idea of what's wrong?

(My system is Windows 7 Enterprise SP1 64-bits)


-- SergioSantos - 29 Jul 2014

Hey Sergio,

While the picture is out of date, you should still see 105 Projects in the Solution Explorer Panel. It sounds like either your download from GitHub or Sourceforge was corrupted, or your CMake build of the Visual Studio Project encountered an error.

Do me a favor, reclone the GPSTk repo from Github (https://github.com/SGL-UT/GPSTk). After watching the download and validating no errors occured, rerun the CMake command you used and post that command here. Then open the VS2012 Express and try again. Basically, I just want to check all steps before debugging the VS side, since it seems you are missing over half of the projects.

Thanks for your interest in the GPS Toolkit,

-- BryanParsons - 30 Jul 2014


Another possibility may be the folder name of your install location in the CMake command. Make sure to pay mind to any spaces in the installation path and folder names, wrapping with string quotations as needed by Windows.

No Wrapping: -DCMAKE_INSTALL_PREFIX:PATH=/the_path/to/install_folder

Needs Wrapping: -DCMAKE_INSTALL_PREFIX:PATH=/the path/to/install folder/

Hmm, I need to add this note into the build instructions.

-- BryanParsons - 30 Jul 2014

Hello Bryan.

Thank you for taking the time.

Still got the same error...

I'm not sure if I follow what you said about recloning but I deleted all the files and downloaded without errors from that link you mentioned (the file is called originally "GPSTk-master.zip" and has 86.0 Mb, 280 unzipped). Then I moved the files to C:/gpstk/build_VS2012 directory and in the command prompt I wrote cmake -DCMAKE_INSTALL_PREFIX:PATH=c:gpstk/build_VS2012 -G "Visual Studio 11 Win64"

Everything seemed to go okay (figure 1), but after opening the project gpstk.sln I'm still seeing only 56 projects (figure 2).
  • figure_1.jpg:

  • figure_2.jpg:

Hey Sergio,

So I went through the same steps to try to replicate the problem. I realized that the version I was using originally to get the total project count was an older version. The 86MB/280 Unzipped file you downloaded is correct, and should have 56 projects when opened in Visual Studio. I've updated the GPSTk.org page with updated pictures. Sorry about the confusion.

One thing that I recommend is to create a seperate build folder within the GPSTk folder. That will keep the build files isolated from the actual GPSTk code and keep things cleaner.

From the build folder, call the command: cmake -DCMAKE_INSTALL_PREFIX:PATH=c:gpstk/build_VS2012 -G "Visual Studio 11 Win64" ../dev

When in the project, set the appropriate build flag (DEBUG or RELEASE) and build the ALL_BUILD project, as per the instructions. Then build the INSTALL project, as per the instructions, making sure to screen capture the Output log if any errors are encountered. You can undock the Output window, resize the window, and Alt+Print Screen to screen cap if you want to just screencap the window (make sure you click on the window and make it active). Then paste the output here in the forum and we can debug it from there.

If no errors occurred, then we can virtually hifive each other and you can begin utilizing the GPS Toolkit.

Thanks again for your interest in the GPS Toolkit.

-- BryanParsons - 01 Aug 2014

Greetings Bryan.

Highfive then! I guess it's correctly installed now. I think my error was either not separating correctly the build folder or the ../dev in the cmake command or both... Nevertheless, maybe it would be helpful to clarify a little bit the building guide. I don't know if I misunderstood it but probably step 6 can be a little misleading. In my opinion it would be better to add a new step between steps 5 and 6 to move the extracted files to gpstk folder, not /gpstk/build_VS2012 (as I understood it initially), in order to clearly underline the separation of the build folder and the GPStk folder. Only after should we position ourselves in gpstk/build_VS2012 directory and run the adequate CMake command.

Also, to be consistent with the previous steps shouldn't the figure of step 18 have this command line:

PS C:\...\gpstk\*build_VS2012*\bin>.*\*timeconvert

instead of the one currently presented?

Anyway, thanks for the patience and help.

I hope I can pick you guys' brains in other more advance topics but I'll promise not to be very boring...

Topic attachments
I Attachment Action Size Date Who Comment
figure_1.jpgjpg figure_1.jpg manage 99.8 K 31 Jul 2014 - 12:27 SergioSantos  
figure_2.jpgjpg figure_2.jpg manage 420.7 K 31 Jul 2014 - 12:28 SergioSantos  
Topic revision: r5 - 01 Aug 2014, SergioSantos

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