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

[Error] Compiling on Windows produces TypeError #2666

Closed
ivanskodje opened this issue Oct 23, 2015 · 7 comments
Closed

[Error] Compiling on Windows produces TypeError #2666

ivanskodje opened this issue Oct 23, 2015 · 7 comments
Labels

Comments

@ivanskodje
Copy link
Contributor

While I won't disregard the possibility of user error on my part; I believe there might be an issue with the latest godot build.

Following the guide in the wiki (here), I have installed python 2.7 and latest version of scones.

I have cloned the repository and attempted to compile using scons. I get an error;
(screenshot here)

Administrator: Developer Command Prompt for VS2015:

C:\godot>scons platform=windows
scons: Reading SConscript files ...
TypeError: cannot concatenate 'str' and 'NoneType' objects:
File "C:\godot\SConstruct", line 230:
detect.configure(env)
File "./platform/windows\detect.py", line 221:
env.Append(CCFLAGS=['/I'+os.getenv("WindowsSdkDir")+"/Include"])

Is this a common problem? I have tried searching for it, but could not find a solution.
Could it possibly be a version problem with VS? I am using Visual Studio Community 2015.

@vnen
Copy link
Member

vnen commented Oct 24, 2015

The guide you cited does say it doesn't work with VS2015. It seems that VS2012 is also problematic. You can download VS2013 (even the Community version) which is known to work, or help fix the issue, if you can.

@ivanskodje
Copy link
Contributor Author

Ah, I must have missed it. Thank you.

@jduhls
Copy link

jduhls commented Feb 25, 2016

In case someone else runs into this: "WindowsSdkDir" env variable has not been set. I followed instructions in this github comment (you have to create a new C++ project in VS2015 to install for the first time): nodejs/node-gyp#694 (comment)

I am godot 2.0, python 2.7, VS2015 on Windows 10

@toger5
Copy link
Contributor

toger5 commented Aug 27, 2017

I tried compiling godot only with thw
E microsoft c++ build tools.
I have the same problem.
env.Append(CCFLAGS=['/I'+os.getenv("WindowsSdkDir")+"/Include"])
I installed the build tools with the windows 10 sdk. Should i have used the windows 8.1 ones?

@vnen
Copy link
Member

vnen commented Aug 27, 2017

@toger5 The problem is that WindowsSdkDir env var is not defined. I never used the build tools, so I'm not sure what environment it provides. This should be fixed by setting the WindowsSdkDir yourself, or finding if there's another one to replace it.

@toger5
Copy link
Contributor

toger5 commented Aug 27, 2017

Ty @vnen
For anyone else running into that issue, there is a file called vsvars32.bat in the common7 folder.
It sets up the path and environment vars correctly

@akien-mga
Copy link
Member

You really need to fix your spellcheck @toger5 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants