For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Ubuntu Build OCCT 7.2 Release Error

liuhuiwei's picture

Hello,everyone,I Build OCCT Release 7.20 on Ubuntu 12.10,gcc version 7.2,glibc 2.26,but failed.In File Standard_CLocaleSentry.hxx,line 40,../../../inc/Standard_CLocaleSentry.hxx:40:12: fatal error: xlocale.h: not exist such file or directory,

#if defined(HAVE_XLOCALE_H) && !(defined(__GLIBC__) && (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 24))
  // xlocale.h is actually a non-standard header file; glibc 2.26 has removed it altogether (all definition comes from locale.h)
  #include <xlocale.h>
#endif

​That means GLIC version < =2.24,to include file xlocale.h,but my glibc version is 2.26.I try to print GLIBC_MINOR,that is 26,so i modify like this

#if defined(HAVE_XLOCALE_H)
  // xlocale.h is actually a non-standard header file; glibc 2.26 has removed it altogether (all definition comes from locale.h)
  #ifndef __GLIBC__
  #include <xlocale.h>
  #else
  #if __GLIBC__ == 2&&__GLIBC_MINOR__ <= 24
    #include <xlocale.h>
  #endif
  #endif
#endif

​it works.

So it is a bug or my configure is wrong?

thanks

Andrey BETENEV's picture

This is a known issue for OCCT 7.2.0 (#28971), fixed in current master.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.