无法在Windows上为CURA运行nmake,在主体上给出了链接

问题描述

我正在尝试构建source of CURA。我按照说明进行操作,但出现以下错误

D:\work\cura-build-environment-master\build>nmake -f ALL_BUILD.vcxproj

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
copyright (C) Microsoft Corporation.  All rights reserved.

ALL_BUILD.vcxproj(1) : Fatal error U1036: Syntax error : too many names to left of '='
Stop.

解决方法

我已经使用了CMAKE应用程序,并且由于安装了Visual Studio,因此它会生成扩展名为.vcxproj的文件而不是makefiles。因此,我使用了以下命令:

cmake -DCMAKE_INSTALL_PREFIX=../install_dir -DBUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ..
从构建文件夹中的终端

开始工作。我为nmake创建了makefile。

然后nmake起作用了。