Ultimaker / libArcus

Communication library between internal components for Ultimaker software

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

filipgoc opened this issue · comments

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.

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.

@Ghostkeeper I have the same problem.

@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" ..

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.