<div dir="ltr"><div><div>Matteo,<br><br></div><div>Which OS are you using?<br></div><div><br></div>I have similar problems trying to build QGIS 3 in openSUSE Leap 42.3. I posted a question a few days back about that. I got an answer from Luigi, saying that the lines of code where the error happened had not changed in over a year, a hint that QGIS is not the problem.<br><br>Puzzled about the repeating error, and having installed and reinstalled all thinkable dependencies and changed all options, I saw that I could without problems build QGIS 2.18.17. I then came to the conclusion that the most likely trouble is caused by misunderstandings in the coexistence between Python 3 and 2, and QT 4 and 5 in my own OS installation. I mean that I am not clearly telling the build where to find the libraries, and that I possibly have a mix of versions in my computer.<br><br>I have not yet worked around this, but I am pretty convinced this is a problem because I have seen these kind of errors in previous versions, in those cases when I wasn't careful enough to tell the compiler to not use Python 3 or QT 5.<br><br></div><div>Hope this helps.<br><br></div><div>H.<br></div><div><br><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 8, 2018 at 8:41 AM, matteo <span dir="ltr"><<a href="mailto:matteo.ghetta@gmail.com" target="_blank">matteo.ghetta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi devs,<br>
<br>
even with a new source directory I cannot compile QGIS. I get this error:<br>
<br>
<br>
In file included from<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingregistry.cpp:20:<wbr>0:<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:<br>
In member function ‘virtual QgsProcessingParameterType::<wbr>ParameterFlags<br>
QgsProcessingParameterTypeVect<wbr>orDestination::flags() const’:<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:396:13:<br>
error: ‘QgsProcessingParameterType::<wbr>ParameterFlags {aka class<br>
QFlags<<wbr>QgsProcessingParameterType::<wbr>ParameterFlag>}’ has no member named<br>
‘setFlag’<br>
       flags.setFlag( ParameterFlag::<wbr>ExposeToModeler, false );<br>
             ^<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:<br>
In member function ‘virtual QgsProcessingParameterType::<wbr>ParameterFlags<br>
QgsProcessingParameterTypeFile<wbr>Destination::flags() const’:<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:438:13:<br>
error: ‘QgsProcessingParameterType::<wbr>ParameterFlags {aka class<br>
QFlags<<wbr>QgsProcessingParameterType::<wbr>ParameterFlag>}’ has no member named<br>
‘setFlag’<br>
       flags.setFlag( ParameterFlag::<wbr>ExposeToModeler, false );<br>
             ^<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:<br>
In member function ‘virtual QgsProcessingParameterType::<wbr>ParameterFlags<br>
QgsProcessingParameterTypeFold<wbr>erDestination::flags() const’:<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:481:13:<br>
error: ‘QgsProcessingParameterType::<wbr>ParameterFlags {aka class<br>
QFlags<<wbr>QgsProcessingParameterType::<wbr>ParameterFlag>}’ has no member named<br>
‘setFlag’<br>
       flags.setFlag( ParameterFlag::<wbr>ExposeToModeler, false );<br>
             ^<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:<br>
In member function ‘virtual QgsProcessingParameterType::<wbr>ParameterFlags<br>
QgsProcessingParameterTypeRast<wbr>erDestination::flags() const’:<br>
/home/matteo/lavori/QGIS/QGIS/<wbr>src/core/processing/<wbr>qgsprocessingparametertypeimpl<wbr>.h:523:13:<br>
error: ‘QgsProcessingParameterType::<wbr>ParameterFlags {aka class<br>
QFlags<<wbr>QgsProcessingParameterType::<wbr>ParameterFlag>}’ has no member named<br>
‘setFlag’<br>
       flags.setFlag( ParameterFlag::<wbr>ExposeToModeler, false );<br>
             ^<br>
[ 11%] Building CXX object<br>
src/core/CMakeFiles/qgis_core.<wbr>dir/processing/models/<wbr>qgsprocessingmodelparameter.<wbr>cpp.o<br>
src/core/CMakeFiles/qgis_core.<wbr>dir/build.make:3250: recipe for target<br>
'src/core/CMakeFiles/qgis_<wbr>core.dir/processing/<wbr>qgsprocessingregistry.cpp.o'<br>
failed<br>
make[2]: ***<br>
[src/core/CMakeFiles/qgis_<wbr>core.dir/processing/<wbr>qgsprocessingregistry.cpp.o]<br>
Error 1<br>
make[2]: *** Waiting for unfinished jobs....<br>
CMakeFiles/Makefile2:1243: recipe for target<br>
'src/core/CMakeFiles/qgis_<wbr>core.dir/all' failed<br>
make[1]: *** [src/core/CMakeFiles/qgis_<wbr>core.dir/all] Error 2<br>
Makefile:160: recipe for target 'all' failed<br>
make: *** [all] Error 2<br>
<br>
<br>
Some suggestions?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
Matteo<br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></font></span></blockquote></div><br></div>