Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build instructions #92

Open
ShortRoundDev opened this issue Dec 30, 2021 · 4 comments
Open

Add build instructions #92

ShortRoundDev opened this issue Dec 30, 2021 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed triaged Issues that have been triaged

Comments

@ShortRoundDev
Copy link

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 PolygonalSun self-assigned this Jan 4, 2022
@PolygonalSun
Copy link
Contributor

PolygonalSun commented Jan 4, 2022

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.

@MiiBond
Copy link
Contributor

MiiBond commented Jan 21, 2022

Some build instructions for macOS would be wonderful too :)

@bghgary bghgary added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers triaged Issues that have been triaged labels Dec 7, 2023
@bghgary
Copy link
Contributor

bghgary commented Dec 7, 2023

Dupe / related: #70

@SugarWater442
Copy link

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:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed triaged Issues that have been triaged
Projects
None yet
Development

No branches or pull requests

5 participants