Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Konstantin Shegunov
On Fri, Oct 27, 2017 at 7:43 PM, Elvis Stansvik wrote: > > The definition of reentrant that Qt's documentation uses is documented > at http://doc.qt.io/qt-5/threads-reentrancy.html. > > It's a little different from the one used in for example the POSIX C API. > It's pretty much the same thing, ju

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Elvis Stansvik
2017-10-27 20:51 GMT+02:00 Thiago Macieira : > On Friday, 27 October 2017 11:22:39 PDT Thiago Macieira wrote: >> I will reject any change that tries to do that. But we may still have some >> of them lying around. For example: >> >> https://github.com/qt/qt/blob/4.8/src/corelib/global/qglobal.h#L208

Re: [Interest] QMap crash when using, QtConcurrent::blockingMapped()

2017-10-27 Thread Roland Hughes
On 10/27/2017 01:20 PM, interest-requ...@qt-project.org wrote: QMap isn't thread safe, so I don't think your use is guaranteed to be safe, even if you're only reading. You're right, in the formal sense of the word, but if there are no `mutable` members or `const_cast` usage a reentrant class

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Thiago Macieira
On Friday, 27 October 2017 11:22:39 PDT Thiago Macieira wrote: > I will reject any change that tries to do that. But we may still have some > of them lying around. For example: > > https://github.com/qt/qt/blob/4.8/src/corelib/global/qglobal.h#L2088-L2090 Wrong link. I meant https://code.woboq.

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Elvis Stansvik
2017-10-27 20:22 GMT+02:00 Thiago Macieira : > On Friday, 27 October 2017 11:14:35 PDT Elvis Stansvik wrote: >> 2017-10-27 19:03 GMT+02:00 Thiago Macieira : >> > On Friday, 27 October 2017 09:43:57 PDT Elvis Stansvik wrote: >> >> Reentrant in the object oriented context of Qt means: It's safe to >>

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Thiago Macieira
On Friday, 27 October 2017 11:14:35 PDT Elvis Stansvik wrote: > 2017-10-27 19:03 GMT+02:00 Thiago Macieira : > > On Friday, 27 October 2017 09:43:57 PDT Elvis Stansvik wrote: > >> Reentrant in the object oriented context of Qt means: It's safe to > >> call member functions from different threads _i

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Elvis Stansvik
2017-10-27 19:03 GMT+02:00 Thiago Macieira : > On Friday, 27 October 2017 09:43:57 PDT Elvis Stansvik wrote: >> Reentrant in the object oriented context of Qt means: It's safe to >> call member functions from different threads _if_ the calls are made >> on different instances. >> >> In your case yo

Re: [Interest] Whats the new openssl lib version to link Qt 5.10 against?

2017-10-27 Thread Allan Sandfeld Jensen
On Freitag, 27. Oktober 2017 11:56:54 CEST Nuno Santos wrote: > Hi, > > I was building Qt 5.8 from the source linking with openssl 1.0.2j > > Yesterday I started building Qt 5.10 but it is not linking against 1.0.2j > > I’m not sure if this is if this is due to a new required openssl version or

Re: [Interest] Can't build Qt 5.10 statically from source on Windows - fails to link with OpenSSL

2017-10-27 Thread Thiago Macieira
On Friday, 27 October 2017 09:16:29 PDT Nuno Santos wrote: > Thiago, > > I have tried to set > > set OPENSSL_LIBS=-L c:\openssl-lib-1.1\lib libsslMTd.lib libcryptoMTd.lib > > instead of > > set OPENSSL_LIBS='-L c:\openssl-lib-1.1\lib libsslMTd.lib libcryptoMTd.lib’ Please stick to OpenSSL 1.0,

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Thiago Macieira
On Friday, 27 October 2017 09:43:57 PDT Elvis Stansvik wrote: > Reentrant in the object oriented context of Qt means: It's safe to > call member functions from different threads _if_ the calls are made > on different instances. > > In your case you were making calls on the same instance. Calling

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Elvis Stansvik
2017-10-27 15:52 GMT+02:00 Jason H : >> Sent: Friday, October 27, 2017 at 6:44 AM >> From: "Konstantin Shegunov" >> On Fri, Oct 27, 2017 at 9:45 AM, Elvis Stansvik >> mailto:elvst...@gmail.com]> wrote: > >> > QMap isn't thread safe, so I don't think your use is guaranteed to be >> > safe, even i

Re: [Interest] Can't build Qt 5.10 statically from source on Windows - fails to link with OpenSSL

