Re: [Interest] Qt5.15 from source on centOS 7

2022-06-17 Thread Simon Matthews
Why not use the gcc in devtoolset-4 or later from the Software Collections 
repository:
https://wiki.centos.org/AdditionalResources/Repositories/SCL

Simon

From: Interest  on behalf of Alexander Carôt 

Sent: Friday, June 17, 2022 8:22 AM
To: Thiago Macieira 
Cc: interest@qt-project.org 
Subject: Re: [Interest] Qt5.15 from source on centOS 7

>> make install

That's what I did and why it recognized gcc but for some reason it does not 
find libstdc++.co.6 – strange ... where should it be located at ? Maybe the lib 
installation failed – still any hint appreciated.

Best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Freitag, 17. Juni 2022 um 16:25 Uhr
> Von: "Thiago Macieira" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> On Friday, 17 June 2022 03:33:28 PDT Alexander Carôt wrote:
> > What apart from doing "make install" within gcc-7.3.0 should I do in order
> > to get a working libstdc++.so.6 ?
>
> make install
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Cloud Software Architect - Intel DCAI Cloud Engineering
>
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
Blue Pearl Software, Inc. will collect and process information about you that 
may be subject to data protection laws. For more information about how we use 
and disclose your personal information, how we protect your information, our 
legal basis to use your information, your rights and who you can contact, 
please refer to the relevant sections of our Privacy note at 
www.bluepearlsoftware.com/privacypolicy.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Rebuild QPA plugins

2019-11-12 Thread Simon Matthews
On 11/12/19 1:15 PM, Benjamin TERRIER wrote:
Hi,

I am trying to rebuild libqxcb.so.
So for I am able to build the libqxcb.so (and qtbase) from source. It works and 
I can use this build to compile and run widgets applications.

What I'd like to do is to be able to take the libqxcb.so from this build and 
use it with the Qt official release package (i.e. replacing the libqxcb.so that 
comes with the official release by my version).

I was able on a previous project to do something similar on Windows with the 
sqlite plugin and it was working fine.

The issue I am facing here is that the official Qt release refuses to load my 
libqxcb.so, I guess it is because of incompatibility of GLIBC (or similar): Qt 
official releases are built with an "old" toolchain on a RHEL 7 system, while I 
am using the latest Ubuntu version and a recent toolchain.

Am I getting this right or am I missing something?

Does anyone has a tip on how to build a compatible version of libqxcb.so?
Without using RHEL, of course, I do not have a license.

You don't need RHEL, just use CentOS.

Have you tried setting the environment variable:

export QT_DEBUG_PLUGINS=1

This might give you more information on the problem.

You might have issues with the RUNPATH in the file?

What does

ldd -r 

report?

Simon

Blue Pearl Software, Inc. will collect and process information about you that 
may be subject to data protection laws. For more information about how we use 
and disclose your personal information, how we protect your information, our 
legal basis to use your information, your rights and who you can contact, 
please refer to the relevant sections of our Privacy note at 
www.bluepearlsoftware.com/privacypolicy.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] New error building Qt 5.13 on CentOS 6

2019-10-30 Thread Simon Matthews
On 10/30/19 4:38 PM, Thiago Macieira wrote:
> On Wednesday, 30 October 2019 16:32:08 PDT Simon Matthews wrote:
>> Project ERROR: Unknown module(s) in QT: xkbcommon_support-private
> Make sure you have xkbcommon >= 0.5.0 development files installed when you
> configure qtbase.
>
This is what I have:

$ rpm -qa | grep xkbcommon
libxkbcommon0-0.8.3-63.1.x86_64
libxkbcommon-x11-devel-0.8.3-63.1.x86_64
libxkbcommon-x11-0-0.8.3-63.1.x86_64
libxkbcommon-devel-0.8.3-63.1.x86_64

Simon

Blue Pearl Software, Inc. will collect and process information about you that 
may be subject to data protection laws. For more information about how we use 
and disclose your personal information, how we protect your information, our 
legal basis to use your information, your rights and who you can contact, 
please refer to the relevant sections of our Privacy note at 
www.bluepearlsoftware.com/privacypolicy.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] New error building Qt 5.13 on CentOS 6

2019-10-30 Thread Simon Matthews
I have been working on issues relating to qtwebengine, but when I
started from scratch again, I got this new error message. Does anyone
have any idea what's going on:

ar cqs ../../../../../lib/libxcb-static.a .obj/xfixes.o .obj/randr.o
.obj/shm.o .obj/sync.o .obj/render.o .obj/shape.o .obj/xkb.o
.obj/xinerama.o .obj/xinput.o .obj/xcb_aux.o .obj/atoms.o .obj/event.o
.obj/xcb_image.o .obj/keysyms.o .obj/util.o .obj/icccm.o
make[6]: Leaving directory
'/home/simon/rpms/sources/qt-build/qtbase/src/plugins/platforms/xcb/xcb-static'
( test -e Makefile.xcb_qpa_lib ||
/home/simon/rpms/sources/qt-build/qtbase/bin/qmake -o
Makefile.xcb_qpa_lib
/home/simon/rpms/sources/qt-everywhere-src-5.13.1/qtbase/src/plugins/platforms/xcb/xcb_qpa_lib.pro
) && make -f Makefile.xcb_qpa_lib
Project ERROR: Unknown module(s) in QT: xkbcommon_support-private
make[5]: *** [Makefile:90: sub-xcb_qpa_lib-pro-make_first-ordered] Error 3
make[5]: Leaving directory
'/home/simon/rpms/sources/qt-build/qtbase/src/plugins/platforms/xcb'
make[4]: *** [Makefile:103: sub-xcb-make_first] Error 2
make[4]: Leaving directory
'/home/simon/rpms/sources/qt-build/qtbase/src/plugins/platforms'
make[3]: *** [Makefile:105: sub-platforms-make_first] Error 2
make[3]: Leaving directory
'/home/simon/rpms/sources/qt-build/qtbase/src/plugins'
make[2]: *** [Makefile:777: sub-plugins-make_first] Error 2
make[2]: Leaving directory '/home/simon/rpms/sources/qt-build/qtbase/src'
make[1]: *** [Makefile:51: sub-src-make_first] Error 2
make[1]: Leaving directory '/home/simon/rpms/sources/qt-build/qtbase'
make: *** [Makefile:81: module-qtbase-make_first] Error 2


