LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-27-2018, 03:58 PM   #1
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Rep: Reputation: Disabled
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

###############################################################################
 
Old 10-27-2018, 10:42 PM   #2
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
There is slackbuild for this, has you tried that? Or are you building from source?
 
Old 10-27-2018, 11:01 PM   #3
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Do you have openimageio installed? If so try removing it and then building opencolorio.
 
Old 10-28-2018, 09:53 AM   #4
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by glorsplitz View Post
There is slackbuild for this, has you tried that? Or are you building from source?
I was execute this:

Quote:
sudo slpkg -s sbo opencolorio
 
Old 10-28-2018, 09:57 AM   #5
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RadicalDreamer View Post
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
+==============================================================================
 
Old 10-28-2018, 10:00 AM   #6
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by glorsplitz View Post
There is slackbuild for this, has you tried that? Or are you building from source?
This:

Quote:
sudo slpkg -s sbo opencolorio
 
Old 10-28-2018, 10:19 AM   #7
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
I suggest uninstall both of them if they are installed and grab the source and slackbuild for opencolorio and try that:
https://slackbuilds.org/repository/1...s/opencolorio/

Its reading the installed files from openimageio and that is making it not build as far as I can tell.

Last edited by RadicalDreamer; 10-28-2018 at 10:29 AM.
 
Old 10-28-2018, 11:04 AM   #8
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RadicalDreamer View Post
I suggest uninstall both of them if they are installed and grab the source and slackbuild for opencolorio and try that:
https://slackbuilds.org/repository/1...s/opencolorio/

Its reading the installed files from openimageio and that is making it not build as far as I can tell.
Good! It is was done with slpkg successful!
Why this difference? This is number versions is exactly same..
 
1 members found this post helpful.
Old 10-28-2018, 11:39 AM   #9
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Quote:
Originally Posted by poemsbrightly View Post
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.
 
Old 10-28-2018, 11:44 AM   #10
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RadicalDreamer View Post
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?
 
Old 10-28-2018, 11:58 AM   #11
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Quote:
Originally Posted by poemsbrightly View Post
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.
 
Old 10-28-2018, 12:11 PM   #12
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
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?
 
Old 10-28-2018, 12:20 PM   #13
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Quote:
Originally Posted by poemsbrightly View Post
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.
 
Old 10-28-2018, 12:23 PM   #14
poemsbrightly
LQ Newbie
 
Registered: Oct 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RadicalDreamer View Post
I don't know. Its why Slackware doesn't do automatic dependency resolution
Is it may be bug into slpkg (not part Slackware) than? It is must resolve this..
 
Old 10-28-2018, 12:45 PM   #15
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Quote:
Originally Posted by poemsbrightly View Post
Is it may be bug into slpkg (not part Slackware) than? It is must resolve this..
No its not a bug in slpkg. Circular dependency resolution isn't a feature it provides. I'm not sure if any package manager does.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
errors when building MPlayer please help smeezekitty Programming 3 10-12-2009 02:36 PM
Errors when building an RPM custangro Linux - Enterprise 7 07-10-2009 10:42 AM
errors building kernel 2.6.29-1 in slackware-current about not defined BITS_PER_LONG leptom Slackware 6 04-11-2009 07:32 PM
errors while building glibc-2.7 oussama Linux - Software 13 07-31-2008 05:39 PM
Errors While building OpenOffice2.x narutovu Fedora 1 04-05-2006 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration