alicevision / QtOIIO

Qt Image IO plugin based on OpenImageIO.
http://www.openimageio.org
Other
41 stars 14 forks source link

Qt6 compilation #17

Closed barbak closed 3 years ago

barbak commented 3 years ago

Hi,

Just getting the project to compile with Qt6.0.1. I was not able to compile the depthMapEntity subdirectory but the imageIOHandler works fine in PySide6.

depthMapEntity compilation leads to a: Could NOT find Qt63DCore (missing: Qt63DCore_DIR)

Tried to compile it from the AdditionalLibraries/Qt/qt3d-6.0.1/Src from the Qt installer, but the cmake files seems to be missing even after a successful compilation.

I was able to fully compile the project for Qt5.13.2 and Qt5.15.2.

% tree dist-*
dist-5.13.2
├── imageformats
│   └── libQtOIIOPlugin.dylib
└── qml
    └── DepthMapEntity
        ├── libdepthMapEntityQmlPlugin.dylib
        └── qmldir
dist-5.15.2
├── imageformats
│   └── libQtOIIOPlugin.dylib
└── qml
    └── DepthMapEntity
        ├── libdepthMapEntityQmlPlugin.dylib
        └── qmldir
dist-6.0.1
└── imageformats
    └── libQtOIIOPlugin.dylib

Hope this helps.

Cheers !

barbak commented 3 years ago

I admit that it is less clean than using version-less cmake targets but the feature is available only from qt5.15: https://www.qt.io/blog/versionless-cmake-targets-qt-5.15

fabiencastan commented 3 years ago

Thanks @barbak ;)