Configure command:

/home/simon/rpms/sources/qt-everywhere-src-5.13.1/qtbase/configure
-top-level -v -R
\\$$ORIGIN/lib:\\$$ORIGIN:\\$$ORIGIN/../lib:\\$$ORIGIN/../../lib
-opensource -qt-libpng -qt-zlib -qt-libjpeg -nomake examples -sql-sqlite
-confirm-license -prefix /opt/BP_test -widgets -skip activeqt -skip
androidextras -skip connectivity -skip macextras -skip serialport -icu
-fontconfig -no-reduce-relocations -qt-xcb -system-proxies
-no-pulseaudio -no-alsa -no-mtdev -dbus -qt-pcre -no-libudev -no-openssl
-no-xcb-xinput -webengine-embedded-build -no-webengine-alsa
-webengine-printing-and-pdf -webengine-pepper-plugins
-no-webengine-pulseaudio -no-webengine-alsa
-no-webengine-printing-and-pdf -no-webengine-pepper-plugins -no-evdev
WEBENGINE_FREETYPE_INCDIR=/opt/BP/include/
QMAKE_CXXFLAGS=-I/opt/BP/include/freetype2 -I/opt/BP/include/glib-2.0
QMAKE_LIBS_FREETYPE=/opt/BP/lib/libfreetype.so

I am using devtoolset-8:
gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)

and python 2.7:

$ python -V
Python 2.7.16

Simon
Blue Pearl Software, Inc. will collect and process information about you that 
may be subject to data protection laws. For more information about how we use 
and disclose your personal information, how we protect your information, our 
legal basis to use your information, your rights and who you can contact, 
please refer to the relevant sections of our Privacy note at 
www.bluepearlsoftware.com/privacypolicy.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Building QTWebEngine

2019-10-10 Thread Simon Matthews
On 10/9/19 5:54 PM, Thiago Macieira wrote:
> On Wednesday, 9 October 2019 16:07:46 PDT Simon Matthews wrote:
>> [simon@UserBuild qtwebengine]$ make
>> make: Nothing to be done for 'first'.
> That indicates it did not configure itself to build. I ran into this issue
> today: one of my colleagues is workng to remove Python2 from the distribution
> and then he realised that the package for qtwebengine was successfully
> compiled, but ended up empty.
>
> There's a dependency missing. Take a look at the config.summary and possibly
> config.log files to see what it was looking for and missed. Search for "will
> not be built".
>
> If you configure qtwebengine alone you'll find out more easily.
>
> I've found the following error rmessages in the source, so it may help guide
> you on what you require:
>
> QtWebEngine requires QtGui.
> Submodule qtwebengine-chromium does not exist. Run 'git submodule update --
> init'.
> QtWebEngine cannot be built in a path that contains whitespace characters.
> pkg-config is required
> Required gperf could not be found.
> Required bison could not be found.
> Required flex could not be found.
> A suitable version of python2 could not be found.
> A suitable version >= 2.27 of libc could not be found.
> khronos development headers appear to be missing (mesa/libegl1-mesa-dev)
> A suitable version of $$package could not be found. [nss dbus fontconfig]
> Could not find all necessary libraries for qpa-xcb support
>
> My money is on glibc: 2.27 is from 2018. CentOS 6 comes with 2.12.
>
Below is the fragment of the transcript of the configuration for
qtwebengine. I can probably fix most of the issues,  but the glibc
version issue isn't something that can be worked around.