2017-10-27 Thread Nuno Santos
Thiago, I have tried to set set OPENSSL_LIBS=-L c:\openssl-lib-1.1\lib libsslMTd.lib libcryptoMTd.lib instead of set OPENSSL_LIBS='-L c:\openssl-lib-1.1\lib libsslMTd.lib libcryptoMTd.lib’ Then I clean the build dir, configured again and build. This time the lib path is not being set at all.

Re: [Interest] Can't build Qt 5.10 statically from source on Windows - fails to link with OpenSSL

2017-10-27 Thread Nuno Santos
Thiago, I have been cleaning and building all morning. I keep my configure lines in a file and I haven’t been doing this since 5.8. If nothing changed, the old lines should have worked. I think the problem might have something to do with the OPENSSL_LIBS env var definition. I had this OPENS

Re: [Interest] Can't build Qt 5.10 statically from source on Windows - fails to link with OpenSSL

2017-10-27 Thread Thiago Macieira
On Friday, 27 October 2017 04:48:15 PDT Nuno Santos wrote: > Qt5Network.lib(qsslsocket_openssl_symbols.obj) : error LNK2019: unresolved > external symbol _DH_get0_pqg That's an OpenSSL 1.1 symbol and is only used in QtNetwork if you compile with OpenSSL 1.1 support. Erase your build and configur

Re: [Interest] Whats the new openssl lib version to link Qt 5.10 against?

2017-10-27 Thread Thiago Macieira
On Friday, 27 October 2017 02:56:54 PDT Nuno Santos wrote: > Hi, > > I was building Qt 5.8 from the source linking with openssl 1.0.2j > > Yesterday I started building Qt 5.10 but it is not linking against 1.0.2j > > I’m not sure if this is if this is due to a new required openssl version or > b

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Thiago Macieira
On Friday, 27 October 2017 02:59:06 PDT Nuno Santos wrote: > Jean, > > Thanks for your reply. > > By default all the modules are selected unless you specify which ones it > should skip. > > How can I do the opposite? Initialising only the modules I want? Option 1: clone only the ones you want.

Re: [Interest] Whats the new openssl lib version to link Qt 5.10 against?

2017-10-27 Thread Nuno Santos
Andy, Yeah, I saw that and I have downloaded openssl-1.1 but still no joy. There must be a detail missing somewhere… Couldn’t find it yet :( Thx! Nuno > On 27 Oct 2017, at 15:00, Andy wrote: > > I think I read somewhere along the way that 5.10 has moved to OpenSSL 1.1. > > The only thing I

Re: [Interest] Whats the new openssl lib version to link Qt 5.10 against?

2017-10-27 Thread Andy
I think I read somewhere along the way that 5.10 has moved to OpenSSL 1.1. The only thing I can find right now is: https://wiki.qt.io/New_Features_in_Qt_5.10 Under "Qt Network" -> "OpenSSL 1.1 back-end". Maybe try linking with it instead of 1.0? --- Andy Maloney // https://asmaloney.com tw

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Jason H
> Sent: Friday, October 27, 2017 at 6:44 AM > From: "Konstantin Shegunov" > On Fri, Oct 27, 2017 at 9:45 AM, Elvis Stansvik > mailto:elvst...@gmail.com]> wrote: > > QMap isn't thread safe, so I don't think your use is guaranteed to be safe, > > even if you're only reading.   > You're right, in

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped() (Solved)

2017-10-27 Thread Jason H
Wow. Good call. Thanks Konstantin and Bjorn! It now works as expected.    Sent: Friday, October 27, 2017 at 5:15 AM From: "Björn Piltz" To: "Jason H" Cc: "interestqt-project.org" Subject: Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()  I'm wondering if there isn't a

[Interest] Can't build Qt 5.10 statically from source on Windows - fails to link with OpenSSL

