You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm following the official documentation available here to compile MicMac on Ubuntu 22.04.2 LTS.
First thing: qt5-default doesn't exist anymore:
$ sudo apt-get install make imagemagick libimage-exiftool-perl exiv2 proj-bin qt5-default cmake build-essential
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package qt5-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'qt5-default' has no installation candidate
So when trying to build, it quickly stops:
$ cmake -DWITH_QT5=1 -DWITH_CPP11=1 ..
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- -----> OpenGL found
CMake Error at CMakeLists.txt:211 (find_package):
By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Qt5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Widgets" with
any of the following names:
Qt5WidgetsConfig.cmake
qt5widgets-config.cmake
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"Qt5Widgets_DIR" to a directory containing one of the above files. If
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
See also "/opt/micmac/build/CMakeFiles/CMakeOutput.log".
But installing those packages as described here, fixed the issue.
The compilation goes well, until the very where this error occurs:
/opt/micmac/src/util/visual_mainwindow.cpp: In member function ‘virtual void visual_MainWindow::resizeEvent(QResizeEvent*)’:
/opt/micmac/src/util/visual_mainwindow.cpp:992:56: error: ‘int QDesktopWidget::screenNumber(const QPoint&) const’ is deprecated: Use QGuiApplication::screenAt() [-Werror=deprecated-declarations]
992 | QRect desk_rect = m->screenGeometry(m->screenNumber(QCursor::pos()));
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /opt/micmac/src/saisieQT/include_QT/Elise_QT.h:40,
from /opt/micmac/src/saisieQT/include_QT/saisieQT_window.h:4,
from /opt/micmac/include/general/visual_mainwindow.h:9,
from /opt/micmac/src/util/visual_mainwindow.cpp:4:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:75:60: note: declared here
75 | QT_DEPRECATED_X("Use QGuiApplication::screenAt()") int screenNumber(const QPoint &) const;
| ^~~~~~~~~~~~
/opt/micmac/src/util/visual_mainwindow.cpp:992:40: error: ‘const QRect QDesktopWidget::screenGeometry(int) const’ is deprecated: Use QGuiApplication::screens() [-Werror=deprecated-declarations]
992 | QRect desk_rect = m->screenGeometry(m->screenNumber(QCursor::pos()));
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/micmac/src/saisieQT/include_QT/Elise_QT.h:40,
from /opt/micmac/src/saisieQT/include_QT/saisieQT_window.h:4,
from /opt/micmac/include/general/visual_mainwindow.h:9,
from /opt/micmac/src/util/visual_mainwindow.cpp:4:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qdesktopwidget.h:79:67: note: declared here
79 | QT_DEPRECATED_X("Use QGuiApplication::screens()") const QRect screenGeometry(int screen = -1) const;
| ^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/elise.dir/build.make:11229: src/CMakeFiles/elise.dir/util/visual_mainwindow.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:400: src/CMakeFiles/elise.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Could you provide a fix or any hint on how to solve this issue?
The errors seems to originate from here:
Hello,
I'm following the official documentation available here to compile MicMac on Ubuntu 22.04.2 LTS.
First thing:
qt5-default
doesn't exist anymore:So when trying to build, it quickly stops:
But installing those packages as described here, fixed the issue.
The compilation goes well, until the very where this error occurs:
Could you provide a fix or any hint on how to solve this issue?
The errors seems to originate from here:
micmac/src/util/visual_mainwindow.cpp
Lines 989 to 998 in 7db0ec5
Thanks a lot.
Warm Regards.
The text was updated successfully, but these errors were encountered: