py-faster-rcnn-windows icon indicating copy to clipboard operation
py-faster-rcnn-windows copied to clipboard

cannot find the stdbool.h

Open Simonhong111 opened this issue 9 years ago • 13 comments

hello, thanks for your code and i am trying to run your code ,however,when i complie the lib,i found that i met the error that the pyhon had no Miscrosoft Visual c++9.0,then i install the package by the guide ,but i met another error that python couldn't find the # stdbool.h,3Q for your help

Simonhong111 avatar Aug 20 '16 10:08 Simonhong111

it will be better you give a more details of the guide

Simonhong111 avatar Aug 20 '16 10:08 Simonhong111

Have you solved the problem?

xjock avatar Oct 10 '16 04:10 xjock

Yes ,I have. you can use vs 2013 ,however you should set your VS90COMNTOOLS your own address like E:\Program Files\Microsoft Visual Studio 12.0\Common7\Tools\ then your complier will use vs 2013 not vs 2008

Simonhong111 avatar Oct 10 '16 13:10 Simonhong111

You saved me. I've been banging my head without finding a solution before.

Vandertic avatar Apr 08 '17 09:04 Vandertic

It didn;t work for me. I had the same problem as @Simonhong111 however pointing VS90COMNTOOLS to C:\Program Files x86\Microsoft Visual Studio 12.0\Common7\Tools\ did not solve the issue.

Jumabek avatar Aug 24 '17 07:08 Jumabek

I solved it. What I said maybe amazing but it really works to me.

(1) Install VCForPython27.msi (2) Add VS90COMNTOOLS env var, and assign it D:\vs2015\Common7\Tools\ (maybe other version VS is also ok) (3) Run VCForPython27.msi again, choose remove.

Now run python setup.py install. It won't appear cannot find stdbool.h.

zhonhel avatar Aug 24 '17 08:08 zhonhel

@zhonhel This method is worked for me.

cgvict avatar Aug 31 '17 09:08 cgvict

@zhonhel also worked for me for setup.py and surprisingly setup_cuda.py also installed which had errors before this fix

anandkoirala avatar Sep 20 '17 01:09 anandkoirala

@zhonhel thanks for help, it really works for me!! After remove "VCForPython27.msi", the error was gone =D

ray2004a avatar Oct 03 '17 03:10 ray2004a

I am having same issue, followed steps by @zhonhel but, after I remove VCForPython27.msi, I get error for VS 2009 not found, Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 For env variable VS90COMNTOOLS I set vs2010 path.

AvaniPitre avatar Feb 27 '18 07:02 AvaniPitre

E:\06-prj\DOD\caffe_2013\py-faster-rcnn-master\lib>python setup.py install home = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5

running install running bdist_egg running egg_info writing fast_rcnn.egg-info\PKG-INFO writing top-level names to fast_rcnn.egg-info\top_level.txt writing dependency_links to fast_rcnn.egg-info\dependency_links.txt reading manifest file 'fast_rcnn.egg-info\SOURCES.txt' writing manifest file 'fast_rcnn.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_ext skipping 'utils\bbox.c' Cython extension (up-to-date) skipping 'nms\cpu_nms.c' Cython extension (up-to-date) skipping 'pycocotools_mask.c' Cython extension (up-to-date) building 'pycocotools._mask' extension C:\Users\test\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD / W3 /GS- /DNDEBUG -IC:\Users\test\Anaconda2\lib\site-packages\numpy\core\include -Ipycocotools -IC:\Users\test\Anaconda2
include -IC:\Users\test\Anaconda2\PC /Tcpycocotools\maskApi.c /Fobuild\temp.win-amd64-2.7\Release\pycocotools\maskApi.ob j -std=c99 cl : Command line warning D9002 : ignoring unknown option '-std=c99' maskApi.c e:\06-prj\dod\caffe_2013\py-faster-rcnn-master\lib\pycocotools\maskApi.h(8) : fatal error C1083: Cannot open include fil e: 'stdbool.h': No such file or directory error: command 'C:\Users\test\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64 \cl.exe' failed with exit status 2

Who can help me ? I tried a lot of ways.

zoufangyu1987 avatar Mar 21 '18 16:03 zoufangyu1987

I've done it, amending it as follows: find the file: .\Anaconda2\Lib\distutils\msvc9compiler.py

Locate to line 304: VERSION = get_build_version() replace it with : VERSION = 12.0

zoufangyu1987 avatar Mar 22 '18 06:03 zoufangyu1987

Hi @zhonhel , I am unable to add vc90comntools env var. Could you please provide me steps to do that.

Maulshree27 avatar Apr 24 '19 06:04 Maulshree27