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

Problem by compiling shvapp #5

Open
robertobucher opened this issue Nov 27, 2024 · 1 comment
Open

Problem by compiling shvapp #5

robertobucher opened this issue Nov 27, 2024 · 1 comment

Comments

@robertobucher
Copy link

We configured the Makefile using:

cd SHV/shvapp
mkdir build
cd build
cmake  -DSHVSPY_USE_QT6=OFF -DUSE_QT6=OFF -DLIBSHV_USE_QT6=OFF -DCMAKE_INSTALL_PREFIX=.. ..
make

and we obtain this error:

[ 72%] Built target jn50view_autogen
[ 73%] Building CXX object clients/jn50view/CMakeFiles/jn50view.dir/jn50view_autogen/mocs_compilation.cpp.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
                 from /home/bucher/ToDo/test_Felipe_build/SHV/shvapp/build/clients/jn50view/jn50view_autogen/OWAQZC3XRN/../../../../../clients/jn50view/src/svgscene/graphicsview.h:3,
                 from /home/bucher/ToDo/test_Felipe_build/SHV/shvapp/build/clients/jn50view/jn50view_autogen/OWAQZC3XRN/moc_graphicsview.cpp:10,
                 from /home/bucher/ToDo/test_Felipe_build/SHV/shvapp/build/clients/jn50view/jn50view_autogen/mocs_compilation.cpp:8:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:169:40: error: ‘QMatrix’ does not name a type; did you mean ‘QMatrix4x4’?
  169 |     QT_DEPRECATED_X("Use transform()") QMatrix matrix() const;
      |                                        ^~~~~~~
      |                                        QMatrix4x4
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:170:64: error: ‘QMatrix’ does not name a type; did you mean ‘QMatrix4x4’?
  170 |  QT_DEPRECATED_X("Use setTransform()") void setMatrix(const QMatrix &matrix, bool combine = false);
      |                                                             ^~~~~~~
      |                                                             QMatrix4x4
make[2]: *** [clients/jn50view/CMakeFiles/jn50view.dir/build.make:95: clients/jn50view/CMakeFiles/jn50view.dir/jn50view_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1992: clients/jn50view/CMakeFiles/jn50view.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

As you can see I tried all the possible defines I used in the past.
Last time, if I right remember, it compiled using only -DSHVSPY_USE_QT6=OFF or -DLIBSHV_USE_QT6=OFF...

It worked in the past without problems using QT5 and QT6, now it compiles only under QT6.

What are we doing wrong?

Thanks in advance

@fvacek
Copy link
Contributor

fvacek commented Nov 30, 2024

SHVSPY_USE_QT6=OFF is define for different project, please look at updated https://github.com/silicon-heaven/shvapp/blob/master/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants