Closed MattQ50 closed 6 years ago
sighs AngelScript is a little finicky with Win64 builds, yes...
This procedure should fix the build:
1) Right-click the angelscript
project in the solution browser to bring up its context menu
Build Dependencies -> Build Customizations
masm
to enable MASM
2) In the solution browser, under angelscript/Source Files
, find the file as_callfunc_x64_msvc_asm.asm
.Exclude from Project
.
3) Right-click on angelscript/Source Files
, and select Add -> Existing Item
source/angelscript/source/as_callfunc_x64_msvc_asm.asm
in your SR2 repository and add it to the project.Once you are done, VS should successfully compile AngelScript and will be able to include it in the game the next time you try to build it.
EDIT: According to Dolynick, another option is to change the path to the source code until all spaces are removed. For instance, if your repository is in C:/Users/Me Too/Documents/Mod Repositories/StarRuler2
, it would have to become C:/Users/MeToo/Documents/ModRepositories/StarRuler2
.
Worked perfectly, thank you.
As title says, when building on Visual Studio 2017 in both debug or non-steam versions, building crashes and exits with 2 failed processes.
Exact line: 9>LINK : fatal error LNK1181: cannot open input file 'angelscript64.lib'