[SOLVED] Building opencolorio with errors on Slackware 14.2 64
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Building opencolorio with errors on Slackware 14.2 64
Hello! Is it probably bug (building with slpkg)?
Quote:
....
....
/usr/include/OpenImageIO/imageio.h:1352:35: error: ‘TypeString’ was not declared in this scope
bool ok = getattribute (name, TypeString, &s);
^
/usr/include/OpenImageIO/imageio.h: In function ‘int OpenImageIO_v1_8::get_int_attribute(OpenImageIO_v1_8::string_view, int)’:
/usr/include/OpenImageIO/imageio.h:1359:32: error: ‘TypeInt’ was not declared in this scope
return getattribute (name, TypeInt, &val) ? val : defaultval;
^
/usr/include/OpenImageIO/imageio.h: In function ‘float OpenImageIO_v1_8::get_float_attribute(OpenImageIO_v1_8::string_view, float)’:
/usr/include/OpenImageIO/imageio.h:1363:32: error: ‘TypeFloat’ was not declared in this scope
return getattribute (name, TypeFloat, &val) ? val : defaultval;
^
/usr/include/OpenImageIO/imageio.h: In function ‘OpenImageIO_v1_8::string_view OpenImageIO_v1_8::get_string_attribute(OpenImageIO_v1_8::string_view, OpenImageI
O_v1_8::string_view)’:
/usr/include/OpenImageIO/imageio.h:1368:32: error: ‘TypeString’ was not declared in this scope
return getattribute (name, TypeString, &val) ? string_view(val) : defaultval;
^
/tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp: In function ‘int main(int, const char**)’:
/tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp:111:21: error: could not convert ‘UNKNOWN’ from ‘OpenImageIO_v1_8::TypeDesc::BASETYPE’ to ‘OpenImageIO
_v1_8::TypeDesc’
OIIO::ImageSpec spec;
^
/tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp:319:54: error: no matching function for call to ‘OpenImageIO_v1_8::ImageOutput::write_image(OpenImageI
O_v1_8::TypeDesc::BASETYPE, float*)’
f->write_image(OIIO::TypeDesc::FLOAT, &img[0]);
^
In file included from /tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp:36:0:
/usr/include/OpenImageIO/imageio.h:1097:18: note: candidate: virtual bool OpenImageIO_v1_8::ImageOutput::write_image(OpenImageIO_v1_8::TypeDesc, const void*, O
penImageIO_v1_8::stride_t, OpenImageIO_v1_8::stride_t, OpenImageIO_v1_8::stride_t, OpenImageIO_v1_8::ProgressCallback, void*)
virtual bool write_image (TypeDesc format, const void *data,
^
/usr/include/OpenImageIO/imageio.h:1097:18: note: no known conversion for argument 1 from ‘OpenImageIO_v1_8::TypeDesc::BASETYPE’ to ‘OpenImageIO_v1_8::TypeDe
sc’
src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/build.make:134: recipe for target 'src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/main.cpp.o' failed
make[2]: *** [src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:338: recipe for target 'src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/all' failed
make[1]: *** [src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
###############################################################################
Time : 20:08:37
Total build time : 4 Min 07 Sec
E N D
Do you have openimageio installed? If so try removing it and then building opencolorio.
I was delete and rebuild:
Quote:
/usr/include/OpenImageIO/imageio.h: In function ‘bool OpenImageIO_v1_8::getattribute(OpenImageIO_v1_8::string_view, std::string&)’:
/usr/include/OpenImageIO/imageio.h:1352:35: error: ‘TypeString’ was not declared in this scope
bool ok = getattribute (name, TypeString, &s);
^
/usr/include/OpenImageIO/imageio.h: In function ‘int OpenImageIO_v1_8::get_int_attribute(OpenImageIO_v1_8::string_view, int)’:
/usr/include/OpenImageIO/imageio.h:1359:32: error: ‘TypeInt’ was not declared in this scope
return getattribute (name, TypeInt, &val) ? val : defaultval;
^
/usr/include/OpenImageIO/imageio.h: In function ‘float OpenImageIO_v1_8::get_float_attribute(OpenImageIO_v1_8::string_view, float)’:
/usr/include/OpenImageIO/imageio.h:1363:32: error: ‘TypeFloat’ was not declared in this scope
return getattribute (name, TypeFloat, &val) ? val : defaultval;
^
/usr/include/OpenImageIO/imageio.h: In function ‘OpenImageIO_v1_8::string_view OpenImageIO_v1_8::get_string_attribute(OpenImageIO_v1_8::string_view, OpenImageIO_v1_8::string_view)’:
/usr/include/OpenImageIO/imageio.h:1368:32: error: ‘TypeString’ was not declared in this scope
return getattribute (name, TypeString, &val) ? string_view(val) : defaultval;
^
/tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp: In function ‘int main(int, const char**)’:
/tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp:111:21: error: could not convert ‘UNKNOWN’ from ‘OpenImageIO_v1_8::TypeDesc::BASETYPE’ to ‘OpenImageIO_v1_8::TypeDesc’
OIIO::ImageSpec spec;
^
/tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp:319:54: error: no matching function for call to ‘OpenImageIO_v1_8::ImageOutput::write_image(OpenImageIO_v1_8::TypeDesc::BASETYPE, float*)’
f->write_image(OIIO::TypeDesc::FLOAT, &img[0]);
^
In file included from /tmp/SBo/OpenColorIO-1.1.0/src/apps/ocioconvert/main.cpp:36:0:
/usr/include/OpenImageIO/imageio.h:1097:18: note: candidate: virtual bool OpenImageIO_v1_8::ImageOutput::write_image(OpenImageIO_v1_8::TypeDesc, const void*, OpenImageIO_v1_8::stride_t, OpenImageIO_v1_8::stride_t, OpenImageIO_v1_8::stride_t, OpenImageIO_v1_8::ProgressCallback, void*)
virtual bool write_image (TypeDesc format, const void *data,
^
/usr/include/OpenImageIO/imageio.h:1097:18: note: no known conversion for argument 1 from ‘OpenImageIO_v1_8::TypeDesc::BASETYPE’ to ‘OpenImageIO_v1_8::TypeDesc’
src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/build.make:134: recipe for target 'src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/main.cpp.o' failed
make[2]: *** [src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:338: recipe for target 'src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/all' failed
make[1]: *** [src/apps/ocioconvert/CMakeFiles/ocioconvert.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Total build time for the package opencolorio : 3 Min 87 Sec
+==============================================================================
| Some error on the package opencolorio-1.1.0 [ FAILED ]
+==============================================================================
| See the log file in '/var/log/slpkg/sbo/build_logs' directory or read the README file
+==============================================================================
Good! It is was done with slpkg successful!
Why this difference? This is number versions is exactly same..
I think opencolorio has an optional circular dependency on openimageio. Your openimageio build was old or it was in conflict with opencolorio due to incompatibility in its code.
Last edited by RadicalDreamer; 10-28-2018 at 11:42 AM.
I think opencolorio has an optional circular dependency on openimageio.
Thanks! But sources of both packages is available. Is it exist some cache in another area when doing building?
Or why exactly? Do you have a link for teach this situation?
Thanks! But sources of both packages is available. Is it exist some cache in another area when doing building?
Or why exactly? Do you have a link for teach this situation?
Code:
/usr/include/OpenImageIO/imageio.h: In function ‘bool OpenImageIO_v1_8::getattribute(OpenImageIO_v1_8::string_view, std::string&)’:
/usr/include/OpenImageIO/imageio.h:1352:35: error: ‘TypeString’ was not declared in this scope
bool ok = getattribute (name, TypeString, &s);
^
Your error code showed that OpenImageIO was installed and that opencolorio was reading the imageio.h header file which is apart of the OpenImageIO package and had trouble using it. Most stuff is installed into /usr/. The cache wouldn't have anything to do with it because the compiler is looking at the packages that are installed. https://en.wikipedia.org/wiki/Dependency_hell#Problems https://en.wikipedia.org/wiki/Circular_dependency
Last edited by RadicalDreamer; 10-28-2018 at 12:01 PM.
Thanks! Is it correct what only two packages into my system suitable for dependences hell, and why packet manager do not was known about this situation?
Thanks! Is it correct what only two packages into my system suitable for dependences hell, and why packet manager do not was known about this situation?
I don't know. Its why Slackware doesn't do automatic dependency resolution
Last edited by RadicalDreamer; 10-28-2018 at 12:22 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.