[Interest] Issues building Qt 5.4.0 on CentOS 5.
Thiago Macieira
thiago.macieira at intel.com
Wed Feb 11 07:47:26 CET 2015
On Tuesday 10 February 2015 22:34:20 Simon Matthews wrote:
> ../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:51: error: expected ‘=’,
> ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
The one thing "before 'static'" is _X_INLINE.
_X_INLINE is supposed to come from X11/Xfuncproto.h. Can you verify that yours
defines _X_INLINE?
/* C99 keyword "inline" or equivalent extensions in pre-C99 compilers */
/* requires xproto >= 7.0.9
(introduced in 7.0.8 but didn't support all compilers until 7.0.9) */
#if defined(inline) /* assume autoconf set it correctly */ || \
(defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L)) /* C99 */
|| \
(defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550))
# define _X_INLINE inline
#elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */
# define _X_INLINE __inline__
#else
# define _X_INLINE
#endif
Given the comment about versions (X11 R7.0.8), I'm guessing your X11 headers
are also too old and don't include this.
When is X.org 7.0.8 from? 2005 or 2006. That's current to Qt 4.1.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list