Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_nanomsg_cpy/wrapper.c(4) : fatal error C1083: Cannot open include file: 'nanomsg/nn.h': No such file or directory #44

Open
fandp opened this issue Sep 18, 2015 · 2 comments

Comments

@fandp
Copy link

fandp commented Sep 18, 2015

I try to run "python setup.py build" at windows7 command line, but an error happened: "_nanomsg_cpy/wrapper.c(4) : fatal error C1083: Cannot open include file: 'nanomsg/nn.h': No such file or directory."

The nanomsg is installed at C:\nanomsg, and I found the nn.h file is located at: C:\nanomsg\src

How can I let python konw the nanomsg path?

My enviroment is nanomsg-0.6-beta, python 3.4 32 bit, visual studio c++ express 2010, windows 7 64 bit.

Who can tell me how to do it? I'm a newer at python. thanks.
Best Regards!

@bnewbold
Copy link

Hi @fandp,

Is nanomsg installed at C:\nanomsg or just downloaded/checked-out/extracted there? I'm not really sure how Windows installs work these days, but i'd expect there to be an include directory somewhere, not just src.

I think you need to add a --include-dirs argument to your python setup.py build command, which would point to an include directory (containing nanomsg/nn.h. You might also need a library_dirs variable set somewhere. See also: https://docs.python.org/2/distutils/configfile.html

@codypiersall
Copy link
Contributor

PR #54 adds wheel building on Windows to this repository. You can download the wheels now if you want to: just click on your Python version, click on artifacts, download the wheel and you can pip install it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants