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

Source building errors of Unknown CMake command PYQT_WRAP_UI occurred in Fedora 36 #49250

Closed
2 tasks
viisautta opened this issue Jul 5, 2022 · 3 comments
Closed
2 tasks
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close.

Comments

@viisautta
Copy link

What is the bug or the crash?

...
Found QCA OpenSSL plugin
Pedantic compiler settings enabled
Found GSL: -lgsl -lgslcblas -lm
-- Found Python executable: /usr/bin/python3.10 (version 3.10.5)
-- Python library: /usr/lib64/libpython3.10.so
-- Python site-packages: /usr/lib64/python3.10/site-packages
Using PROJ >= 6 srs database.
CMake Error at python/CMakeLists.txt:1 (file):
file must be called with at least two arguments.

CMake Error at python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeLists.txt:3 (PYQT_WRAP_UI):
Unknown CMake command "PYQT_WRAP_UI".

Configuring incomplete, errors occurred!
See also "/home/on/Public/Devel/QGIS-final-3_26_0/build/CMakeFiles/CMakeOutput.log".

Configure failed with the following output

Steps to reproduce the issue

mkdir build
cd build
ccmake ..

BINDINGS_GLOBAL_INSTALL OFF
BUILD_TESTING ON
CCACHE_FOUND /usr/bin/ccache
CMAKE_BUILD_TYPE
CMAKE_ENABLE ON
CMAKE_INSTALL_PREFIX /usr/local
CXX_EXTRA_FLAGS
DISABLE_DEPRECATED OFF
ENABLE_COVERAGE OFF
ENABLE_LOCAL_BUILD_SHORTCUTS OFF
ENABLE_MODELTEST OFF
ENABLE_TESTS ON
EXIV2_INCLUDE_DIR /usr/include
EXIV2_LIBRARY /usr/lib64/libexiv2.so
EXPAT_INCLUDE_DIR /usr/include
EXPAT_LIBRARY /lib64/libexpat.so
GDAL_CONFIG /usr/bin/gdal-config
GDAL_CONFIG_PREFER_FWTOOLS_PAT /bin_safe
GDAL_CONFIG_PREFER_PATH /bin
GDAL_INCLUDE_DIR /usr/include/gdal
GDAL_LIBRARY /usr/lib64/libgdal.so
GENERATE_COVERAGE_DOCS OFF
GEOS_CONFIG /usr/bin/geos-config
GEOS_CONFIG_PREFER_PATH /bin
GEOS_INCLUDE_DIR /usr/include
GEOS_LIBRARY /usr/lib64/libgeos_c.so
GEOS_LIB_NAME_WITH_PREFIX -lgeos_c
GRASS_PREFIX7
GRASS_PREFIX8
GSL_CONFIG /usr/bin/gsl-config
GSL_CONFIG_PREFER_PATH /bin
GSL_EXE_LINKER_FLAGS -Wl,-rpath,
HAS_KDE_QT5_FONT_STRETCH_FIX OFF
HAS_KDE_QT5_PDF_TRANSFORM_FIX OFF
HAS_KDE_QT5_SMALL_CAPS_FIX OFF
HDF5_C_LIBRARY_hdf5 /usr/lib64/libhdf5.so
NETCDF_INCLUDE_DIR /usr/include
NETCDF_LIBRARY /lib64/libnetcdf.so
OPENCL_HPP_RENAMED_PATH /usr/include
PEDANTIC ON
POSTGRESQL_PREFIX
PROJ_INCLUDE_DIR /usr/include
PROJ_LIBRARY /usr/lib64/libproj.so
PUSH_TO_CDASH OFF
QCA_INCLUDE_DIR /usr/include/QtCrypto
QCA_LIBRARY /usr/lib64/libqca.so
QGIS_INSTALL_SYS_LIBS ON
QGIS_QML_SUBDIR qml
QGIS_SERVER_MODULE_SUBDIR lib/qgis/server
QML_IMPORT_PATH
QSCINTILLA_INCLUDE_DIR /usr/include/qt5
QSCINTILLA_LIBRARY /usr/lib64/libqscintilla2_qt5.so
QTKEYCHAIN_INCLUDE_DIR /usr/include/qtkeychain
QTKEYCHAIN_LIBRARY /usr/lib64/libqtkeychain.so
QT_ADDITIONAL_HOST_PACKAGES_PR
QT_ADDITIONAL_PACKAGES_PREFIX_
QT_DOC_URL https://doc.qt.io/qt-5/
QT_PLUGINS_DIR /usr/lib64/qt6/plugins
QWT_INCLUDE_DIR /usr/include/qwt
QWT_LIBRARY /usr/lib64/libqwt.so
Qt5Core_DIR /usr/lib64/cmake/Qt5Core
Qt5Gui_DIR /usr/lib64/cmake/Qt5Gui
Qt5Widgets_DIR /usr/lib64/cmake/Qt5Widgets
Qt5_DIR Qt5_DIR-NOTFOUND
Qt6Concurrent_DIR /usr/lib64/cmake/Qt6Concurrent
Qt6Core5Compat_DIR /usr/lib64/cmake/Qt6Core5Compat
Qt6CoreTools_DIR /usr/lib64/cmake/Qt6CoreTools
Qt6Core_DIR /usr/lib64/cmake/Qt6Core
Qt6DBusTools_DIR /usr/lib64/cmake/Qt6DBusTools
Qt6DBus_DIR /usr/lib64/cmake/Qt6DBus
Qt6GuiTools_DIR /usr/lib64/cmake/Qt6GuiTools
Qt6Gui_DIR /usr/lib64/cmake/Qt6Gui
Qt6LinguistTools_DIR /usr/lib64/cmake/Qt6LinguistTools
Qt6Network_DIR /usr/lib64/cmake/Qt6Network
Qt6OpenGLPrivate_DIR /usr/lib64/cmake/Qt6OpenGL
Qt6OpenGLWidgets_DIR /usr/lib64/cmake/Qt6OpenGLWidgets
Qt6OpenGL_DIR /usr/lib64/cmake/Qt6OpenGL
Qt6PrintSupport_DIR /usr/lib64/cmake/Qt6PrintSupport
Qt6QmlCompilerPlusPrivate_DIR Qt6QmlCompilerPlusPrivate_DIR-NOTFOUND
Qt6QmlIntegration_DIR /usr/lib64/cmake/Qt6QmlIntegration
Qt6QmlModels_DIR /usr/lib64/cmake/Qt6QmlModels
Qt6QmlTools_DIR /usr/lib64/cmake/Qt6QmlTools
Qt6Qml_DIR /usr/lib64/cmake/Qt6Qml
Qt6QuickWidgets_DIR /usr/lib64/cmake/Qt6QuickWidgets
Qt6Quick_DIR /usr/lib64/cmake/Qt6Quick
Qt6SerialPort_DIR /usr/lib64/cmake/Qt6SerialPort
Qt6Sql_DIR /usr/lib64/cmake/Qt6Sql
Qt6SvgWidgets_DIR /usr/lib64/cmake/Qt6SvgWidgets
Qt6Svg_DIR /usr/lib64/cmake/Qt6Svg
Qt6Test_DIR /usr/lib64/cmake/Qt6Test
Qt6UiPlugin_DIR /usr/lib64/cmake/Qt6UiPlugin
Qt6UiTools_DIR /usr/lib64/cmake/Qt6UiTools
Qt6WidgetsTools_DIR /usr/lib64/cmake/Qt6WidgetsTools
Qt6Widgets_DIR /usr/lib64/cmake/Qt6Widgets
Qt6Xml_DIR /usr/lib64/cmake/Qt6Xml
Qt6_DIR /usr/lib64/cmake/Qt6
SIP_GLOBAL_INSTALL OFF
SPATIALINDEX_INCLUDE_DIR /usr/include
SPATIALINDEX_LIBRARY /usr/lib64/libspatialindex.so
SPATIALITE_INCLUDE_DIR /usr/include
SPATIALITE_LIBRARY /usr/lib64/libspatialite.so
SQLITE3_INCLUDE_DIR /usr/include
SQLITE3_LIBRARY /lib64/libsqlite3.so
USE_CCACHE ON
USE_OPENCL ON
WERROR OFF
WITH_3D OFF
WITH_ANALYSIS ON
WITH_APIDOC OFF
WITH_ASTYLE OFF
WITH_AUTH ON
WITH_BINDINGS ON
WITH_COPC ON
WITH_CRASH_HANDLER ON
WITH_CUSTOM_WIDGETS OFF
WITH_DESKTOP ON
WITH_EPT ON
WITH_GRASS7 ON
WITH_GRASS8 ON
WITH_GSL ON
WITH_GUI ON
WITH_HANA OFF
WITH_INTERNAL_LAZPERF ON
WITH_INTERNAL_MDAL ON
WITH_INTERNAL_O2 ON
WITH_INTERNAL_POLY2TRI ON
WITH_OAUTH2_PLUGIN ON
WITH_ORACLE OFF
WITH_PDAL OFF
WITH_POSTGRESQL ON
WITH_PY_COMPILE OFF
WITH_QGIS_PROCESS ON
WITH_QSPATIALITE OFF
WITH_QT5SERIALPORT OFF
WITH_QT6 ON
WITH_QTWEBKIT ON
WITH_QUICK OFF
WITH_QWTPOLAR OFF
WITH_SERVER OFF
WITH_SPATIALITE ON
WITH_STAGED_PLUGINS ON
XKB_INCLUDE_DIR /usr/include
XKB_LIBRARY /usr/lib64/libxkbcommon.so

Versions

Fedora 36
QGIS 3.26
Qt 6
Python 3.10

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@viisautta viisautta added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 5, 2022
@viisautta viisautta changed the title Source building errors occurred in Fedora 36 Source building errors of PYQT_WRAP_UI occurred in Fedora 36 Jul 5, 2022
@viisautta viisautta changed the title Source building errors of PYQT_WRAP_UI occurred in Fedora 36 Source building errors of Unknown CMake command PYQT_WRAP_UI occurred in Fedora 36 Jul 5, 2022
@Pedro-Murteira Pedro-Murteira added Build/Install Related to compiling or installing QGIS Linux labels Jul 6, 2022
@alexbruy
Copy link
Contributor

Please try with the latest master, there were some improvements for Qt6 support. Also note that Python bindings is not supported yet, that's probably the reason of your issue.

@alexbruy alexbruy added Feedback Waiting on the submitter for answers and removed Linux labels Oct 26, 2023
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Nov 10, 2023
Copy link

github-actions bot commented Dec 8, 2023

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2023
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 Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

No branches or pull requests

3 participants