Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux build fails. #190

Open
codecnotsupported opened this issue Aug 21, 2018 · 3 comments
Open

Linux build fails. #190

codecnotsupported opened this issue Aug 21, 2018 · 3 comments

Comments

@codecnotsupported
Copy link

codecnotsupported commented Aug 21, 2018

[ 79%] Building CXX object BaikalStandalone/CMakeFiles/BaikalStandalone.dir/Application/application.cpp.o
In file included from /usr/include/GL/glx.h:30:0,
                 from /home/User/Documents/Programming/Libaries/RadeonProRender-Baikal/BaikalStandalone/Application/application.cpp:37:
/usr/include/OpenImageIO/simd.h:374:24: error: expected unqualified-id before numeric constant
     static const bool4 False ();
                        ^
/usr/include/OpenImageIO/simd.h:377:24: error: expected unqualified-id before numeric constant
     static const bool4 True ();
                        ^
/usr/include/OpenImageIO/simd.h:504:24: error: expected unqualified-id before numeric constant
     static const bool8 False ();
                        ^
/usr/include/OpenImageIO/simd.h:507:24: error: expected unqualified-id before numeric constant
     static const bool8 True ();
                        ^
/usr/include/OpenImageIO/simd.h:2008:37: error: expected unqualified-id before numeric constant
 OIIO_FORCEINLINE const bool4 bool4::False () {
                                     ^
/usr/include/OpenImageIO/simd.h:2016:37: error: expected unqualified-id before numeric constant
 OIIO_FORCEINLINE const bool4 bool4::True () {
                                     ^
/usr/include/OpenImageIO/simd.h: In function ‘OpenImageIO::v1_7::simd::bool4 OpenImageIO::v1_7::simd::operator!(const OpenImageIO::v1_7::simd::bool4&)’:
/usr/include/OpenImageIO/simd.h:2044:41: error: expected unqualified-id before numeric constant
     return _mm_xor_ps (a.simd(), bool4::True());
                                         ^
/usr/include/OpenImageIO/simd.h: In function ‘OpenImageIO::v1_7::simd::bool4 OpenImageIO::v1_7::simd::operator~(const OpenImageIO::v1_7::simd::bool4&)’:
/usr/include/OpenImageIO/simd.h:2090:41: error: expected unqualified-id before numeric constant
     return _mm_xor_ps (a.simd(), bool4::True());
                                         ^
/usr/include/OpenImageIO/simd.h: At global scope:
/usr/include/OpenImageIO/simd.h:2313:37: error: expected unqualified-id before numeric constant
 OIIO_FORCEINLINE const bool8 bool8::False () {
                                     ^
/usr/include/OpenImageIO/simd.h:2322:37: error: expected unqualified-id before numeric constant
 OIIO_FORCEINLINE const bool8 bool8::True () {
                                     ^
BaikalStandalone/CMakeFiles/BaikalStandalone.dir/build.make:62: recipe for target 'BaikalStandalone/CMakeFiles/BaikalStandalone.dir/Application/application.cpp.o' failed
make[2]: *** [BaikalStandalone/CMakeFiles/BaikalStandalone.dir/Application/application.cpp.o] Error 1
CMakeFiles/Makefile2:598: recipe for target 'BaikalStandalone/CMakeFiles/BaikalStandalone.dir/all' failed
make[1]: *** [BaikalStandalone/CMakeFiles/BaikalStandalone.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Ubuntu 18.04.1 LTS 64-bit

@harokyang
Copy link

move #include <OpenImageIO/imageio.h> to the top

@codecnotsupported
Copy link
Author

That, fixed it.

@mbmattos1113
Copy link

I have the same problem. Where am i supposed to write #include <OpenImageIO/imageio.h> ? Which file?

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

No branches or pull requests

3 participants