Closed dandingol03 closed 2 years ago
I have the same problem like you, did you fix it?
Hi,
After digging a little, it seems that on macOS, the following header include:
#include <version>
accidentally resolves to dependencies/version
.
A quick workaround is to rename it to dependencies/version.txt
, and update SConscript.configure
to refer to the new filename:
diff --git a/build/SConscript.configure b/build/SConscript.configure
index baca8b74..c98f0345 100644
--- a/build/SConscript.configure
+++ b/build/SConscript.configure
@@ -281,7 +281,7 @@ else:
Export('MTS_VERSION')
if needsBuildDependencies:
- versionFilename = GetBuildPath('#dependencies/version')
+ versionFilename = GetBuildPath('#dependencies/version.txt')
versionMismatch = False
if not os.path.exists(versionFilename):
I'm opening a couple of PRs to integrate those changes.
By the way, in case you're using the scons-python3
branch, I've just updated it to stop using has_key
method which was removed. I tested it with SCons 4.3.0.
OS: Mac big sur python version: 2.7.16
log as below: