qgis28-py27 and qgis210-py27 build failure (2.8.5) SOLVED
13/01/16 08:26
qgis28-py and qgis210-py, but not qgis26-py, build fails.
[ 95%] Generating analysis/sip_analysispart0.cpp, analysis/sip_analysispart1.cpp, analysis/sip_analysispart2.cpp, analysis/sip_analysispart3.cpp
cd /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python && /sw/bin/cmake -E echo
cd /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python && /sw/bin/cmake -E touch /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python/analysis/sip_analysispart0.cpp /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python/analysis/sip_analysispart1.cpp /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python/analysis/sip_analysispart2.cpp /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python/analysis/sip_analysispart3.cpp
cd /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python && /sw/bin/sip -t WS_MACX -t Qt_4_8_7 -w -e -x ANDROID -x ARM -x HAVE_TOUCH -x MOBILITY_LOCATION -x QSETINT_CONVERSION -x QSETTYPE_CONVERSION -x QVECTORINT_CONVERSION -x HAVE_QSCI_SIP -x VendorID -t WS_MACX -t Qt_4_8_7 -x Py_v3 -o -a /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python/qgis.analysis.api -j 4 -c /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/build/python/analysis -I /sw/share/sip-py27 -I /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/python /sw/src/fink.build/qgis210-py27-2.10.1-2/qgis-2.10.1/python/analysis/analysis.sip
sip: Unable to find file "QtCore/QtCoremod.sip"
make[2]: *** [python/analysis/sip_analysispart0.cpp] Error 1
make[2]: *** Deleting file `python/analysis/sip_analysispart0.cpp'
make[1]: *** [python/CMakeFiles/python_module_qgis__analysis.dir/all] Error 2
make: *** [all] Error 2
### execution of /tmp/fink.JF3YB failed, exit code 2
### execution of /tmp/fink.4FPeq failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-qgis210-py27-2.10.1-2
(Reading database ... 199458 files and directories currently installed.)
Removing fink-buildlock-qgis210-py27-2.10.1-2 ...
Failed: phase compiling: qgis210-py27-2.10.1-2 failed
The include path of pyqt4 is not passed when building python. In other versions, setting "-D PYQT4_SIP_DIR=%p/share/sip-py%type_pkg[python]/pyqt4-mac" works, but not with 2.8.5.
In the build directory, the lines are added
perl -pi -e "s|-I %p/share/sip-py%type_pkg[python] |-I %p/share/sip-py%type_pkg[python] -I %p/share/sip-py%type_pkg[python]/pyqt4-mac |" python/CMakeFiles/python_module_qgis__analysis.dir/build.make
perl -pi -e "s|-I %p/share/sip-py%type_pkg[python] |-I %p/share/sip-py%type_pkg[python] -I %p/share/sip-py%type_pkg[python]/pyqt4-mac |" python/CMakeFiles/python_module_qgis__core.dir/build.make
perl -pi -e "s|-I %p/share/sip-py%type_pkg[python] |-I %p/share/sip-py%type_pkg[python] -I %p/share/sip-py%type_pkg[python]/pyqt4-mac |" python/CMakeFiles/python_module_qgis__gui.dir/build.make
perl -pi -e "s|-I %p/share/sip-py%type_pkg[python] |-I %p/share/sip-py%type_pkg[python] -I %p/share/sip-py%type_pkg[python]/pyqt4-mac |" python/CMakeFiles/python_module_qgis__networkanalysis.dir/build.make