首页 > 解决方案 > MakeFile 未由 mingw32-make 执行

问题描述

我正在尝试运行 GitHub 存储库的代码。链接 --> https://github.com/ViDA-NYU/urban-pulse#windows-7-8-10 第一个构建通过 cmd.exe 上的 mingw32-make 命令执行 MakeFile。该执行显示“语法错误:文件意外结束”错误。 截屏https://drive.google.com/open?id=1CJErtpVviLCileL0xPNaHyBnkVoqJBWf)。 https://drive.google.com/open?id=1CJErtpVviLCileL0xPNaHyBnkVoqJBWf

我尝试使用 MinGW mingw32-make 和 MSYS make 执行它,但没有一个起作用。我已经从官方网站安装了 MinGW。

这是直到第 43 行的 MakeFile。文件的名称是“MakeFile”

#############################################################################
# Makefile for building: ComputePulse
# Generated by qmake (3.0) (Qt 5.6.2)
# Project:  ComputePulse.pro
# Template: subdirs
# Command: C:\Users\Kanishk\Anaconda3\Library\bin\qmake.exe -o Makefile ComputePulse.pro
#############################################################################

MAKEFILE      = Makefile

first: make_first
QMAKE         = C:\Users\Kanishk\Anaconda3\Library\bin\qmake.exe
DEL_FILE      = del
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
COPY          = copy /y
COPY_FILE     = copy /y
COPY_DIR      = xcopy /s /q /y /i
INSTALL_FILE  = copy /y
INSTALL_PROGRAM = copy /y
INSTALL_DIR   = xcopy /s /q /y /i
DEL_FILE      = del
SYMLINK       = $(QMAKE) -install ln -f -s
DEL_DIR       = rmdir
MOVE          = move
SUBTARGETS    =  \
        sub-Scalars-Scalars-pro \
        sub-PulseJNI-Pulse-pro


sub-Scalars-Scalars-pro-qmake_all:  FORCE
    @if not exist Scalars\ mkdir Scalars\ & if not exist Scalars\ exit 1
    cd Scalars\ && $(QMAKE) E:\BTP\urban-pulse-master\ComputePulse\Scalars\Scalars.pro -o Makefile
    @set MAKEFLAGS=$(MAKEFLAGS)
    cd Scalars\ && $(MAKE) -f Makefile qmake_all
sub-Scalars-Scalars-pro: FORCE
    @if not exist Scalars\ mkdir Scalars\ & if not exist Scalars\ exit 1
    @set MAKEFLAGS=$(MAKEFLAGS)
    cd Scalars\ && ( if not exist Makefile $(QMAKE) E:\BTP\urban-pulse-master\ComputePulse\Scalars\Scalars.pro -o Makefile ) && $(MAKE) -f Makefile
sub-Scalars-Scalars-pro-make_first: FORCE
    @if not exist Scalars\ mkdir Scalars\ & if not exist Scalars\ exit 1
    @set MAKEFLAGS=$(MAKEFLAGS)
    cd Scalars\ && ( if not exist Makefile $(QMAKE) E:\BTP\urban-pulse-master\ComputePulse\Scalars\Scalars.pro -o Makefile ) && $(MAKE) -f Makefile

该执行预计将创建两个名为 Scalars 和 Pulse 的可执行文件。信息也可以在上面的链接中找到。

标签: c++qtmakefilemingwmingw32

解决方案


推荐阅读