2017-10-27 Thread Nuno Santos
Hi, Sorry to keep asking this but I can’t find the cause of this problem. I’m trying to build Qt 5.10 from git source. I’m using the following configure line: configure -confirm-license -recheck -prefix c:\qt\5.10.0\msvc2015_5_10_0_static_32 -commercial -debug-and-release -static -static-runti

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Konstantin Shegunov
On Fri, Oct 27, 2017 at 1:46 PM, Nuno Santos wrote: > > What’s the quickest way of clearing a Qt checked source for a new build? > make clean is very slow. > > What’s your approach in this case? > I usually do: $> git submodule foreach --recursive "git clean -dfx" && git clean -dfx As mentioned

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Nuno Santos
Konstantin, Cool! Today was actually the first time I looked to init-repository help! :) What’s the quickest way of clearing a Qt checked source for a new build? make clean is very slow. What’s your approach in this case? Thx! Nuno > On 27 Oct 2017, at 11:39, Konstantin Shegunov wrote: >

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Konstantin Shegunov
On Fri, Oct 27, 2017 at 9:45 AM, Elvis Stansvik wrote: > > QMap isn't thread safe, so I don't think your use is guaranteed to be > safe, even if you're only reading. > You're right, in the formal sense of the word, but if there are no `mutable` members or `const_cast` usage a reentrant class can

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Jean-Michaël Celerier
> perl init-repository —module-subset=qtbase,qtdeclarative,etc oh, TIL! I always used to do it manually with "git submodule update --init qtbase qtdeclarative" --- Jean-Michaël Celerier http://www.jcelerier.name On Fri, Oct 27, 2017 at 12:16 PM, Nuno Santos wrote: > But you were suggesti

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Konstantin Shegunov
On Fri, Oct 27, 2017 at 1:16 PM, Nuno Santos wrote: > > I have just checked out Qt source from git and was playing with the > init-repository script. I was trying to make something like: > > > perl init-repository —module-subset=qtbase,qtdeclarative,etc > This is from init-repository: On

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Nuno Santos
But you were suggesting that… how do you do it? I have just checked out Qt source from git and was playing with the init-repository script. I was trying to make something like: > perl init-repository —module-subset=qtbase,qtdeclarative,etc Is this what you meant? Regards, Nuno > On 27 Oct

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Konstantin Tokarev
27.10.2017, 12:59, "Nuno Santos" : > Jean, > > Thanks for your reply. > > By default all the modules are selected unless you specify which ones it > should skip. > > How can I do the opposite? Initialising only the modules I want? > > I’m starting with the source downloaded by Qt installer. I su

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Jean-Michaël Celerier
> How can I do the opposite? Initialising only the modules I want? don't think it's possible :( --- Jean-Michaël Celerier http://www.jcelerier.name On Fri, Oct 27, 2017 at 11:59 AM, Nuno Santos wrote: > Jean, > > Thanks for your reply. > > By default all the modules are selected unless y

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Nuno Santos
Jean, Thanks for your reply. By default all the modules are selected unless you specify which ones it should skip. How can I do the opposite? Initialising only the modules I want? I’m starting with the source downloaded by Qt installer. I suppose that that tactic needs that I start with the

[Interest] Whats the new openssl lib version to link Qt 5.10 against?

2017-10-27 Thread Nuno Santos
Hi, I was building Qt 5.8 from the source linking with openssl 1.0.2j Yesterday I started building Qt 5.10 but it is not linking against 1.0.2j I’m not sure if this is if this is due to a new required openssl version or because of some building problems. Does the required openssl version chang

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-27 Thread ekke
Am 27.10.17 um 11:01 schrieb Shawn Rutledge: >> On 26 Oct 2017, at 17:02, ekke wrote: >> >> Am 26.10.17 um 16:11 schrieb Shawn Rutledge: On 26 Oct 2017, at 15:12, ekke wrote: Jeffrey, thx at the moment it's ok for me to use QStandardPaths::standardLo

Re: [Interest] QMap crash when using QtConcurrent::blockingMapped()

2017-10-27 Thread Björn Piltz
> > I'm wondering if there isn't a reentrancy issue in QMap. > Almost. QMap works as it should if you only call const members, but as Konstantin said operator[] on a non-const instance is a mutating function. I am pretty sure your problems will go away if you declare operator() as const. Then, t

Re: [Interest] Excluding Qt Modules

2017-10-27 Thread Jean-Michaël Celerier
> However, it doesn’t show the modules that can be included or excluded. well, every submodule in a git clone of qt5 can be excluded: https://github.com/qt/qt5. At the very least you'd want qtbase, and qtdeclarative if you're using QML. A simpler way is to only initialize the submodules you want.

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-27 Thread Shawn Rutledge
> On 26 Oct 2017, at 17:02, ekke wrote: > > Am 26.10.17 um 16:11 schrieb Shawn Rutledge: >>> On 26 Oct 2017, at 15:12, ekke >>> wrote: >>> >>> Jeffrey, >>> >>> thx >>> >>> at the moment it's ok for me to use >>> QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() >>>

[Interest] Excluding Qt Modules

2017-10-27 Thread Nuno Santos
Hi, This documentation page explains how to exclude a module from the build. http://doc.qt.io/qt-5/configure-options.html#excluding-qt-modules However, it doesn’t show the modules that can be included or excluded. How can I g

Re: [Interest] Qt iOS - HowTo get access to Images stored at device

2017-10-27 Thread Jeffrey Brendecke
> On 26. Oct 2017, at 16:11, Shawn Rutledge wrote: > > >> On 26 Oct 2017, at 15:12, ekke wrote: >> >> Jeffrey, >> >> thx >> >> at the moment it's ok for me to use >> QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).last() >> >> Using Objective-C++ Photos framework would