Comments (6)
there is one more CMakeLists.txt with find_package Qt under plugins/player_mpv, do you forget to modify it at the same time? or maybe you can try to explicitly specify -DQT_MAJOR_VERSION=6
.
from qimgv.
@zymelaii nah, setting QT_MAJOR_VERSION
through cli arguments is ignored by cmake.
I also tried a message("Qt Version: " ${QT_VERSION})
in a plugins/player_mpv and it sees the qt6, judging by output, so I don't think it's failing out there.
from qimgv.
then how about QT_DEFAULT_MAJOR_VERSION?
https://doc.qt.io/qt-6/cmake-variable-reference.html#qt-default-major-version
from qimgv.
Nope, it still ignores the option, either I'm doing something wrong:
$ cmake .. -DKDE_SUPPORT=ON -DCMAKE_BUILD_TYPE=Release -DQT_DEFAULT_MAJOR_VERSION=6
-- The CXX compiler identification is GNU 13.1.1
-- 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
-- Build configuration: Release
-- Qt Version: 5.15.9
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for module 'exiv2'
-- Found exiv2, version 0.27.6
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found OpenCV: /usr (found version "4.7.0") found components: core imgproc
-- Checking for module 'mpv'
-- Found mpv, version 2.1.0
-- Configuring done (0.8s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
QT_DEFAULT_MAJOR_VERSION
-- Build files have been written to: /home/gigas/downloads/qimgv/build
from qimgv.
uhh, i tried it on my arch and both versions of qt completed the build.
here is my devenv
- exiv2 0.27.6
- mpv 2.0.0
- opencv 4.7.1
the key difference may lie on the option "KDE_SUPPORT"
qimgv specifies kf5windowsystem and this is from the repo KDE/kwindowsystem, which is now updating to kf6windowsystem.
i guess that kf5windowsystem is built with qt5 while the kf6 is built with qt6. with cmake interface property written to the library target, the kf... lib can only accept the qt with the desired version.
so simply disable KDE_SUPPORT or replace kf5windowsystem with kf6windowsystem to fit qt6 may help.
from qimgv.
So that's where the error came from! That's reasonable.
Thanks for noticing this, it builds without issues, when excluding KDE_SUPPORT
option
from qimgv.
Related Issues (20)
- Request: offline thumbnail processor
- Network shares won't render images
- Image has wrong scale with multiple monitors in different scale HOT 2
- Update Qt to 6.6 HOT 1
- Time to switch HOT 9
- The application crashes when trying to view some JXL files HOT 1
- App crashes on ICO (v1.0.3-alpha-101) HOT 1
- Some SVG images, aren't displayed at all
- [Feature] German translation HOT 1
- [FEATURE] manual labels on the "move to" quick folders.
- How do I designate a quick folder? HOT 2
- [Feature request] Automatically switch to nearest neighbour upscaling for very small pictures (Pixelart)
- Failed to build with exiv2 v0.28.0 HOT 1
- Dark fusion theme [Qt6, Win11] HOT 8
- advices
- Zoom out less than 100% HOT 2
- Show current scale factor somewhere
- Some keystroke detection is broken [Qt 6.7.0] HOT 4
- Feature: Add option to use embedded cover as thumbnail (for video files)
- Video playback detaches on mpv v0.38.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qimgv.