microsoft / glTF-SDK

glTF-SDK is a C++ Software Development Kit for glTF (GL Transmission Format -https://github.com/KhronosGroup/glTF).
MIT License
540 stars 100 forks source link

Add build instructions #92

Open ShortRoundDev opened 2 years ago

ShortRoundDev commented 2 years ago

Is this project still being supported? I may be missing something here, but master branch doesn't build on VS2022 under > C++14. I'm on Windows 10 21H1

Severity    Code    Description Project File    Line    Suppression State
Error   LNK1181 cannot open input file 'C:\Users\colli\source\repos\glTF\Built\Out\v143\x64\Debug\GLTFSDK\GLTFSDK.lib'  GLTFSDK.Test    C:\Users\colli\source\repos\glTF\GLTFSDK.Test\LINK  1   
Error   C2440   '<function-style-cast>': cannot convert from 'initializer list' to 'Microsoft::glTF::rapidjson::SchemaDocument' GLTFSDK C:\Users\colli\source\repos\glTF\GLTFSDK\Source\SchemaValidation.cpp    37  
Error   C1189   #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 <filesystem> header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning.  Serialize   C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.30.30528\include\experimental\filesystem 30  
Error   C1189   #error:  The <experimental/filesystem> header providing std::experimental::filesystem is deprecated by Microsoft and will be REMOVED. It is superseded by the C++17 <filesystem> header providing std::filesystem. You can define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge that you have received this warning.  Deserialize C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.30.30528\include\experimental\filesystem 30  

Are there build instructions for the SLN file? It appears this may require C++ 11 if it's still using the experimental headers?

PolygonalSun commented 2 years ago

Hey @ShortRoundDev, this project is still being supported. As far as building, we use cmake to build everything so the existing sln is more of an old artifact that needs to be removed.

The basic instructions for creating the solution would be as follows (requires cmake):

I'll get some instructions written up and added to the readme sometime this week.

MiiBond commented 2 years ago

Some build instructions for macOS would be wonderful too :)

bghgary commented 10 months ago

Dupe / related: #70

SugarWater442 commented 2 months ago

Hello! I followed the steps above and ran cmake. I got an error message similar to the following: error: could not find git for clone of RapidJSON Please let me know if there is a solution:)