alicevision / QtOIIO

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

Errors occurred after typing "cmake .." and "make" #14

Open zengletian1491 opened 4 years ago

zengletian1491 commented 4 years ago

Errors occurred after typing "cmake .." and "make", and the bug report was in the following: ~/Software/QtOIIO/build$ make [ 11%] Automatic MOC for target QtOIIOPlugin [ 11%] Built target QtOIIOPlugin_autogen [ 22%] Building CXX object src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/QtOIIOHandler.cpp.o /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp: In member function ‘virtual bool QtOIIOHandler::read(QImage)’: /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:137:22: error: ‘Format_RGBA64’ is not a member of ‘QImage’ format = QImage::Format_RGBA64; // Qt documentation: The image is stored using a 64-bit halfword-ordered RGBA format (16-16-16-16). (added in Qt 5 ^ /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:145:22: error: ‘Format_RGBX64’ is not a member of ‘QImage’ format = QImage::Format_RGBX64; // Qt documentation: The image is stored using a 64-bit halfword-ordered RGB(x) format (16-16-16-16). This is the ^ /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:160:26: error: ‘Format_Grayscale16’ is not a member of ‘QImage’ format = QImage::Format_Grayscale16; // Qt documentation: The image is stored using an 16-bit grayscale format. (added in Qt 5.13) ^ /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:176:18: error: ‘Format_RGBA64’ is not a member of ‘QImage’ case QImage::Format_RGBA64: formatStr = "Format_RGBA64"; break; ^ /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:178:18: error: ‘Format_RGBX64’ is not a member of ‘QImage’ case QImage::Format_RGBX64: formatStr = "Format_RGBX64"; break; ^ /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:180:18: error: ‘Format_Grayscale16’ is not a member of ‘QImage’ case QImage::Format_Grayscale16: formatStr = "Format_Grayscale16"; break; ^ /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:318:21: error: ‘QRgba64’ was not declared in this scope QRgba64 color = QRgba64::fromRgba64(floatToUShort(rgba[0]), floatToUShort(rgba[1]), floatToUShort(rgba[2]), floatToUShort(rgba[3])); ^ /home/zeng/Software/QtOIIO/src/imageIOHandler/QtOIIOHandler.cpp:319:35: error: ‘color’ was not declared in this scope p = (quint64)color; ^** src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/build.make:75: recipe for target 'src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/QtOIIOHandler.cpp.o' failed make[2]: [src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/QtOIIOHandler.cpp.o] Error 1 CMakeFiles/Makefile2:97: recipe for target 'src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/all' failed make[1]: [src/imageIOHandler/CMakeFiles/QtOIIOPlugin.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: * [all] Error 2 Could you please give some suggestions?Thanks very much!

thima2017 commented 4 years ago

I think this means we need Qt 5.13 at least. I will try this https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.14.2-bionic. (Found this link there https://unix.stackexchange.com/questions/481063/ubuntu-18-04-1-lts-x64-how-to-update-qt-5-10-from-qt-5-9-5)

thima2017 commented 4 years ago

I've built it with that QT, but I needed to build this too https://github.com/OpenImageIO/oiio. OpenImageIO also has some QT dependencies. I used cmake-gui to edit paths.

fabiencastan commented 4 years ago

I would recommend to build oiio without qt.