glTF-SDK
glTF-SDK copied to clipboard
Add build instructions
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?
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):
- Pull down repo and navigate to base repo directory
- From there, create the path 'Built\Int\cmake_
' (eg. Built\Int\cmake_x64) - Note: This folder name is more of a guideline but is useful if you're using cmake to build the sln file for multiple flavors. You can also name the path something more meaningful, as long as it's in the Built folder because git ignores that folder.
- Example:
mkdir Built
cd Built
mkdir Int
cd Int
mkdir cmake_x64
cd cmake_x64
- Inside of your created folder, run the following command to kick off the build:
- Note: This command is referencing the example path above and is building a solution file specifically for 2022. If you change your path to be shorter or longer, you'll need to adjust the path so that cmake starts from the base repo directory.
cmake ..\..\.. -G "Visual Studio 17 2022" -A x64
- After that, just open the GLTFSDK.sln file or enter
start GLTFSDK.sln
and you should be able to start building it.
I'll get some instructions written up and added to the readme sometime this week.
Some build instructions for macOS would be wonderful too :)
Dupe / related: #70