Is it possible to use an older version of Chromium that will work with
Glibc 2.12 (that's what is installed in CentOS 6)?

Also, how do I configure qtwebengine on its own?

Checking for libclang...
test config.qttools_qdoc.tests.libclang FAILED
Checking for embedded...
test config.qtwebengine_core.tests.webengine-embedded-build FAILED
Checking for bison...
Found bison from path: /usr/bin/bison
test config.qtwebengine_core.tests.webengine-bison succeeded
Checking for GCC 6 or newer...
test config.qtwebengine_core.tests.webengine-extensions-gcc-version
succeeded
Checking for flex...
Found flex from path: /usr/bin/flex
test config.qtwebengine_core.tests.webengine-flex succeeded
Checking for gperf...
Found gperf from path: /usr/bin/gperf
test config.qtwebengine_core.tests.webengine-gperf succeeded
Checking for host pkg-config...
Found host pkg-config: /usr/bin/pkg-config
test config.qtwebengine_core.tests.webengine-host-pkg-config gave result
/usr/bin/pkg-config
Checking for linker supports -z noexecstack...
+ cd /home/simon/rpms/sources/qt-everywhere-src-5.13.1/config.tests &&
g++ -pipe -Wl,-z,noexecstack -o conftest-out conftest.cpp
test config.qtwebengine_core.tests.webengine-noexecstack succeeded
Checking for x11...
Trying source 0 (type pkgConfig) of library webengine-x11 ...
+ /usr/bin/pkg-config --exists --silence-errors x11
+ /usr/bin/pkg-config --modversion x11
 > 1.6.4
+ /usr/bin/pkg-config --libs-only-L x11
 >
+ /usr/bin/pkg-config --libs-only-l x11
 > -lX11
+ /usr/bin/pkg-config --cflags x11
 >
  => source accepted.
test config.qtwebengine_core.libraries.webengine-x11 succeeded
Checking for libdrm...
Trying source 0 (type pkgConfig) of library webengine-libdrm ...
+ /usr/bin/pkg-config --exists --silence-errors libdrm
+ /usr/bin/pkg-config --modversion libdrm
 > 2.4.65
+ /usr/bin/pkg-config --libs-only-L libdrm
 >
+ /usr/bin/pkg-config --libs-only-l libdrm
 > -ldrm
+ /usr/bin/pkg-config --cflags libdrm
 > -I/usr/include/libdrm
  => source accepted.
test config.qtwebengine_core.libraries.webengine-libdrm succeeded
Checking for xcomposite...
Trying source 0 (type pkgConfig) of library webengine-xcomposite ...
+ /usr/bin/pkg-config --exists --silence-errors xcomposite
+ /usr/bin/pkg-config --modversion xcomposite
 > 0.4.3
+ /usr/bin/pkg-config --libs-only-L xcomposite
 >
+ /usr/bin/pkg-config --libs-only-l xcomposite
 > -lXcomposite
+ /usr/bin/pkg-config --cflags xcomposite
 >
  => source accepted.
test config.qtwebengine_core.libraries.webengine-xcomposite succeeded
Checking for xcursor...
Trying source 0 (type pkgConfig) of library webengine-xcursor ...
+ /usr/bin/pkg-config --exists --silence-errors xcursor
+ /usr/bin/pkg-config --modversion xcursor
 > 1.1.14
+ /usr/bin/pkg-config --libs-only-L xcursor
 >
+ /usr/bin/pkg-config --libs-only-l xcursor
 > -lXcursor
+ /usr/bin/pkg-config --cflags xcursor
 >
  => source accepted.
test config.qtwebengine_core.libraries.webengine-xcursor succeeded
Checking for xi...
Trying source 0 (type pkgConfig) of library webengine-xi ...
+ /usr/bin/pkg-config --exists --silence-errors xi
+ /usr/

Re: [Interest] Building QTWebEngine

2019-10-09 Thread Simon Matthews
On 10/9/19 3:52 PM, Thiago Macieira wrote:
> On Wednesday, 9 October 2019 15:18:33 PDT Simon Matthews wrote:
>> However, it appears that files such as "Qt5WebEngineConfig.cmake" are
>> not included in my build.
>>
>> Is it necessary to build QtWebEngine as a separate build?
> No.
>
> Are you sure the build completed without errors? To be sure, go into
> qtwebengine and type "make".
>
$ cd qt-everywhere-src-5.13.1/qtwebengine/
/home/simon/rpms/sources/qt-everywhere-src-5.13.1/qtwebengine
[simon@UserBuild qtwebengine]$ make
make: Nothing to be done for 'first'.

Simon

Blue Pearl Software, Inc. will collect and process information about you that 
may be subject to data protection laws. For more information about how we use 
and disclose your personal information, how we protect your information, our 
legal basis to use your information, your rights and who you can contact, 
please refer to the relevant sections of our Privacy note at 
www.bluepearlsoftware.com/privacypolicy.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Building QTWebEngine

2019-10-09 Thread Simon Matthews
On 10/8/19 11:46 PM, Thiago Macieira wrote:
> On Tuesday, 8 October 2019 14:16:28 PDT Simon Matthews wrote:
>> I am trying to build Qt 5.13.1 on CentOS6.
>
> You're missing xkbcommon. Please install 0.5.0 or later.

I was able to find appropriate packages for xkbcommon and build Qt 5.13.1.

I need to have the full QtWebEngine included in my build. I see an
option of:

  -webengine-embedded-build

which resulted in:

Qt WebEngineCore:
   Qt WebEngine Widgets ... yes
   Qt WebEngine Qml ... yes
   Embedded build . yes
   

However, it appears that files such as "Qt5WebEngineConfig.cmake" are
not included in my build.

Is it necessary to build QtWebEngine as a separate build?

Simon






Blue Pearl Software, Inc. will collect and process information about you that 
may be subject to data protection laws. For more information about how we use 
and disclose your personal information, how we protect your information, our 
legal basis to use your information, your rights and who you can contact, 
please refer to the relevant sections of our Privacy note at 
www.bluepearlsoftware.com/privacypolicy.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Building 5.13.1 on CentOS6.

2019-10-08 Thread Simon Matthews
I am trying to build Qt 5.13.1 on CentOS6. I have run into an error that
others have reported, but the reported solutions don't seem to work.

I am using devtoolset-8, which brings in gcc version 8.3.1

The error is:

ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread
&& features.xkbcommon && libs.xcb' failed.

I have the related xcb packages installed:

# sudo yum install libxcb-devel xcb-util xcb-util-devel
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink |  17 kB 00:00
  * base: mirror.sjc02.svwh.net
  * centos-sclo-sclo: sjc.edge.kernel.org
  * epel: mirror.sjc02.svwh.net
  * extras: mirror.keystealth.org
  * updates: mirror.sjc02.svwh.net
base | 3.7 kB 00:00
centos-sclo-rh | 2.9 kB 00:00
centos-sclo-sclo | 2.9 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Package libxcb-devel-1.12-4.el6.x86_64 already installed and latest version
Package xcb-util-0.4.0-2.2.el6.x86_64 already installed and latest version
Package xcb-util-devel-0.4.0-2.2.el6.x86_64 already installed and latest
version

I can't find a package that installs xkbcommon in the standard repositories.

My configure command:

./configure -v  -R
'\\$$ORIGIN/lib:\\$$ORIGIN:\\$$ORIGIN/../lib:\\$$ORIGIN/../../lib'
-opensource -qt-libpng -qt-zlib -qt-libjpeg  -nomake examples
-sql-sqlite -sqlite -confirm-license -prefix
/usr/lib/Qt/Qt-5.13.1-x86_64 -widgets -skip activeqt -skip androidextras
-skip connectivity  -skip macextras  -skip serialport -icu -fontconfig
-no-reduce-relocations -qt-xcb -system-proxies -no-pulseaudio
-no-alsa   -no-mtdev   -dbus -qt-pcre -no-libudev -no-openssl
-no-xcb-xinput   -rpath

which results in the following summary:

Configure summary:

Build type: linux-g++ (x86_64, CPU features: mmx sse sse2)
Compiler: gcc 8.3.1
Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f
avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi
avx512vl compile_examples enable_new_dtags f16c largefile
precompile_header rdrnd shani x86SimdAlways shared rpath release c++11
c++14 c++1z concurrent dbus reduce_exports stl
Build options:
   Mode ... release
   Optimize release build for size  no
   Building shared libraries .. yes
   Using C standard ... C11
   Using C++ standard . C++17
   Using ccache ... no
   Using new DTAGS  yes
   Using precompiled headers .. yes
   Using LTCG . no
   Target compiler supports:
 SSE .. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
 AVX .. AVX AVX2
 AVX512 ... F ER CD PF DQ BW VL IFMA VBMI
 Other x86  AES F16C RDRAND SHA
 Intrinsics without -mXXX option .. yes
   Build parts  libs tools
Qt modules and options:
   Qt Concurrent .. yes
   Qt D-Bus ... yes
   Qt D-Bus directly linked to libdbus  yes
   Qt Gui . yes
   Qt Network . yes
   Qt Sql . yes
   Qt Testlib . yes
   Qt Widgets . yes
   Qt Xml . yes
Support enabled for:
   Using pkg-config ... yes
   udev ... no
   Using system zlib .. no
   Zstandard support .. no
Qt Core:
   DoubleConversion ... yes
 Using system DoubleConversion  no
   GLib ... yes
   iconv .. no
   ICU  yes
   Built-in copy of the MIME database . yes
   Tracing backend  
   Logging backends:
 journald . no
 syslog ... no
 slog2  no
   Using system PCRE2 . no
Qt Network:
   getifaddrs() ... yes
   IPv6 ifname  yes
   libproxy ... no
   Linux AF_NETLINK ... no
   OpenSSL  no
 Qt directly linked to OpenSSL  no
   OpenSSL 1.1  no
   DTLS ... no
   OCSP-stapling .. no
   SCTP ... no
   Use system proxies . yes
Qt Gui:
   Accessibility .. yes
   FreeType ... yes
 Using system FreeType  yes
   HarfBuzz ... yes
 Using system HarfBuzz 

Re: [Interest] Building Qt 5.5.1 on CentOS 5

2016-03-13 Thread Simon Matthews
This appears to work. I believe that I have a successful build on Qt 5.5.1 on 
CentOS5. 

Simon



From: Interest on behalf of Thiago Macieira
Sent: Saturday, March 12, 2016 5:00 PM
To: interest@qt-project.org
Subject: Re: [Interest] Building Qt 5.5.1 on CentOS 5

On sábado, 12 de março de 2016 21:57:00 PST Simon Matthews wrote:
> How practical would it be to remove the signalfd code from 5.5.1?

It might be as simple as backporting the patch. YMMV.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Building Qt 5.5.1 on CentOS 5

2016-03-12 Thread Simon Matthews
How practical would it be to remove the signalfd code from 5.5.1?

Simon



From: Interest on behalf of Thiago Macieira
Sent: Friday, March 11, 2016 5:08 PM
To: interest@qt-project.org
Subject: Re: [Interest] Building Qt 5.5.1 on CentOS 5

On sexta-feira, 11 de março de 2016 16:32:13 PST Simon Matthews wrote:
> I am trying to build Qt 5.5.1 on CentOS 5. I suspect that we don't need
> linuxfb, but there doesn't seem to be an easy way to skip this.

Upgrade to 5.6, the signalfd code has been removed.

Also, fix your libc. The source file compiled, which means that sys/signalfd.h
exists, but the signalfd function is missing. That means your glibc
installation is broken (headers don't match library).

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Building Qt 5.5.1 on CentOS 5

2016-03-11 Thread Simon Matthews
I am trying to build Qt 5.5.1 on CentOS 5. I suspect that we don't need 
linuxfb, but there doesn't seem to be an easy way to skip this.


However, I get the following error:
/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/xcb/gl_integrations
gmake[6]: Entering directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/xcb/gl_integrations'

gmake[6]: Nothing to be done for `first'.
gmake[6]: Leaving directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/xcb/gl_integrations'
gmake[5]: Leaving directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/xcb'
cd linuxfb/ && ( test -e Makefile || 
/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/bin/qmake 
/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/linuxfb/linuxfb.pro 
-o Makefile ) && gmake -f Makefile

/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/linuxfb
gmake[5]: Entering directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/linuxfb'

rm -f libqlinuxfb.so
g++ -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags 
-Wl,-rpath,/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/linuxfb/‘�� 
-Wl,-rpath,/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/linuxfb/‘�� 
-shared -o libqlinuxfb.so .obj/main.o .obj/qlinuxfbintegration.o 
.obj/qlinuxfbscreen.o .obj/moc_qlinuxfbscreen.o 
-L/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/lib 
-lQt5PlatformSupport -lfontconfig -lfreetype -lQt5DBus -pthread -L/lib64 
-lgthread-2.0 -lglib-2.0 -lQt5Gui -lQt5Core -lGL -lpthread
/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/lib/libQt5PlatformSupport.a(qfbvthandler.o): 
In function `QFbVtHandler::QFbVtHandler(QObject*)':

qfbvthandler.cpp:(.text+0x1c1): undefined reference to `signalfd'
collect2: error: ld returned 1 exit status
gmake[5]: *** [../../../../plugins/platforms/libqlinuxfb.so] Error 1
gmake[5]: Leaving directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms/linuxfb'

gmake[4]: *** [sub-linuxfb-make_first] Error 2
gmake[4]: Leaving directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins/platforms'

gmake[3]: *** [sub-platforms-make_first] Error 2
gmake[3]: Leaving directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src/plugins'

gmake[2]: *** [sub-plugins-make_first] Error 2
gmake[2]: Leaving directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase/src'

gmake[1]: *** [sub-src-make_first] Error 2
gmake[1]: Leaving directory 
`/home/simon/rpms/build/qt-everywhere-opensource-src-5.5.1/qtbase'

gmake: *** [module-qtbase-make_first] Error 2


In order to get this far, I have done the following:
1. installed extra packages as described on this page:
http://kate-editor.org/2014/12/22/qt-5-4-on-red-hat-enterprise-5/

2. Copied /usr/include/sys/signalfd.h from a CentOS6 system to the same 
location on my CentOS5 build machine.


3. Made the following changes to the source:
sed -i 's/#define QTESTLIB_USE_PERF_EVENTS/#undef 
QTESTLIB_USE_PERF_EVENTS/g' qtbase/src/testlib/qbenchmark_p.h
sed -i 's/getbyte/getc/' 
qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb
sed -i 's/| O_CLOEXEC//' 
./qtwebkit/Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp


patch -p0 << EOF
--- qtbase/src/network/ssl/qsslsocket_openssl.cpp.orig 2016-03-11 
10:43:26.0 -0800
+++ qtbase/src/network/ssl/qsslsocket_openssl.cpp 2016-03-11 
10:43:46.0 -0800

@@ -1582,8 +1582,8 @@
 if (readBufferMaxSize)
plainSocket->setReadBufferSize(readBufferMaxSize);

-if (q_SSL_ctrl((ssl), SSL_CTRL_GET_SESSION_REUSED, 0, NULL))
-configuration.peerSessionShared = true;
+//if (q_SSL_ctrl((ssl), SSL_CTRL_GET_SESSION_REUSED, 0, NULL))
+//configuration.peerSessionShared = true;

 #ifdef QT_DECRYPT_SSL_TRAFFIC
 if (ssl->session && ssl->s3) {

EOF
patch -p0 << EOF
--- qtbase/src/network/ssl/qsslsocket_openssl.cpp.orig 2016-03-11 
11:15:35.0 -0800
+++ qtbase/src/network/ssl/qsslsocket_openssl.cpp 2016-03-11 
11:14:21.0 -0800

@@ -390,8 +390,8 @@
 if (!ace.isEmpty()
 && !QHostAddress().setAddress(tlsHostName)
 && !(configuration.sslOptions & 
QSsl::SslOptionDisableServerNameIndication)) {
-if (!q_SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_HOSTNAME, 
TLSEXT_NAMETYPE_host_name, ace.data()))
-qCWarning(lcSsl, "could not set 
SSL_CTRL_SET_TLSEXT_HOSTNAME, Server Name Indication disabled");
+//if (!q_SSL_ctrl(ssl, SSL_CTRL_SET_TLSEXT_HOSTNAME, 
TLSEXT_NAMETYPE_host_name, ace.data()))
+//qCWarning(lcSsl, "could not set 
SSL_CTRL_SET_TLSEXT_HOSTNAME, Server Name Indication 

[Interest] Building on Centos 6.x -- libxcb

2015-03-02 Thread Simon Matthews

I sucessfully built Qt 5.3.2 on CentOS 5 and 6, but it now looks like I need 
to tweak the builds somewhat.

I need to ensure that WebKit is built as part of my Qt5 build. Is there any 
way to tell at the configuration stage if WebKit will be built?

I built using the options -qt-xcb -opengl, but I saw some problems with the 
application built against my build of Qt5:

I built on CentOS 6.6. This platform has libxcb-1.9. However, an application 
built against this version of Qt would not run on a machine running CentOS 
6.4 -- apparently because it has libxcb-1.8. Is there any way round this 
other than building on a CentOS 6.0 machine?

Simon
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-15 Thread Simon Matthews



On Tue, 10 Feb 2015, Thiago Macieira wrote:


On Tuesday 10 February 2015 20:23:20 Simon Matthews wrote:
fontdatabases/fontconfig/qfontconfigdatabase.cpp:85: error: 
‘FC_WEIGHT_ULTRABLACK’ was not declared in this scope


Now your fontconfig is too old.

Qt doesn't carry a bundled copy of fontconfig, so either disable it (you don't 
want this) or upgrade the one you have in your system.


Thanks for your help.

I disabled fontconfig, switched to using the qt-xcb, but still not 
building. As a reminder, I am using gcc 4.4.7 (which seems to have 
resolved the problems with linux-headers). My current configuration 
options are:


./configure -v -opensource -qt-libpng -qt-zlib -qt-libjpeg  -nomake 
examples -qt-sql-sqlite -confirm-license -prefix 
/usr/lib/Qt/Qt-5.4.0-x86_64 -widgets -no-openssl -no-icu -no-openssl 
-no-dbus -no-fontconfig -qt-xcb


cd xcb-static/  ( test -e Makefile || 
/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/bin/qmake 
/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 
-o Makefile )  make -f Makefile

/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static
make[6]: Entering directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static'
/usr/bin/gcc44 -c -pipe -O2 -fPIC -w -fno-exceptions -Wall -W 
-DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE 
-D_LARGEFILE_SOURCE -I../../../../../mkspecs/linux-g++ -I. 
-I../../../../3rdparty/xcb/include -I../../../../3rdparty/xcb/include/xcb 
-I../../../../3rdparty/xcb/sysinclude -o .obj/xcb_image.o 
../../../../3rdparty/xcb/xcb-util-image/xcb_image.c
In file included from 
../../../../3rdparty/xcb/xcb-util-image/xcb_image.c:33:
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:51: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:72: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:97: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:114: error: expected 
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:132: error: expected 
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:155: error: expected 
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:174: error: expected 
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:199: error: expected 
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
In file included from 
../../../../3rdparty/xcb/xcb-util-image/xcb_image.c:36:
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:54: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:69: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:82: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:94: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:104: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:113: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:121: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:134: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:147: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:159: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’

make[6]: *** [.obj/xcb_image.o] Error 1
make[6]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static'

make[5]: *** [sub-xcb-static-make_first-ordered] Error 2
make[5]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb'

make[4]: *** [sub-xcb-make_first] Error 2
make[4]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms'

make[3]: *** [sub-platforms-make_first] Error 2
make[3]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins'

make[2]: *** [sub-plugins-make_first] Error 2
make[2]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src'

make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase'

make: *** [module-qtbase-make_first

Re: [Interest] Forcing version of python when building on CentOS6, also, versions for flex and bison

2015-02-14 Thread Simon Matthews


On Fri, 13 Feb 2015, Harri Pasanen wrote:

 On 13/02/2015 05:30, Simon Matthews wrote:

 In my quest to build Qt5 with WebKit on CentOS5, I have come across
 another problem. As stated, the build requires python 2.6 or later. The
 default version of Python on CentOS 5 is 2.4. There is a Python26 package
 available and I have installed this.


 I wonder what would the build require from python that is in python 2.6
 but not in python 2.4?

There were only a very few places where this was an issue. When building 
without ICU (and hence, without WebKit), the build was successful with 
Python 2.4

It would probably take only a couple of small patches to make the code 
compatible with python 2.4.

Simon
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-12 Thread Simon Matthews



On Thu, 12 Feb 2015, Simon Matthews wrote:




On Wed, 11 Feb 2015, Simon Matthews wrote:




 On Wed, 11 Feb 2015, Thiago Macieira wrote:

   On Wednesday 11 February 2015 19:17:02 Simon Matthews wrote:
OK, nm. By the way, am I correct in my belief that for Qt 5.4.0, that
Webkit depends on icu?
 
   Correct.


 Thanks for confirming that. I did not want to waste time chasing down an
 issue that wasn't relevent to my problem.

 Using the link and some slight modifications, I got Qt to build,
 apparently with ICU support, but, no Webkit. After installation, there are
 no files called
 /usr/lib/Qt/Qt-5.4.0-x86_64/lib/libQt5WebKit*

 It looks like I need to figure out how to get it to build with fontconfig
 and maybe other options that I have disabled (multimedia?)

 ./configure -R ‘\\\$$ORIGIN’ -D _X_INLINE=inline -D
 XK_dead_currency=0xfe6f -D XK_ISO_Level5_Lock=0xfe13 -D
 FC_WEIGHT_EXTRABLACK=215 -D FC_WEIGHT_ULTRABLACK=FC_WEIGHT_EXTRABLACK -v
 -opensource -qt-libpng -qt-zlib -qt-libjpeg  -nomake examples
 -qt-sql-sqlite -confirm-license -prefix /usr/lib/Qt/Qt-5.4.0-x86_64
 -widgets -no-openssl  -no-openssl -no-dbus -no-fontconfig -qt-xcb
 -no-opengl  -skip activeqt -skip androidextras -skip connectivity -skip
 enginio -skip location -skip macextras -skip multimedia -skip quick1 -skip
 sensors -skip serialport -skip wayland -skip webchannel -skip
 webkit-examples  -skip x11extras  -c++11 -icu


I have progressed a little further, but seem to have come to a block. As I 
wrote earlier, I need to build WebKit. According to the documentation, this 
requires:


bison
flex
gperf
Ruby [ruby-lang.org]
ICU [site.icu-project.org]

It also seems to require fontconfig.

Since the versions of icu and fontconfig were too old, I built my own from 
source, using fontconfig-2.8.0 and icu-4.2.1 (these versions are what are 
used on CentOS 6, where I already had a successful build of Qt5).


I am using the devtoolset-1.1 version of gcc (4.7.2).

My configure command is forcing fontconfig and icu support:
./configure -R ‘\\\$$ORIGIN’ -D _X_INLINE=inline -D XK_dead_currency=0xfe6f 
-D XK_ISO_Level5_Lock=0xfe13 -D FC_WEIGHT_EXTRABLACK=215 -D 
FC_WEIGHT_ULTRABLACK=FC_WEIGHT_EXTRABLACK -v -opensource -qt-libpng -qt-zlib 
-qt-libjpeg  -nomake examples -qt-sql-sqlite -confirm-license -prefix 
/usr/lib/Qt/Qt-5.4.0-x86_64 -widgets -no-openssl  -no-dbus -qt-xcb -no-opengl 
-skip activeqt -skip androidextras -skip connectivity -skip enginio -skip 
location -skip macextras -skip multimedia -skip quick1 -skip sensors -skip 
serialport -skip wayland -skip webchannel -skip webkit-examples  -skip 
x11extras -c++11 -icu -fontconfig -I /usr/local/include/layout -I 
/usr/local/include/unicode -L /usr/local/lib -L /usr/local/lib/icu


This gets much further, but fails on Javascript:
Creating JIT stubs for jit/JITStubs.cpp
ruby 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/asm.rb 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm 
LLIntOffsetsExtractor generated/LLIntAssembly.h
offlineasm: Parsing 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm 
and LLIntOffsetsExtractor and creating assembly file 
generated/LLIntAssembly.h.
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:111:in 
`offsetsAndConfigurationIndex': undefined method `getbyte' for 
#File:LLIntOffsetsExtractor (closed) (NoMethodError)
   from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:110:in 
`loop'
   from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:110:in 
`offsetsAndConfigurationIndex'
   from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:108:in 
`open'
   from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:108:in 
`offsetsAndConfigurationIndex'
   from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/asm.rb:230

make[3]: *** [generated/LLIntAssembly.h] Error 1
make[3]: Leaving directory 
`/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore'

make[2]: *** [sub-DerivedSources-pri-make_first-ordered] Error 2
make[2]: Leaving directory 
`/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore'
make[1]: *** 
[sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory 
`/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit'

make: *** [module-qtwebkit-make_first] Error 2

Any suggestions?



Answering my own question here, it looks like an issue with the version of 
Ruby. 'getbyte' seems to have been added or changed in Ruby 1.8.7.


Simon

Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-12 Thread Simon Matthews



On Wed, 11 Feb 2015, Simon Matthews wrote:




On Wed, 11 Feb 2015, Thiago Macieira wrote:


 On Wednesday 11 February 2015 19:17:02 Simon Matthews wrote:
  OK, nm. By the way, am I correct in my belief that for Qt 5.4.0, that
  Webkit depends on icu?

 Correct.


Thanks for confirming that. I did not want to waste time chasing down an 
issue that wasn't relevent to my problem.


Using the link and some slight modifications, I got Qt to build, apparently 
with ICU support, but, no Webkit. After installation, there are no files 
called

/usr/lib/Qt/Qt-5.4.0-x86_64/lib/libQt5WebKit*

It looks like I need to figure out how to get it to build with fontconfig and 
maybe other options that I have disabled (multimedia?)


./configure -R ‘\\\$$ORIGIN’ -D _X_INLINE=inline -D XK_dead_currency=0xfe6f 
-D XK_ISO_Level5_Lock=0xfe13 -D FC_WEIGHT_EXTRABLACK=215 -D 
FC_WEIGHT_ULTRABLACK=FC_WEIGHT_EXTRABLACK -v -opensource -qt-libpng -qt-zlib 
-qt-libjpeg  -nomake examples -qt-sql-sqlite -confirm-license -prefix 
/usr/lib/Qt/Qt-5.4.0-x86_64 -widgets -no-openssl  -no-openssl -no-dbus 
-no-fontconfig -qt-xcb -no-opengl  -skip activeqt -skip androidextras -skip 
connectivity -skip enginio -skip location -skip macextras -skip multimedia 
-skip quick1 -skip sensors -skip serialport -skip wayland -skip webchannel 
-skip webkit-examples  -skip x11extras  -c++11 -icu


I have progressed a little further, but seem to have come to a block. As I 
wrote earlier, I need to build WebKit. According to the documentation, 
this requires:


bison
flex
gperf
Ruby [ruby-lang.org]
ICU [site.icu-project.org]

It also seems to require fontconfig.

Since the versions of icu and fontconfig were too old, I built my own from 
source, using fontconfig-2.8.0 and icu-4.2.1 (these versions are what are 
used on CentOS 6, where I already had a successful build of Qt5).


I am using the devtoolset-1.1 version of gcc (4.7.2).

My configure command is forcing fontconfig and icu support:
./configure -R ‘\\\$$ORIGIN’ -D _X_INLINE=inline -D 
XK_dead_currency=0xfe6f -D XK_ISO_Level5_Lock=0xfe13 -D 
FC_WEIGHT_EXTRABLACK=215 -D FC_WEIGHT_ULTRABLACK=FC_WEIGHT_EXTRABLACK -v 
-opensource -qt-libpng -qt-zlib -qt-libjpeg  -nomake examples 
-qt-sql-sqlite -confirm-license -prefix /usr/lib/Qt/Qt-5.4.0-x86_64 
-widgets -no-openssl  -no-dbus -qt-xcb -no-opengl  -skip activeqt -skip 
androidextras -skip connectivity -skip enginio -skip location -skip 
macextras -skip multimedia -skip quick1 -skip sensors -skip serialport 
-skip wayland -skip webchannel -skip webkit-examples  -skip x11extras 
-c++11 -icu -fontconfig -I /usr/local/include/layout -I 
/usr/local/include/unicode -L /usr/local/lib -L /usr/local/lib/icu


This gets much further, but fails on Javascript:
Creating JIT stubs for jit/JITStubs.cpp
ruby 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/asm.rb 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm 
LLIntOffsetsExtractor generated/LLIntAssembly.h
offlineasm: Parsing 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm 
and LLIntOffsetsExtractor and creating assembly file 
generated/LLIntAssembly.h.
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:111:in 
`offsetsAndConfigurationIndex': undefined method `getbyte' for 
#File:LLIntOffsetsExtractor (closed) (NoMethodError)
from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:110:in 
`loop'
from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:110:in 
`offsetsAndConfigurationIndex'
from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:108:in 
`open'
from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/offsets.rb:108:in 
`offsetsAndConfigurationIndex'
from 
/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore/offlineasm/asm.rb:230

make[3]: *** [generated/LLIntAssembly.h] Error 1
make[3]: Leaving directory 
`/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore'

make[2]: *** [sub-DerivedSources-pri-make_first-ordered] Error 2
make[2]: Leaving directory 
`/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit/Source/JavaScriptCore'
make[1]: *** 
[sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory 
`/tmp/QT5-gcc47/qt-everywhere-opensource-src-5.4.0/qtwebkit'

make: *** [module-qtwebkit-make_first] Error 2

Any suggestions?

Simon___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Forcing version of python when building on CentOS6, also, versions for flex and bison

2015-02-12 Thread Simon Matthews


In my quest to build Qt5 with WebKit on CentOS5, I have come across 
another problem. As stated, the build requires python 2.6 or later. The 
default version of Python on CentOS 5 is 2.4. There is a Python26 package 
available and I have installed this.

The python26 package installs the executable into /usr/bin/python26. How 
do I make the build process use this? I have tried aliasing: alias 
python=python26
however, the build still seems to use python 2.4 (/usr/bin/python). There 
doesn't seem to be a configuration option to set the python binary.

Also, what are the minimum versions of flex and bison? I think that the 
build will need a newer version of flex (am looking at some errors right 
now that imply this) and perhaps a newer version of bison.

I found that I need to enable opengl in order for the build of WebKit to 
be successful and now dealing with new issues.

Simon

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Issues building Qt 5.4.0 on CentOS 5.

2015-02-10 Thread Simon Matthews


On Tue, 10 Feb 2015, Thiago Macieira wrote:


 On Tuesday 10 February 2015 20:23:20 Simon Matthews wrote:
  fontdatabases/fontconfig/qfontconfigdatabase.cpp:85: error: 
  ‘FC_WEIGHT_ULTRABLACK’ was not declared in this scope


 Now your fontconfig is too old.

 Qt doesn't carry a bundled copy of fontconfig, so either disable it (you
 don't want this) or upgrade the one you have in your system.


Thanks for your help.

I disabled fontconfig, switched to using the qt-xcb, but still not building. As 
a reminder, I am using gcc 4.4.7 (which seems to have resolved the problems 
with linux-headers). My current configuration options are:


./configure -v -opensource -qt-libpng -qt-zlib -qt-libjpeg  -nomake examples 
-qt-sql-sqlite -confirm-license -prefix /usr/lib/Qt/Qt-5.4.0-x86_64 -widgets 
-no-openssl -no-icu -no-openssl -no-dbus -no-fontconfig -qt-xcb


cd xcb-static/  ( test -e Makefile || 
/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/bin/qmake 
/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static/xcb-static.pro 
-o Makefile )  make -f Makefile

/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static
make[6]: Entering directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static'
/usr/bin/gcc44 -c -pipe -O2 -fPIC -w -fno-exceptions -Wall -W -DQT_NO_MTDEV 
-DQT_NO_LIBUDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE 
-I../../../../../mkspecs/linux-g++ -I. -I../../../../3rdparty/xcb/include 
-I../../../../3rdparty/xcb/include/xcb -I../../../../3rdparty/xcb/sysinclude -o 
.obj/xcb_image.o ../../../../3rdparty/xcb/xcb-util-image/xcb_image.c

In file included from ../../../../3rdparty/xcb/xcb-util-image/xcb_image.c:33:
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:51: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:72: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:97: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:114: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:132: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:155: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:174: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_bitops.h:199: error: expected ‘=’, 
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘static’

In file included from ../../../../3rdparty/xcb/xcb-util-image/xcb_image.c:36:
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:54: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:69: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:82: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:94: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:104: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:113: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:121: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:134: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:147: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’
../../../../3rdparty/xcb/include/xcb/xcb_pixel.h:159: error: expected ‘=’, ‘,’, 
‘;’, ‘asm’ or ‘__attribute__’ before ‘static’

make[6]: *** [.obj/xcb_image.o] Error 1
make[6]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb/xcb-static'

make[5]: *** [sub-xcb-static-make_first-ordered] Error 2
make[5]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms/xcb'

make[4]: *** [sub-xcb-make_first] Error 2
make[4]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins/platforms'

make[3]: *** [sub-platforms-make_first] Error 2
make[3]: Leaving directory 
`/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src/plugins'

make[2]: *** [sub-plugins-make_first] Error 2
make[2]: Leaving directory `/tmp/qt-everywhere-opensource-src-5.4.0/qtbase/src'
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory `/tmp/qt-everywhere-opensource-src-5.4.0/qtbase'
make: *** [module-qtbase-make_first