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

2022-07-05 Thread Mike Rochefort

On 6/30/22 4:28 AM, Alexander Carôt wrote:

see below – I will give it another try at some point later, however, I 
eventually used a docker container which provides all the required libs and 
makes the project run smoothly. This looks like a smart and versatile solution 
– becoming a docker fan now ;-)


Containerized development is definitely a good idea if you can fit it 
into your workflow! Which image are you using to build with?


Taking a look through the aswf-docker project (used by the Academy 
Software Foundation for CI purposes in the VFX industry), it seems the 
way they get around the OpenSSL 1.1.x issue is by manually passing the 
header and library search paths to configure.


https://github.com/AcademySoftwareFoundation/aswf-docker/blob/master/scripts/base/build_qt.sh

They are also using the openssl11-devel package provided by EPEL.

Cheers,
Mike
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-30 Thread Alexander Carôt
see below – I will give it another try at some point later, however, I 
eventually used a docker container which provides all the required libs and 
makes the project run smoothly. This looks like a smart and versatile solution 
– becoming a docker fan now ;-)

Best

Alex


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


> Gesendet: Samstag, 25. Juni 2022 um 09:45 Uhr
> Von: "Alexander Carôt" 
> An: "Mike Rochefort" , "Chris Benesch" 
> , "Thiago Macieira" 
> Cc: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> Hej Mike, Thiago and Chris,
> 
> in fact the configure process does not recognize the new installed 1.1.1 
> version (see extract of config.log):
> 
> loaded result for library config.qtbase_network.libraries.openssl
> Trying source 0 (type openssl) of library openssl ...
> $OPENSSL_LIBS is not set.
>   => source produced no result.
> Trying source 1 (type inline) of library openssl ...
>   => source failed condition 'config.win32'.
> Trying source 2 (type inline) of library openssl ...
>   => source failed condition 'config.msvc'.
> Trying source 3 (type inline) of library openssl ...
>   => source failed condition 'config.android'.
> Trying source 4 (type inline) of library openssl ...
> + cd 
> /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl && 
> /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtbase/bin/qmake 
> "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared 
> warn_off console single_arch" 'QMAKE_USE += openssl' 'QMAKE_LIBS_OPENSSL = 
> /usr/lib64/libssl.so' 
> /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl
> + cd 
> /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl && 
> MAKEFLAGS= /opt/rh/devtoolset-10/root/usr/bin/gmake
> > g++ -c -pipe -O2 -w -fPIC  -I. 
> > -I/var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-g++
> >  -o main.o main.cpp
> > main.cpp:5:4: error: #error OpenSSL >= 1.1.1 is required
> > 5 | #  error OpenSSL >= 1.1.1 is required
> >   |^
> 
> 
> Regarding Mike's email below I double checked and saw that all the required 
> files are in place plus created the symbolic links in /usr/lib64/pkgconfig 
> plus deleted the old 1.0.x-devel package.
> 
> Looks like there is a tiny last step to walk but I still wonder how to make 
> it recognize / which variable to set etc.
> 
> Thanks
> 
> Alex
> 
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> 
> > Gesendet: Mittwoch, 22. Juni 2022 um 19:31 Uhr
> > Von: "Mike Rochefort" 
> > An: interest@qt-project.org
> > Betreff: Re: [Interest] Qt5.15 from source on centOS 7
> >
> > On 6/22/22 12:43 PM, Thiago Macieira wrote:
> > > See config.log and find out why "feature.ssl" failed.
> >
> > In addition to this, it's worth noting the OpenSSL availability on EL7.
> > Only OpenSSL 1.0 is shipped by Red Hat and the rebuild distributions for
> > development against (there is the compatibility openssl098e package, but
> > it's only for runtime use). OpenSSL 1.1 is provided via EPEL.
> >
> > packages:
> > openssl11
> > openssl11-libs
> > openssl11-devel
> >
> > development resources:
> > /usr/include/openssl11/*
> > /usr/lib64/openssl11/lib{ssl,crypto}.so
> > /usr/lib64/pkgconfig/{libssl,libcrypto,openssl}11.pc
> >
> > The build system is likely not seeing the "openssl11" content (double
> > check you have the openssl11-devel package installed) and may need to be
> > modified to find it properly rather than seeking "openssl". You could
> > also make sure you have openssl-devel removed and symlink the *11.pc
> > files to their counterparts and see if that helps pick things up.
> >
> > yum remove openssl-devel
> > cd /usr/lib64/pkgconfig
> > ln -s libcrypto11.pc libcrypto.pc
> > ln -s libssl11.pc libssl.pc
> > ln -s openssl11.pc openssl.pc
> >
> > Cheers,
> > Mike
> > ___
> > 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
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-25 Thread Thiago Macieira
On Saturday, 25 June 2022 00:45:34 PDT Alexander Carôt wrote:
> in fact the configure process does not recognize the new installed 1.1.1
> version (see extract of config.log):

You didn't install somewhere configure can find it. Pass OPENSSL_PATH to 
configure with the path where you installed it (guessing reading from sources, 
I haven't built Qt 5 in a year and I have *never* needed this option).

-- 
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


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

2022-06-25 Thread Alexander Carôt
Hej Mike, Thiago and Chris,

in fact the configure process does not recognize the new installed 1.1.1 
version (see extract of config.log):

loaded result for library config.qtbase_network.libraries.openssl
Trying source 0 (type openssl) of library openssl ...
$OPENSSL_LIBS is not set.
  => source produced no result.
Trying source 1 (type inline) of library openssl ...
  => source failed condition 'config.win32'.
Trying source 2 (type inline) of library openssl ...
  => source failed condition 'config.msvc'.
Trying source 3 (type inline) of library openssl ...
  => source failed condition 'config.android'.
Trying source 4 (type inline) of library openssl ...
+ cd /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl 
&& /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtbase/bin/qmake 
"CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared 
warn_off console single_arch" 'QMAKE_USE += openssl' 'QMAKE_LIBS_OPENSSL = 
/usr/lib64/libssl.so' 
/var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl
+ cd /var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/config.tests/openssl 
&& MAKEFLAGS= /opt/rh/devtoolset-10/root/usr/bin/gmake
> g++ -c -pipe -O2 -w -fPIC  -I. 
> -I/var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-g++
>  -o main.o main.cpp
> main.cpp:5:4: error: #error OpenSSL >= 1.1.1 is required
> 5 | #  error OpenSSL >= 1.1.1 is required
>   |^


Regarding Mike's email below I double checked and saw that all the required 
files are in place plus created the symbolic links in /usr/lib64/pkgconfig plus 
deleted the old 1.0.x-devel package.

Looks like there is a tiny last step to walk but I still wonder how to make it 
recognize / which variable to set etc.

Thanks

Alex


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


> Gesendet: Mittwoch, 22. Juni 2022 um 19:31 Uhr
> Von: "Mike Rochefort" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> On 6/22/22 12:43 PM, Thiago Macieira wrote:
> > See config.log and find out why "feature.ssl" failed.
>
> In addition to this, it's worth noting the OpenSSL availability on EL7.
> Only OpenSSL 1.0 is shipped by Red Hat and the rebuild distributions for
> development against (there is the compatibility openssl098e package, but
> it's only for runtime use). OpenSSL 1.1 is provided via EPEL.
>
> packages:
> openssl11
> openssl11-libs
> openssl11-devel
>
> development resources:
> /usr/include/openssl11/*
> /usr/lib64/openssl11/lib{ssl,crypto}.so
> /usr/lib64/pkgconfig/{libssl,libcrypto,openssl}11.pc
>
> The build system is likely not seeing the "openssl11" content (double
> check you have the openssl11-devel package installed) and may need to be
> modified to find it properly rather than seeking "openssl". You could
> also make sure you have openssl-devel removed and symlink the *11.pc
> files to their counterparts and see if that helps pick things up.
>
> yum remove openssl-devel
> cd /usr/lib64/pkgconfig
> ln -s libcrypto11.pc libcrypto.pc
> ln -s libssl11.pc libssl.pc
> ln -s openssl11.pc openssl.pc
>
> Cheers,
> Mike
> ___
> 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


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

2022-06-22 Thread Thiago Macieira
On Wednesday, 22 June 2022 10:38:00 PDT Chris Benesch wrote:
> My openssl shows 1.0.2k ona recently updated box.

OpenSSL 1.0.2 was EOL'ed on 2019-12-31, that's nearly 2.5 years ago. It is NOT 
receiving security updates and should not be used unless you've arranged to 
get extended-lifetime support on it from some vendor other than the regular 
maintainers (for example: Red Hat).

Qt dropped support for 1.0 in version 5.14.

-- 
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


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

2022-06-22 Thread Chris Benesch
My openssl shows 1.0.2k ona recently updated box.

Wherever 1.1 is installed use that lib/pkgconfig  path for PKG_CONFIG_DIR

On Wed, Jun 22, 2022 at 10:43 AM Thiago Macieira 
wrote:

> On Wednesday, 22 June 2022 06:09:30 PDT Alexander Carôt wrote:
> > Any more hints towards final success :-) ?
>
> See config.log and find out why "feature.ssl" failed.
>
> --
> 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
>


-- 
Chris Benesch
BeneschTech, LLC
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-22 Thread Mike Rochefort

On 6/22/22 12:43 PM, Thiago Macieira wrote:

See config.log and find out why "feature.ssl" failed.


In addition to this, it's worth noting the OpenSSL availability on EL7. 
Only OpenSSL 1.0 is shipped by Red Hat and the rebuild distributions for 
development against (there is the compatibility openssl098e package, but 
it's only for runtime use). OpenSSL 1.1 is provided via EPEL.


packages:
openssl11
openssl11-libs
openssl11-devel

development resources:
/usr/include/openssl11/*
/usr/lib64/openssl11/lib{ssl,crypto}.so
/usr/lib64/pkgconfig/{libssl,libcrypto,openssl}11.pc

The build system is likely not seeing the "openssl11" content (double 
check you have the openssl11-devel package installed) and may need to be 
modified to find it properly rather than seeking "openssl". You could 
also make sure you have openssl-devel removed and symlink the *11.pc 
files to their counterparts and see if that helps pick things up.


yum remove openssl-devel
cd /usr/lib64/pkgconfig
ln -s libcrypto11.pc libcrypto.pc
ln -s libssl11.pc libssl.pc
ln -s openssl11.pc openssl.pc

Cheers,
Mike
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-22 Thread Thiago Macieira
On Wednesday, 22 June 2022 06:09:30 PDT Alexander Carôt wrote:
> Any more hints towards final success :-) ?

See config.log and find out why "feature.ssl" failed.

-- 
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


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

2022-06-22 Thread Alexander Carôt
P.S.: Of course the PKG_CONFIG_PATH was wrong – it is
 

echo $PKG_CONFIG_PATH
/usr/lib64/pkgconfig

 

However, this did not make a difference – openssl is still not recognized :-(


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

 
 

Gesendet: Mittwoch, 22. Juni 2022 um 15:09 Uhr
Von: "Alexander Carôt" 
An: "Chris Benesch" 
Cc: "Thiago Macieira" , "interest" 
Betreff: Re: [Interest] Qt5.15 from source on centOS 7



see below – I just realized that openssl-1.1.1 is present in centOS7:

 

openssl version
OpenSSL 1.1.1o  3 May 2022 (Library: OpenSSL 1.1.1k  FIPS 25 Mar 2021)

 


As suggested I edited the PKG_CONFIG_PATH -->

 


echo $PKG_CONFIG_PATH
/usr/local/ssl/



 

Now I, however, unsuccessfully tried three configure options:

 

1.) Configuring Qt without additional parameters tells me:

 


Qt Network:
OpenSSL  no
Qt directly linked to OpenSSL  no
OpenSSL 1.1 ... no

 

and in turn does not include openssl into the build

 

2.) ./configure -ssl

 

does the same mentioned in 1.) plus

 


ERROR: Feature 'ssl' was enabled, but the pre-condition 'config.winrt || features.securetransport || features.openssl || features.schannel' failed.

 

3.) ./configure -ssl -openssl-linked

 


does the same mentioned in 1.) plus


ERROR: Feature 'openssl-linked' was enabled, but the pre-condition '!features.securetransport && !features.schannel && libs.openssl' failed.

ERROR: Feature 'ssl' was enabled, but the pre-condition 'config.winrt || features.securetransport || features.openssl || features.schannel' failed.




 

Any more hints towards final success :-) ?

 

Thank you

 

Alex

 

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

 
 

Gesendet: Sonntag, 19. Juni 2022 um 23:29 Uhr
Von: "Chris Benesch" 
An: "Thiago Macieira" 
Cc: "interest" 
Betreff: Re: [Interest] Qt5.15 from source on centOS 7


Build OpenSSL 3 and add its install directory lib/pkgconfig to PKG_CONFIG_PATH and choose -openssl-linked as one of the config parameters.  If you can get through configure, it should build.
 


On Sun, Jun 19, 2022 at 10:03 AM Thiago Macieira <thiago.macie...@intel.com> wrote:

On Sunday, 19 June 2022 03:51:43 PDT Alexander Carôt wrote:
> Succes !! Thanks so much for this hint of using the Developer Toolset !
> Qt5.15 is compiled and installed just fine but now a new issue arises which
> might have a different cause but I am embedding it into this thread
> anyways: My app contains a secure websocket and anything related to ssl is
> not available obviously:

Please paste English messages.

> echoserver.cpp: In Konstruktor »EchoServer::EchoServer(quint16, bool,
> QObject*)«: echoserver.cpp:18:63: Fehler: »SecureMode« ist kein Element von
> »QWebSocketServer« QWebSocketServer::SecureMode, this)), ^~
> echoserver.cpp:27:23: Fehler: Aggregat »QSslConfiguration sslConfiguration«
> hat unvollständigen Typ und kann nicht definiert werden QSslConfiguration
> sslConfiguration;
>                        ^~~~

I'm going to guess that this means the type QSslConfiguration is unknown.

You need OpenSSL 1.1 to enable SSL support in QtNetwork 5.15.

--
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



--


Chris Benesch
BeneschTech, LLC

___ 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



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


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

2022-06-22 Thread Alexander Carôt
see below – I just realized that openssl-1.1.1 is present in centOS7:

 

openssl version
OpenSSL 1.1.1o  3 May 2022 (Library: OpenSSL 1.1.1k  FIPS 25 Mar 2021)

 


As suggested I edited the PKG_CONFIG_PATH -->

 


echo $PKG_CONFIG_PATH
/usr/local/ssl/



 

Now I, however, unsuccessfully tried three configure options:

 

1.) Configuring Qt without additional parameters tells me:

 


Qt Network:
OpenSSL  no
Qt directly linked to OpenSSL  no
OpenSSL 1.1 ... no

 

and in turn does not include openssl into the build

 

2.) ./configure -ssl

 

does the same mentioned in 1.) plus

 


ERROR: Feature 'ssl' was enabled, but the pre-condition 'config.winrt || features.securetransport || features.openssl || features.schannel' failed.

 

3.) ./configure -ssl -openssl-linked

 


does the same mentioned in 1.) plus


ERROR: Feature 'openssl-linked' was enabled, but the pre-condition '!features.securetransport && !features.schannel && libs.openssl' failed.

ERROR: Feature 'ssl' was enabled, but the pre-condition 'config.winrt || features.securetransport || features.openssl || features.schannel' failed.




 

Any more hints towards final success :-) ?

 

Thank you

 

Alex

 

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

 
 

Gesendet: Sonntag, 19. Juni 2022 um 23:29 Uhr
Von: "Chris Benesch" 
An: "Thiago Macieira" 
Cc: "interest" 
Betreff: Re: [Interest] Qt5.15 from source on centOS 7


Build OpenSSL 3 and add its install directory lib/pkgconfig to PKG_CONFIG_PATH and choose -openssl-linked as one of the config parameters.  If you can get through configure, it should build.
 


On Sun, Jun 19, 2022 at 10:03 AM Thiago Macieira <thiago.macie...@intel.com> wrote:

On Sunday, 19 June 2022 03:51:43 PDT Alexander Carôt wrote:
> Succes !! Thanks so much for this hint of using the Developer Toolset !
> Qt5.15 is compiled and installed just fine but now a new issue arises which
> might have a different cause but I am embedding it into this thread
> anyways: My app contains a secure websocket and anything related to ssl is
> not available obviously:

Please paste English messages.

> echoserver.cpp: In Konstruktor »EchoServer::EchoServer(quint16, bool,
> QObject*)«: echoserver.cpp:18:63: Fehler: »SecureMode« ist kein Element von
> »QWebSocketServer« QWebSocketServer::SecureMode, this)), ^~
> echoserver.cpp:27:23: Fehler: Aggregat »QSslConfiguration sslConfiguration«
> hat unvollständigen Typ und kann nicht definiert werden QSslConfiguration
> sslConfiguration;
>                        ^~~~

I'm going to guess that this means the type QSslConfiguration is unknown.

You need OpenSSL 1.1 to enable SSL support in QtNetwork 5.15.

--
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



--


Chris Benesch
BeneschTech, LLC

___ 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


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

2022-06-20 Thread Chris Benesch
GCC 11 is a beast. But on an overall level the stricter the compiler, the
more optimization it can do. We got 5.15 to build on Cent 7 with gcc 10 and
OpenSSL 3, and I dont remember any big issues with it, but we dont really
use any of the cryptographic functions.  I'll make a note of it and get our
CM guy involved so we dont ship unsupported configurations, and modify my
Jenkins build as well.

On Mon, Jun 20, 2022 at 1:14 AM Alexander Carôt 
wrote:

> Hello Chris and Thiago,
>
> yes, indeed centOS 7 has open-ssl 1.0.7 installed so I need to upgrade
> obviously.
>
> >>OpenSSL 3 isn't supported in 5.15.
>
> Thanks for this hint, too ! I also figured by playing with the various DTS
> available that the most recent version with gcc 11 does not work with
> Qt5.15 so I used DTS 10 instead.
>
> Best
>
> Alex
>
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
>
>
> > Gesendet: Montag, 20. Juni 2022 um 00:06 Uhr
> > Von: "Thiago Macieira" 
> > An: interest@qt-project.org
> > Betreff: Re: [Interest] Qt5.15 from source on centOS 7
> >
> > On Sunday, 19 June 2022 14:29:33 PDT Chris Benesch wrote:
> > > Build OpenSSL 3 and add its install directory lib/pkgconfig to
> > > PKG_CONFIG_PATH and choose -openssl-linked as one of the config
> > > parameters.  If you can get through configure, it should build.
> >
> > OpenSSL 3 isn't supported in 5.15.
> >
> > Use the very latest release from 1.1, but no older and no newer.
> >
> > Then there's the question of whether you want to ship OpenSSL libraries
> with
> > your product.  If you do, then you must also keep an eye to OpenSSL
> security
> > advisories and make proper and timely updates to your release. Be
> prepared to
> > make new builds and release to customers once per month. If you can't
> sustain
> > this rate, then don't ship OpenSSL.
> >
> > You don't have to do it: the default build doesn't link to OpenSSL, but
> > instead tries to find it at runtime and dlopens() it. That places the
> burden of
> > providing OpenSSL and keeping it up to date on your user, not you. If
> they
> > choose to be vulnerable by choice or by ignorance, it's not your fault.
> >
> > If you choose this route, make sure your application works properly when
> > OpenSSL 1.1 is missing. By "properly", I mean "doesn't crash left and
> right".
> > Please make sure that it is not silently falling back to unencrypted
> > connections where encrypted were required. If your application requires
> > encrypted connections to work at all, then display a dialog with a link
> to
> > documentation on how to install OpenSSL.
> >
> > PS: OpenSSL is the most visible and most important library when it comes
> to
> > patching security vulnerabilities, but is not the only one. You should
> do the
> > same for ALL libraries you ship with your application, and that includes
> ALL
> > the libraries that are bundled inside Qt's source. For example, the just-
> > released Qt 5.15.5-LTS includes a vulnerable version of zlib, so you
> should
> > patch it.
> >
> > Better yet, don't use bundled libraries.
> >
> > --
> > 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
>


-- 
Chris Benesch
BeneschTech, LLC
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-20 Thread Alexander Carôt
Hello Chris and Thiago,

yes, indeed centOS 7 has open-ssl 1.0.7 installed so I need to upgrade 
obviously.

>>OpenSSL 3 isn't supported in 5.15.

Thanks for this hint, too ! I also figured by playing with the various DTS 
available that the most recent version with gcc 11 does not work with Qt5.15 so 
I used DTS 10 instead.

Best

Alex

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


> Gesendet: Montag, 20. Juni 2022 um 00:06 Uhr
> Von: "Thiago Macieira" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> On Sunday, 19 June 2022 14:29:33 PDT Chris Benesch wrote:
> > Build OpenSSL 3 and add its install directory lib/pkgconfig to
> > PKG_CONFIG_PATH and choose -openssl-linked as one of the config
> > parameters.  If you can get through configure, it should build.
>
> OpenSSL 3 isn't supported in 5.15.
>
> Use the very latest release from 1.1, but no older and no newer.
>
> Then there's the question of whether you want to ship OpenSSL libraries with
> your product.  If you do, then you must also keep an eye to OpenSSL security
> advisories and make proper and timely updates to your release. Be prepared to
> make new builds and release to customers once per month. If you can't sustain
> this rate, then don't ship OpenSSL.
>
> You don't have to do it: the default build doesn't link to OpenSSL, but
> instead tries to find it at runtime and dlopens() it. That places the burden 
> of
> providing OpenSSL and keeping it up to date on your user, not you. If they
> choose to be vulnerable by choice or by ignorance, it's not your fault.
>
> If you choose this route, make sure your application works properly when
> OpenSSL 1.1 is missing. By "properly", I mean "doesn't crash left and right".
> Please make sure that it is not silently falling back to unencrypted
> connections where encrypted were required. If your application requires
> encrypted connections to work at all, then display a dialog with a link to
> documentation on how to install OpenSSL.
>
> PS: OpenSSL is the most visible and most important library when it comes to
> patching security vulnerabilities, but is not the only one. You should do the
> same for ALL libraries you ship with your application, and that includes ALL
> the libraries that are bundled inside Qt's source. For example, the just-
> released Qt 5.15.5-LTS includes a vulnerable version of zlib, so you should
> patch it.
>
> Better yet, don't use bundled libraries.
>
> --
> 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


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

2022-06-19 Thread Thiago Macieira
On Sunday, 19 June 2022 14:29:33 PDT Chris Benesch wrote:
> Build OpenSSL 3 and add its install directory lib/pkgconfig to
> PKG_CONFIG_PATH and choose -openssl-linked as one of the config
> parameters.  If you can get through configure, it should build.

OpenSSL 3 isn't supported in 5.15.

Use the very latest release from 1.1, but no older and no newer.

Then there's the question of whether you want to ship OpenSSL libraries with 
your product.  If you do, then you must also keep an eye to OpenSSL security 
advisories and make proper and timely updates to your release. Be prepared to 
make new builds and release to customers once per month. If you can't sustain 
this rate, then don't ship OpenSSL.

You don't have to do it: the default build doesn't link to OpenSSL, but 
instead tries to find it at runtime and dlopens() it. That places the burden of 
providing OpenSSL and keeping it up to date on your user, not you. If they 
choose to be vulnerable by choice or by ignorance, it's not your fault.

If you choose this route, make sure your application works properly when 
OpenSSL 1.1 is missing. By "properly", I mean "doesn't crash left and right". 
Please make sure that it is not silently falling back to unencrypted 
connections where encrypted were required. If your application requires 
encrypted connections to work at all, then display a dialog with a link to 
documentation on how to install OpenSSL.

PS: OpenSSL is the most visible and most important library when it comes to 
patching security vulnerabilities, but is not the only one. You should do the 
same for ALL libraries you ship with your application, and that includes ALL 
the libraries that are bundled inside Qt's source. For example, the just-
released Qt 5.15.5-LTS includes a vulnerable version of zlib, so you should 
patch it.

Better yet, don't use bundled libraries.

-- 
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


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

2022-06-19 Thread Chris Benesch
Build OpenSSL 3 and add its install directory lib/pkgconfig to
PKG_CONFIG_PATH and choose -openssl-linked as one of the config
parameters.  If you can get through configure, it should build.

On Sun, Jun 19, 2022 at 10:03 AM Thiago Macieira 
wrote:

> On Sunday, 19 June 2022 03:51:43 PDT Alexander Carôt wrote:
> > Succes !! Thanks so much for this hint of using the Developer Toolset !
> > Qt5.15 is compiled and installed just fine but now a new issue arises
> which
> > might have a different cause but I am embedding it into this thread
> > anyways: My app contains a secure websocket and anything related to ssl
> is
> > not available obviously:
>
> Please paste English messages.
>
> > echoserver.cpp: In Konstruktor »EchoServer::EchoServer(quint16, bool,
> > QObject*)«: echoserver.cpp:18:63: Fehler: »SecureMode« ist kein Element
> von
> > »QWebSocketServer« QWebSocketServer::SecureMode, this)), ^~
> > echoserver.cpp:27:23: Fehler: Aggregat »QSslConfiguration
> sslConfiguration«
> > hat unvollständigen Typ und kann nicht definiert werden QSslConfiguration
> > sslConfiguration;
> >^~~~
>
> I'm going to guess that this means the type QSslConfiguration is unknown.
>
> You need OpenSSL 1.1 to enable SSL support in QtNetwork 5.15.
>
> --
> 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
>


-- 
Chris Benesch
BeneschTech, LLC
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-19 Thread Thiago Macieira
On Sunday, 19 June 2022 03:51:43 PDT Alexander Carôt wrote:
> Succes !! Thanks so much for this hint of using the Developer Toolset !
> Qt5.15 is compiled and installed just fine but now a new issue arises which
> might have a different cause but I am embedding it into this thread
> anyways: My app contains a secure websocket and anything related to ssl is
> not available obviously:

Please paste English messages.

> echoserver.cpp: In Konstruktor »EchoServer::EchoServer(quint16, bool,
> QObject*)«: echoserver.cpp:18:63: Fehler: »SecureMode« ist kein Element von
> »QWebSocketServer« QWebSocketServer::SecureMode, this)), ^~
> echoserver.cpp:27:23: Fehler: Aggregat »QSslConfiguration sslConfiguration«
> hat unvollständigen Typ und kann nicht definiert werden QSslConfiguration
> sslConfiguration;
>^~~~

I'm going to guess that this means the type QSslConfiguration is unknown.

You need OpenSSL 1.1 to enable SSL support in QtNetwork 5.15.

-- 
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


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

2022-06-19 Thread Alexander Carôt
Succes !! Thanks so much for this hint of using the Developer Toolset ! Qt5.15 
is compiled and installed just fine but now a new issue arises which might have 
a different cause but I am embedding it into this thread anyways: My app 
contains a secure websocket and anything related to ssl is not available 
obviously:


echoserver.cpp: In Konstruktor »EchoServer::EchoServer(quint16, bool, 
QObject*)«:
echoserver.cpp:18:63: Fehler: »SecureMode« ist kein Element von 
»QWebSocketServer«
 QWebSocketServer::SecureMode, 
this)),
   ^~
echoserver.cpp:27:23: Fehler: Aggregat »QSslConfiguration sslConfiguration« hat 
unvollständigen Typ und kann nicht definiert werden
 QSslConfiguration sslConfiguration;
   ^~~~
echoserver.cpp:33:19: Fehler: Variable »QSslKey sslKey« hat Initialisierung, 
aber unvollständigen Typ
 QSslKey sslKey(, QSsl::Rsa, QSsl::Pem);
   ^
echoserver.cpp:36:40: Fehler: »QSslSocket« wurde nicht deklariert
 sslConfiguration.setPeerVerifyMode(QSslSocket::VerifyNone);
^~
echoserver.cpp:40:25: Fehler: »class QWebSocketServer« hat kein Element namens 
»setSslConfiguration«
 m_pWebSocketServer->setSslConfiguration(sslConfiguration);
 ^~~
echoserver.cpp:52:56: Fehler: »sslErrors« ist kein Element von 
»QWebSocketServer«
 connect(m_pWebSocketServer, ::sslErrors,
^
echoserver.cpp: In Elementfunktion »void EchoServer::onNewConnection()«:
echoserver.cpp:190:14: Fehler: »class QWebSocket« hat kein Element namens 
»ignoreSslErrors«
 pSocket->ignoreSslErrors();


I believe there is another module to be compiled, however, since I build 
everything I currently don't know how to proceed next.

Thanks for helping me out also with this,
best

Alex

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


> Gesendet: Sonntag, 19. Juni 2022 um 09:49 Uhr
> Von: "Alexander Carôt" 
> An: "Mike Rochefort" 
> Cc: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> Hej Mike and Simon,
> 
> allright – although I successfully (conventionally) installed a more recent 
> gcc on my centOS 7 I ran into further trouble with the actual Qt5.15 
> compilation. Now I brought all back to centOS defaults including gcc4.8 and 
> Qt5.9.
> 
> As suggested by you I will now give it a try with the Developer Toolset and 
> get back later.
> 
> Thanks and best
> 
> Alex
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> 
> > Gesendet: Sonntag, 19. Juni 2022 um 01:06 Uhr
> > Von: "Mike Rochefort" 
> > An: interest@qt-project.org
> > Betreff: Re: [Interest] Qt5.15 from source on centOS 7
> >
> > Alex, I'm going to echo Simon's suggestion from earlier. The Developer 
> > Toolsets are designed and provided for the purpose of enabling the use 
> > of newer toolchains on RHEL-compatible platforms. Compiled objects still 
> > dynamically link against the system libraries and will statically link 
> > in the pieces from the toolset that they need for portability.
> > 
> > To access DTS on CentOS 7:
> > $ yum install centos-release-scl-rh
> > $ yum install devtoolset-
> > 
> > To use a DTS:
> > # Run a specific command from the toolset
> > $ scl enable devtoolset-11 'g++ --version'
> > 
> > # Run an interactive sub-shell inside the DTS environment
> > $ scl enable devtoolset-11 $SHELL
> > $ g++ --version
> > 
> > DTS 7 through DTS 11 (e.g. GCC 7 through 11) are currently available on 
> > the mirrors; I would recommend going as current as you can.
> > 
> > Cheers,
> > Mike
> > ___
> > 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
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-19 Thread Alexander Carôt
Hej Mike and Simon,

allright – although I successfully (conventionally) installed a more recent gcc 
on my centOS 7 I ran into further trouble with the actual Qt5.15 compilation. 
Now I brought all back to centOS defaults including gcc4.8 and Qt5.9.

As suggested by you I will now give it a try with the Developer Toolset and get 
back later.

Thanks and best

Alex

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


> Gesendet: Sonntag, 19. Juni 2022 um 01:06 Uhr
> Von: "Mike Rochefort" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> Alex, I'm going to echo Simon's suggestion from earlier. The Developer 
> Toolsets are designed and provided for the purpose of enabling the use 
> of newer toolchains on RHEL-compatible platforms. Compiled objects still 
> dynamically link against the system libraries and will statically link 
> in the pieces from the toolset that they need for portability.
> 
> To access DTS on CentOS 7:
> $ yum install centos-release-scl-rh
> $ yum install devtoolset-
> 
> To use a DTS:
> # Run a specific command from the toolset
> $ scl enable devtoolset-11 'g++ --version'
> 
> # Run an interactive sub-shell inside the DTS environment
> $ scl enable devtoolset-11 $SHELL
> $ g++ --version
> 
> DTS 7 through DTS 11 (e.g. GCC 7 through 11) are currently available on 
> the mirrors; I would recommend going as current as you can.
> 
> Cheers,
> Mike
> ___
> 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


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

2022-06-18 Thread Mike Rochefort
Alex, I'm going to echo Simon's suggestion from earlier. The Developer 
Toolsets are designed and provided for the purpose of enabling the use 
of newer toolchains on RHEL-compatible platforms. Compiled objects still 
dynamically link against the system libraries and will statically link 
in the pieces from the toolset that they need for portability.


To access DTS on CentOS 7:
$ yum install centos-release-scl-rh
$ yum install devtoolset-

To use a DTS:
# Run a specific command from the toolset
$ scl enable devtoolset-11 'g++ --version'

# Run an interactive sub-shell inside the DTS environment
$ scl enable devtoolset-11 $SHELL
$ g++ --version

DTS 7 through DTS 11 (e.g. GCC 7 through 11) are currently available on 
the mirrors; I would recommend going as current as you can.


Cheers,
Mike
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-18 Thread Alexander Carôt
> Assembler messages:
> Fatal error: can't create .obj/Assimp.o: Datei oder Verzeichnis nicht gefunden
> make[5]: *** [.obj/Assimp.o] Fehler 2
> make[5]: Leaving directory 
> `/var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtquick3d/src/plugins/assetimporters/assimp'
> 
> What can I do with this one ? 

Nevermind – looks like a more general issue on my end. Will come up with a new 
and more general question at some point.

Thanks and have a nice weekend

Alex


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


> Gesendet: Samstag, 18. Juni 2022 um 14:23 Uhr
> Von: "Alexander Carôt" 
> An: "Thiago Macieira" 
> Cc: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> Thanks all – in fact I just needed to set tge LD_LIBRARY_PATH according to:
> 
> https://stackoverflow.com/questions/20357033/usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8-not-found
> 
> and then it compiled fine also with the original libstc++.so.6
> 
> However, a new problem comes up when doing make install:
> 
> Assembler messages:
> Fatal error: can't create .obj/Assimp.o: Datei oder Verzeichnis nicht gefunden
> make[5]: *** [.obj/Assimp.o] Fehler 2
> make[5]: Leaving directory 
> `/var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtquick3d/src/plugins/assetimporters/assimp'
> 
> What can I do with this one ? 
> 
> Thanks,
> best
> 
> Alex
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> 
> > Gesendet: Freitag, 17. Juni 2022 um 18:06 Uhr
> > Von: "Thiago Macieira" 
> > An: interest@qt-project.org
> > Betreff: Re: [Interest] Qt5.15 from source on centOS 7
> >
> > On Friday, 17 June 2022 08:22:57 PDT Alexander Carôt wrote:
> > > 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.
> > 
> > Where is the libstdc++.so.6 that it created and the target of that symlink? 
> > Make sure those are found by the dynamic linker (LD_LIBRARY_PATH or 
> > /etc/ld.so.conf)
> > 
> > Why are you using GCC 7? If you're compiling from source, why not use 12?
> > 
> > -- 
> > 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
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-18 Thread Alexander Carôt
Thanks all – in fact I just needed to set tge LD_LIBRARY_PATH according to:

https://stackoverflow.com/questions/20357033/usr-lib-x86-64-linux-gnu-libstdc-so-6-version-cxxabi-1-3-8-not-found

and then it compiled fine also with the original libstc++.so.6

However, a new problem comes up when doing make install:

Assembler messages:
Fatal error: can't create .obj/Assimp.o: Datei oder Verzeichnis nicht gefunden
make[5]: *** [.obj/Assimp.o] Fehler 2
make[5]: Leaving directory 
`/var/www/vhosts/soundjack.eu/qt-everywhere-src-5.15.2/qtquick3d/src/plugins/assetimporters/assimp'

What can I do with this one ? 

Thanks,
best

Alex

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


> Gesendet: Freitag, 17. Juni 2022 um 18:06 Uhr
> Von: "Thiago Macieira" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> On Friday, 17 June 2022 08:22:57 PDT Alexander Carôt wrote:
> > 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.
> 
> Where is the libstdc++.so.6 that it created and the target of that symlink? 
> Make sure those are found by the dynamic linker (LD_LIBRARY_PATH or 
> /etc/ld.so.conf)
> 
> Why are you using GCC 7? If you're compiling from source, why not use 12?
> 
> -- 
> 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


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

2022-06-17 Thread Thiago Macieira
On Friday, 17 June 2022 08:22:57 PDT Alexander Carôt wrote:
> 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.

Where is the libstdc++.so.6 that it created and the target of that symlink? 
Make sure those are found by the dynamic linker (LD_LIBRARY_PATH or 
/etc/ld.so.conf)

Why are you using GCC 7? If you're compiling from source, why not use 12?

-- 
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


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] Qt5.15 from source on centOS 7

2022-06-17 Thread Nicholas Yue
Hi Alexander,

  From memory, when I last built a different GCC on CentOS 7 and used it to
build other applications, running those other applications requires that I
append to LD_LIBRARY_PATH the path to the required libraries that was in
the GCC installation location. Hope that helps.

Cheers

On Fri, 17 Jun 2022 at 08:26, Alexander Carôt 
wrote:

> >> 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
>


-- 
Nicholas Yue
https://www.linkedin.com/in/nicholasyue/
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-17 Thread Alexander Carôt
>> 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


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

2022-06-17 Thread Thiago Macieira
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


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

2022-06-17 Thread Alexander Carôt
Follow up: I successfully compiled and installed gcc-7.3.0 on this centOS7 
machine and now the configure process works fine by building qmake in 
/qt5/qtbase/bin/ however, then it bails out with this issue:

error while loading shared libraries: libstdc++.so.6: cannot open shared object 
file: No such file or directory

What apart from doing "make install" within gcc-7.3.0 should I do in order to 
get a working libstdc++.so.6 ? 

Of course I cannot do yum install libstdc++ becasue this would install an 
outdated lib.

Any further help appreciated,
best

Alex

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


> Gesendet: Freitag, 17. Juni 2022 um 09:05 Uhr
> Von: "Alexander Carôt" 
> An: fro...@tungware.se, "qt qt" 
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> > Hi, default GCC version on CentOS 7.9 is 4.8.5 but Qt 5.15 requires at 
> > least GCC version 5.
> 
> Got it – thank you !
> 
> 
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> 
> > Gesendet: Freitag, 17. Juni 2022 um 08:18 Uhr
> > Von: "Henry Skoglund" 
> > An: interest@qt-project.org
> > Betreff: Re: [Interest] Qt5.15 from source on centOS 7
> >
> > On 2022-06-17 07:46, Alexander Carôt wrote:
> > > Hi all,
> > >
> > > I have to compile Qt5.15 from source on an older centOS 7.9 machine but 
> > > it fails due to this issue (sorry, only german language):
> > >
> > > .In file included from ../include/QtCore/qmetatype.h:1:0,
> > >   from 
> > > ../include/QtCore/../../src/corelib/kernel/qvariant.h:46,
> > >   from ../include/QtCore/qvariant.h:1,
> > >   from 
> > > ../include/QtCore/../../src/corelib/text/qlocale.h:43,
> > >   from ../include/QtCore/qlocale.h:1,
> > >   from 
> > > ../include/QtCore/../../src/corelib/serialization/qtextstream.h:46,
> > >   from ../include/QtCore/qtextstream.h:1,
> > >   from ../include/QtCore/../../src/corelib/io/qdebug.h:49,
> > >   from ../include/QtCore/qdebug.h:1,
> > >   from 
> > > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/proitems.h:34,
> > >   from 
> > > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeparser.h:34,
> > >   from 
> > > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeevaluator.h:36,
> > >   from 
> > > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/project.h:32,
> > >   from 
> > > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/main.cpp:30:
> > > ../include/QtCore/../../src/corelib/kernel/qmetatype.h: In Instanziierung 
> > > von 
> > > »QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const
> > >  T*) [with T = QList]«:
> > > ../include/QtCore/../../src/corelib/kernel/qvariant.h:772:139:   von hier 
> > > erfordert
> > > ../include/QtCore/../../src/corelib/kernel/qmetatype.h:1160:135: Fehler: 
> > > mehrdeutige Klassentemplate-Instanziierung für »struct 
> > > QtMetaTypePrivate::ContainerCapabilitiesImpl, void>«
> > > , _iteratorCapabilities(ContainerAPI::IteratorCapabilities | 
> > > (1 << 4) | (ContainerCapabilitiesImpl::ContainerCapabilities << (4+3)))
> > >   
> > >
> > > There is an ambigious class template instantiation for struct 
> > > QtMetaTypePrivate::ContainerCapabilitiesImpl – that 
> > > obvious but I currently don't know how to resolve it.
> > >
> > > Can anyone help ?
> > >
> > > Thanks !
> > >
> > > Alex
> > >
> > Hi, default GCC version on CentOS 7.9 is 4.8.5 but Qt 5.15 requires at 
> > least GCC version 5.
> > 
> > ___
> > 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
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


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

2022-06-17 Thread Alexander Carôt
> Hi, default GCC version on CentOS 7.9 is 4.8.5 but Qt 5.15 requires at 
> least GCC version 5.

Got it – thank you !



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


> Gesendet: Freitag, 17. Juni 2022 um 08:18 Uhr
> Von: "Henry Skoglund" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt5.15 from source on centOS 7
>
> On 2022-06-17 07:46, Alexander Carôt wrote:
> > Hi all,
> >
> > I have to compile Qt5.15 from source on an older centOS 7.9 machine but it 
> > fails due to this issue (sorry, only german language):
> >
> > .In file included from ../include/QtCore/qmetatype.h:1:0,
> >   from 
> > ../include/QtCore/../../src/corelib/kernel/qvariant.h:46,
> >   from ../include/QtCore/qvariant.h:1,
> >   from 
> > ../include/QtCore/../../src/corelib/text/qlocale.h:43,
> >   from ../include/QtCore/qlocale.h:1,
> >   from 
> > ../include/QtCore/../../src/corelib/serialization/qtextstream.h:46,
> >   from ../include/QtCore/qtextstream.h:1,
> >   from ../include/QtCore/../../src/corelib/io/qdebug.h:49,
> >   from ../include/QtCore/qdebug.h:1,
> >   from 
> > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/proitems.h:34,
> >   from 
> > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeparser.h:34,
> >   from 
> > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeevaluator.h:36,
> >   from 
> > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/project.h:32,
> >   from 
> > /var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/main.cpp:30:
> > ../include/QtCore/../../src/corelib/kernel/qmetatype.h: In Instanziierung 
> > von 
> > »QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const 
> > T*) [with T = QList]«:
> > ../include/QtCore/../../src/corelib/kernel/qvariant.h:772:139:   von hier 
> > erfordert
> > ../include/QtCore/../../src/corelib/kernel/qmetatype.h:1160:135: Fehler: 
> > mehrdeutige Klassentemplate-Instanziierung für »struct 
> > QtMetaTypePrivate::ContainerCapabilitiesImpl, void>«
> > , _iteratorCapabilities(ContainerAPI::IteratorCapabilities | (1 
> > << 4) | (ContainerCapabilitiesImpl::ContainerCapabilities << (4+3)))
> >   
> >
> > There is an ambigious class template instantiation for struct 
> > QtMetaTypePrivate::ContainerCapabilitiesImpl – that obvious 
> > but I currently don't know how to resolve it.
> >
> > Can anyone help ?
> >
> > Thanks !
> >
> > Alex
> >
> Hi, default GCC version on CentOS 7.9 is 4.8.5 but Qt 5.15 requires at 
> least GCC version 5.
> 
> ___
> 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


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

2022-06-17 Thread Henry Skoglund

On 2022-06-17 07:46, Alexander Carôt wrote:

Hi all,

I have to compile Qt5.15 from source on an older centOS 7.9 machine but it 
fails due to this issue (sorry, only german language):

.In file included from ../include/QtCore/qmetatype.h:1:0,
  from ../include/QtCore/../../src/corelib/kernel/qvariant.h:46,
  from ../include/QtCore/qvariant.h:1,
  from ../include/QtCore/../../src/corelib/text/qlocale.h:43,
  from ../include/QtCore/qlocale.h:1,
  from 
../include/QtCore/../../src/corelib/serialization/qtextstream.h:46,
  from ../include/QtCore/qtextstream.h:1,
  from ../include/QtCore/../../src/corelib/io/qdebug.h:49,
  from ../include/QtCore/qdebug.h:1,
  from 
/var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/proitems.h:34,
  from 
/var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeparser.h:34,
  from 
/var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/library/qmakeevaluator.h:36,
  from 
/var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/project.h:32,
  from 
/var/www/vhosts/soundjack.eu/qt5/qtbase/qmake/main.cpp:30:
../include/QtCore/../../src/corelib/kernel/qmetatype.h: In Instanziierung von 
»QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const T*) [with 
T = QList]«:
../include/QtCore/../../src/corelib/kernel/qvariant.h:772:139:   von hier 
erfordert
../include/QtCore/../../src/corelib/kernel/qmetatype.h:1160:135: Fehler: mehrdeutige 
Klassentemplate-Instanziierung für »struct 
QtMetaTypePrivate::ContainerCapabilitiesImpl, void>«
, _iteratorCapabilities(ContainerAPI::IteratorCapabilities | (1 << 4) | 
(ContainerCapabilitiesImpl::ContainerCapabilities << (4+3)))
  


There is an ambigious class template instantiation for struct 
QtMetaTypePrivate::ContainerCapabilitiesImpl – that obvious but 
I currently don't know how to resolve it.

Can anyone help ?

Thanks !

Alex

Hi, default GCC version on CentOS 7.9 is 4.8.5 but Qt 5.15 requires at 
least GCC version 5.


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