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

Another 'Could NOT find Sip (missing: SIP_INCLUDE_DIR) :-( #79

Closed
filipgoc opened this issue Dec 4, 2018 · 4 comments
Closed

Another 'Could NOT find Sip (missing: SIP_INCLUDE_DIR) :-( #79

filipgoc opened this issue Dec 4, 2018 · 4 comments
Labels

Comments

@filipgoc
Copy link

filipgoc commented Dec 4, 2018

System
I am on MacOS Sierra, 10.12.6.

The error:
When trying to cmake libArcus, I get Could NOT find Sip (missing: SIP_INCLUDE_DIR)

I have reviewed, I think, all the topics related to this. After a few hours (I'm sad to admit), I still have nothing. Please help.

Is there a troubleshooting procedure I can follow? What's the first/next troubleshooting step?

Here's what I get from both python and python3:

>>> import sipconfig
>>> sipconfig.Configuration().sip_version_str '4.19.13'

Most relevant form the topics reviewed so far:

#73
#59
#76
#17

@awhiemstra You mentioned before that SIP_INCLUDE_DIR could be set manually? Could you elaborate how?

Alternatively, can I do without libArcus? I tried to power through, but a slew of errors ensued.

@filipgoc
Copy link
Author

filipgoc commented Dec 5, 2018

So... using brew install sip --with-python3 got rid of this problem.

Nothing else worked until then.

It's still not working overall (other issues later on), but this specific error is gone.

@CatchZeng
Copy link

CatchZeng commented Apr 12, 2019

@Ghostkeeper I have the same problem.

@CatchZeng
Copy link

@filipgoc @Ghostkeeper I solved this problem by adding SIP_INCLUDE_DIR parameter to Cmake.

-DSIP_INCLUDE_DIR=The directory where the sip.h file is located

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$VIRTUAL_ENV -DCMAKE_PREFIX_PATH=$VIRTUAL_ENV -DBUILD_STATIC=ON -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=OFF -DSIP_INCLUDE_DIR="/Users/catchzeng/pyenv/Python_3.7.0-PyQt_5.10/include/python3.7m" ..

@ghost
Copy link

ghost commented Jul 17, 2019

FYI - I was perplexed after looking at this, and related previous issues, and still struggling.

With Python 3.5.2, PyQt 5.10, SIP 4.19.13, and Cmake 3.14.5, I had use the variable name SIP_INCLUDE_DIRS with the value "/Users/zjwgb/pyenv/Python_3.5.2-PyQt_5.10/include/python3.5m". I tried this both in the Cmake UI, and via the command line tool, by including this in the command: DSIP_INCLUDE_DIRS="/Users/zjwgb/pyenv/Python_3.5.2-PyQt_5.10/include/python3.5m".

Using that, Cmake ran through successfully.

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

No branches or pull requests

3 participants