Darshith B.S
Darshith B.S

Reputation: 3

installation of freeglut in visual studio 2019

I have tried many ways of installing freeglut in visual studio but it isn't working. I got an solution but i am not getting the idea on how to work with. the solution is this 1. Open powershell. 2. git clone https://github.com/Microsoft/vcpkg.git 3. cd .\vcpkg 4. .\bootstrap-vcpkg.bat 5. .\vcpkg.exe install openssl 6. .\vcpkg.exe integrate install After the above steps, you could use the opengl directly in your VS. More info about vcpkg, please see here: https://github.com/Microsoft/vcpkg i am now stuck at step 4 where the command is not working in powershell it says

Blockquote

.\bootstrap-vcpkg.bat : The term '.\bootstrap-vcpkg.bat' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + .\bootstrap-vcpkg.bat + ~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\bootstrap-vcpkg.bat:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

Blockquote

what is the issue here? what could be the solution to this?

Upvotes: 0

Views: 6755

Answers (1)

Alexander Neumann
Alexander Neumann

Reputation: 2018

First of all to use freeglut you probably want to do:

.\vcpkg.exe install freeglut instead of .\vcpkg.exe install openssl

If you did that and combined it with .\vcpkg.exe integrate install vcpkg will automatically included the <vcpkgroot>/installed/<triplet>/include folder to your include folders in VS and link all libraries <vcpkgroot>/installed/<triplet>/(debug/)lib/ automatically.

Personally I would always suggest to use the CMake toolchain since some preprocess definitions cannot be automatically set.

I would also highly suggest that you read the documentation of vcpkg since those details are also explained there

Upvotes: 1

Related Questions