Newer versions of hxcpp definitely have that Build.xml
file, so you might as well go back to what you were using.
You have Visual Studio installed, right? Find the folder where it’s installed, then look for a “Common7
” folder (or, failing that, another “Common
” folder), with a “Tools
” folder inside that. Inside Common7/Tools
, you should find a file named vsvars32.bat
.
If you don’t find this file, then you need to reinstall or update Visual Studio’s tools (either download Visual Studio Express, or Visual Studio itself, but in the latter case you’ll have to check the right checkbox).
If you do find this file, then the problem is that hxcpp can’t find it. When searching, hxcpp checks a bunch of different environment variables, in order from most recent to least recent. Normally, Visual Studio’s installer will set the appropriate variable for you, but you can also do it manually.
Let’s say you have Visual Studio 11. Then the variable you want to set is VS110COMNTOOLS
(“Visual Studio 11 common tools”), and you want to set it to “C:\Program Files (x86)\Visual Studio 11.0\Common7\Tools
.” To do this:
> setx VS110COMNTOOLS "C:\Program Files (x86)\Visual Studio 11.0\Common7\Tools"
Or if you want to set it for all users, launch Command Prompt as an administrator, and do this:
> setx /M VS110COMNTOOLS "C:\Program Files (x86)\Visual Studio 11.0\Common7\Tools"
(Edit: it turns out you have to set it for all users.)
Once you do this, you may need to restart FlashDevelop or your computer.
This won’t affect compilation, but it’s certainly annoying. Open up project properties in FlashDevelop, and make sure the configuration file is correct.