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

Compile fails, 'None' is not a member of 'QgsField::ConfigurationFlags' #44681

Closed
hege-li opened this issue Aug 13, 2021 · 7 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS

Comments

@hege-li
Copy link

hege-li commented Aug 13, 2021

What is the bug or the crash?

Building 3.20-git on RHEL7 with GCC 10.2.1 fails here (also tried devtoolset-8 and 9, no difference)

[ 0%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgis_core_autogen/mocs_compilation.cpp.o
In file included from /home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/mocs_compilation.cpp:171:
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:105:46: error: 'None' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlagsQgsField::ConfigurationFlag'}
105 | 18, uint(QgsField::ConfigurationFlags::None),
| ^~~~
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:106:46: error: 'NotSearchable' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlagsQgsField::ConfigurationFlag'}
106 | 19, uint(QgsField::ConfigurationFlags::NotSearchable),
| ^~~~~~~~~~~~~
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:107:46: error: 'HideFromWms' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlagsQgsField::ConfigurationFlag'}
107 | 20, uint(QgsField::ConfigurationFlags::HideFromWms),
| ^~~~~~~~~~~
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:108:46: error: 'HideFromWfs' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlagsQgsField::ConfigurationFlag'}
108 | 21, uint(QgsField::ConfigurationFlags::HideFromWfs),
| ^~~~~~~~~~~
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/qgis_core_autogen/mocs_compilation.cpp.o] Error 1

Steps to reproduce the issue

cmake ..
-DCMAKE_BUILD_TYPE=Release
-DWITH_SERVER=TRUE
-DWITH_SERVER_PLUGINS=FALSE
-DWITH_GUI=FALSE
-DWITH_DESKTOP=FALSE
-DWITH_POSTGRESQL=FALSE
-DWITH_BINDINGS=FALSE
-DWITH_QTWEBKIT=FALSE
-DWITH_QT5SERIALPORT=FALSE
-DENABLE_TESTS=FALSE
make

Versions

Latest 3.20.1+git

Additional context

No response

@hege-li hege-li added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Aug 13, 2021
@gioman
Copy link
Contributor

gioman commented Aug 13, 2021

@hege-li same as #44668 ?

@gioman gioman added the Feedback Waiting on the submitter for answers label Aug 13, 2021
@hege-li
Copy link
Author

hege-li commented Aug 13, 2021

@gioman This is different error in different version (3.16 vs 3.20).

@gioman
Copy link
Contributor

gioman commented Aug 13, 2021

@hege-li have you asked in the developers mailing list, rather than assuming is a bug?

@hege-li
Copy link
Author

hege-li commented Aug 13, 2021

@gioman I posted both on list too. Are you saying that build system failures are not fixable and they are not bugs? I build dozens of software, but QGis is most difficult to work with, every major version breaks something or increases some dependency version requirement etc. Of course it's clear it's not tested on RHEL/CentOS, I would change to Ubuntu if I could.

@gioman gioman added Build/Install Related to compiling or installing QGIS and removed Feedback Waiting on the submitter for answers labels Aug 13, 2021
@lbartoletti
Copy link
Member

@hege-li I was able to build QGIS on centos7, but from scratch to have the latest version of dependecies.

I guess you have an old Qt version. What's your version. Minimum required is 5.12.0

@hege-li
Copy link
Author

hege-li commented Sep 27, 2021

@lbartoletti I only see 5.9.7 available on my RHEL7, do you have some external repos on your centos7?

qt5-qtbase.x86_64 5.9.7-5.el7_9 @rhel-x86_64-server-7

@hege-li
Copy link
Author

hege-li commented Sep 27, 2021

I'll close this anyway, since I did not notice QGIS 5.20 qt5 version dependency was raised from 5.9 -> 5.12.

@hege-li hege-li closed this as completed Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

No branches or pull requests

3 participants