Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

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

Open
zengletian1491 opened this issue Dec 14, 2019 · 3 comments
Open

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

zengletian1491 opened this issue Dec 14, 2019 · 3 comments
Labels

Comments

@zengletian1491
Copy link

zengletian1491 commented Dec 14, 2019

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!

@simogasp simogasp added the build label May 2, 2020
@thima2017
Copy link

@thima2017
Copy link

thima2017 commented May 2, 2020

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
Copy link
Member

I would recommend to build oiio without qt.

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

No branches or pull requests

4 participants