CharlesShang / FastMaskRCNN

Mask RCNN in TensorFlow
Apache License 2.0
3.09k stars 1.1k forks source link

Installation on Windows Command line error D8021 : invalid numeric argument '/Wno-cpp' #173

Closed Westerby closed 6 years ago

Westerby commented 6 years ago

Specs: Windows 10 Python 3.6,1

When running python setup.py build_ext --inplace I get error:

cl : Command line error D8021 : invalid numeric argument '/Wno-cpp' error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

I would appreciate any help.

ScNico commented 6 years ago

You can replace extra_compile_args=['-Wno-cpp', '-Wno-unused-function', '-std=c99'] with extra_compile_args={'gcc': ['/Qstd=c99']} in ./libs/datasets/pycocotools/setup.py. maybe help

Westerby commented 6 years ago

Super, it worked. Thanks!

ruizengalways commented 6 years ago

mark

ghost commented 6 years ago

How did you determine @ScNico which flags were the issue though?

ghost commented 6 years ago

I'm having similar issues on a totally different project, trying to build in QT-Creator a wallet for a cryptocurrency, but only ever works cross-compiled on linux for windows, or on linux.

siba36 commented 6 years ago

how can i replace extra_compile_args ?? @ScNico