Re: [Interest] Qt 5.12 for Windows (Static)

2019-01-23 Thread Thiago Macieira
On Wednesday, 23 January 2019 13:15:08 PST Nuno Santos wrote:
> I ran it via dependency walker and its failing after calling
> SHGetKnownFolderPath, from the looks of things, it dies inside
> sHGetKnownFolderPath() in qstandardpaths_win.cpp but I have no idea why the
> -static-runtime could influence that.

You said it crashes before main(). So what is calling QStandardPaths in a 
global constructor? Please share the backtrace of the crash.

Please remember that if you have static runtime, your global constructor are 
run intermixed with Qt's and the CRT's. If you had dynamic builds, all of Qt's 
constructors would have completed before the first of yours started and all of 
the CRT constructors would be finished before Qt's first. This intermixing of 
constructors is NOT tested and not supported. If things break because of 
static-runtime, you get to keep the pieces.

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



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


Re: [Interest] Weird sizing in Qt Designer 5.12.0 with hi-res screen

2019-01-23 Thread Tony Rietwyk

Hi Dmitriy,

The software is at https://www.risingsoftware.com/ and covers both 
aspects that you mention.  It can generate progressions, or use supplied 
set pieces and notation.  The student can either annotate the notation 
with the chord symbols - or even fill in the voices as well.  The 
student may or may not actually hear the progression.  It's wonderful 
software to work on - sure beats boring business crap!


Regards, Tony


On 24/01/2019 8:49 am, Dmitriy Purgin wrote:
Off topic but out of curiosity: what is the software you have on your 
screenshot? A harmony learning helper or some kind of a harmony 
progression generator?


Cheers
Dmitriy

On Wed, Jan 23, 2019 at 2:52 AM Tony Rietwyk > wrote:


Hi Everybody,

I have recently installed a hi-res screen 3840 x 2160 @ 150%
scaling on
my Windows 10 machine.

The attached screen capture has Qt Designer on the right of the
actual
running dialog, with a screen ruler on top of the designer. You
can see
the following:

- Designer is showing the form at double the size it should be
(1200 for
a form at minimum size 600 high).

- Even the grid spacing has been stretched.

- We do not set any of the newer high-res related settings at run
time,
so the dialog appears at the expected 600 pixels high. Instead we use
style sheets to adjust fonts, images, etc.

Why is Designer doing this?  Where is it getting the factor of 2
from?
How do I get it to display the form at the correct size?

Regards, Tony

___
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] Weird sizing in Qt Designer 5.12.0 with hi-res screen

2019-01-23 Thread Adam Light
On Tue, Jan 22, 2019 at 5:52 PM Tony Rietwyk  wrote:

> Hi Everybody,
>
> I have recently installed a hi-res screen 3840 x 2160 @ 150% scaling on
> my Windows 10 machine.
>
>
I'm not sure if this explains the problem you report, but we've found that
Qt does not fully support scale factors that are not a multiple of 100%. If
you change your scale factor to 200% (you may also need to log out/in
and/or reboot) you might find that you get the correct behavior.

On a related note, we've also sometimes found that Qt (and even other
non-Qt applications) misbehave on a system with multiple displays that have
different scale factors or on a mixed DPI environment (eg. one regular DPI,
one high DPI). The situation here has improved since Qt first started
supporting high DPI displays.

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


Re: [Interest] Qt 5.12 for Windows (Static)

2019-01-23 Thread Nuno Santos
Michael,

Thanks for sharing your build options. I have been building Qt from source in 
the last few years with -static -static-runtime enabled without problems. 

We definitely share some configuration details but we couldn’t isolate the 
cause of this crash yet.

Best,

Nuno

> On 23 Jan 2019, at 16:43, Klank, Michael  wrote:
> 
> I did recently compile Qt5.12.0 static including OpenSSL.
> This is what I do:
> Building OpenSSL:
> set path="c:\Program Files\NASM\";%path%
> perl Configure VC-WIN64A --prefix=c:\OpenSSL\vc-win64a 
> --openssldir=c:\OpenSSL\SSL no-asm
> 
> building Qt:
> SET _ROOT=C:\klm\src\qt5
> SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
> SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
> set path=c:\Python27\;%path%
> 
> cd c:\klm\src\
> rm -rf qt5
> git clone https://code.qt.io/qt/qt5.git
> cd %_ROOT%
> git checkout 5.12.0
> perl init-repository
> pause
> 
> change inside mkspecs/common/msvc-desktop.conf:
> from QMAKE_CFLAGS_RELEASE= $$QMAKE_CFLAGS_OPTIMIZE -MD to 
> QMAKE_CFLAGS_RELEASE= $$QMAKE_CFLAGS_OPTIMIZE -MT
> from QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MD  
> to QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MT
> from QMAKE_CFLAGS_DEBUG  = -Zi -MDd  to  QMAKE_CFLAGS_DEBUG  = -Zi MTd
> 
> configure -opensource -confirm-license -static -debug-and-release -release 
> -no-pch -optimize-size -nomake tests -nomake examples -qt-zlib -qt-libjpeg 
> -qt-libpng -opengl desktop -plugin-sql-sqlite -openssl 
> -Ic:/OpenSSL/vc-win64a/include -Lc:/OpenSSL/vc-win64a/lib
> jom
> jom install
> 
> Static debug build with qmldebug enabled doesn_t work. Disable qmldebug and 
> it works for me.
> Hope this helps.
> 
> Michael
> 
> -Ursprüngliche Nachricht-
> Von: Interest [mailto:interest-boun...@qt-project.org] Im Auftrag von Nuno 
> Santos
> Gesendet: Mittwoch, 23. Januar 2019 10:44
> An: Thiago Macieira 
> Cc: interest@qt-project.org
> Betreff: Re: [Interest] Qt 5.12 for Windows (Static)
> 
> Thiago,
> 
> I forgot to mention one small detail. A simple console application works and 
> doesn’t crash. Maybe this has something to do with the Qt Quick engine only. 
> Anyway, I have filled the following bug report:
> 
> https://bugreports.qt.io/browse/QTBUG-73217
> 
> Thanks!
> 
> Best regards,
> 
> Nuno
> 
>> On 23 Jan 2019, at 09:16, Nuno Santos  wrote:
>> 
>> Thiago,
>> 
>> Followed as suggested.
>> 
>> 1) removed openssl dependency and tried to compile again -> Didn’t work! :(
>> 2) removed -static and -static-runtime options -> Worked! :)
>> 
>> Maybe there is some kind of issue with -static -static-runtime build options
>> 
>> Will fill a bug report.
>> 
>> Thanks!
>> 
>> Best regards,
>> 
>> Nuno
>> 
>>> On 17 Jan 2019, at 16:35, Thiago Macieira  wrote:
>>> 
>>> On Thursday, 17 January 2019 05:07:21 PST Nuno Santos wrote:
 Can you spot anything wrong?
>>> 
>>> Reduce your problem. Suggested steps:
>>> 1) remove OpenSSL dependency
>>> 2) use regular dynamic runtime (not -static-runtime)
>>> 3) build your application with fewer Qt libraries
>>> 
>>> What is the smallest combination that still crashes at load?
>>> 
>>> Make sure your application is CONFIG += console, so that any output goes to
>>> the console instead of the debug ring.
>>> 
>>> --
>>> Thiago Macieira - thiago.macieira (AT) intel.com
>>> Software Architect - Intel Open Source Technology Center
>>> 
>>> 
>>> 
>>> ___
>>> 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
> 
> 
> 
> Persönlich haftende Gesellschafterin: AMK Verwaltungsgesellschaft mbH, 
> Kirchheim/Teck
> Geschäftsführer: Rainer Schwöbel, Rupert Wiest
> Registergericht Stuttgart HRB 230208; HRA 230681
> 
> Die in dieser E-Mail enthaltenen Informationen sind vertraulich. Diese E-Mail 
> ist ausschließlich für den Adressaten bestimmt und jeglicher Zugriff durch 
> andere Personen ist nicht zulässig. Falls Sie nicht der beabsichtigte 
> Empfänger sind, ist jegliche Veröffentlichung, Vervielfältigung, Verteilung 
> und sonstige in diesem Zusammenhang stehende Handlung untersagt und unter 
> Umständen ungesetzlich. Falls Sie diese E-Mail irrtümlich erhalten haben, 
> leiten Sie sie bitte weiter an die folgende E-Mail-Adresse: i...@amk-group.com
> 
> The information in this e-mail is confidential. It is intended solely for the 
> address and access to the e-mail by anyone else is unauthorised. If you are 
> not the intended recipient, any disclosure, copying, distribution or any 
> action taken or committed to be taken in reliance on it, is prohibited and 
> may be 

Re: [Interest] Qt 5.12 for Windows (Static)

2019-01-23 Thread Nuno Santos
Thiago,

Totally agree!

I left it building before leaving the office. I will have an answer to that 
question by tomorrow morning.

Andy Shaw got here earlier today:

I ran it via dependency walker and its failing after calling 
SHGetKnownFolderPath, from the looks of things, it dies inside 
sHGetKnownFolderPath() in qstandardpaths_win.cpp but I have no idea why the 
-static-runtime could influence that.

Thanks!

Best,

Nuno

> On 23 Jan 2019, at 20:40, Thiago Macieira  wrote:
> 
> On Wednesday, 23 January 2019 11:37:42 PST Nuno Santos wrote:
>> Thiago,
>> 
>> That will be the next try.
>> 
>> However, I think I do need the static runtime as I don’t want the software
>> to depend on the runtime distributable (correct?)
> 
> I understand that you want that. Whether you *need* the option or not is a 
> different story.
> 
> But I'm not asking for a change in your build. I'm asking for dissecting the 
> problem so we can find what the issue is.
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> 
> 
> 
> ___
> 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] Qt 5.12 for Windows (Static)

2019-01-23 Thread Thiago Macieira
On Wednesday, 23 January 2019 11:37:42 PST Nuno Santos wrote:
> Thiago,
> 
> That will be the next try.
> 
> However, I think I do need the static runtime as I don’t want the software
> to depend on the runtime distributable (correct?)

I understand that you want that. Whether you *need* the option or not is a 
different story.

But I'm not asking for a change in your build. I'm asking for dissecting the 
problem so we can find what the issue is.

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



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


Re: [Interest] Qt 5.12 for Windows (Static)

2019-01-23 Thread Nuno Santos
Thiago,

That will be the next try.

However, I think I do need the static runtime as I don’t want the software to 
depend on the runtime distributable (correct?)

I will try it anyway. 

I have made a zip with a compiled console test, a compiled quick test and the 
saved dependency walker file. If you are curious about it:

https://drive.google.com/open?id=1cBnP6eZa95kSn7y7pvTA7eK1eN0yUXcv 


Thanks!

Best,

Nuno

> On 23 Jan 2019, at 16:10, Thiago Macieira  wrote:
> 
> On Wednesday, 23 January 2019 01:16:45 PST Nuno Santos wrote:
>> 2) removed -static and -static-runtime options -> Worked! 
>> 
>> Maybe there is some kind of issue with -static -static-runtime build options
> 
> How about -static without -static-runtime?
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> 
> 
> 
> ___
> 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] Qt 5.12 for Windows (Static)

2019-01-23 Thread Klank, Michael
I did recently compile Qt5.12.0 static including OpenSSL.
This is what I do:
Building OpenSSL:
set path="c:\Program Files\NASM\";%path%
perl Configure VC-WIN64A --prefix=c:\OpenSSL\vc-win64a 
--openssldir=c:\OpenSSL\SSL no-asm

building Qt:
SET _ROOT=C:\klm\src\qt5
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
set path=c:\Python27\;%path%

cd c:\klm\src\
rm -rf qt5
git clone https://code.qt.io/qt/qt5.git
cd %_ROOT%
git checkout 5.12.0
perl init-repository
pause

change inside mkspecs/common/msvc-desktop.conf:
from QMAKE_CFLAGS_RELEASE= $$QMAKE_CFLAGS_OPTIMIZE -MD to 
QMAKE_CFLAGS_RELEASE= $$QMAKE_CFLAGS_OPTIMIZE -MT
from QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MD  to 
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_OPTIMIZE -Zi -MT
from QMAKE_CFLAGS_DEBUG  = -Zi -MDd  to  QMAKE_CFLAGS_DEBUG  = -Zi MTd

configure -opensource -confirm-license -static -debug-and-release -release 
-no-pch -optimize-size -nomake tests -nomake examples -qt-zlib -qt-libjpeg 
-qt-libpng -opengl desktop -plugin-sql-sqlite -openssl 
-Ic:/OpenSSL/vc-win64a/include -Lc:/OpenSSL/vc-win64a/lib
jom
jom install

Static debug build with qmldebug enabled doesn_t work. Disable qmldebug and it 
works for me.
Hope this helps.

Michael

-Ursprüngliche Nachricht-
Von: Interest [mailto:interest-boun...@qt-project.org] Im Auftrag von Nuno 
Santos
Gesendet: Mittwoch, 23. Januar 2019 10:44
An: Thiago Macieira 
Cc: interest@qt-project.org
Betreff: Re: [Interest] Qt 5.12 for Windows (Static)

Thiago,

I forgot to mention one small detail. A simple console application works and 
doesn’t crash. Maybe this has something to do with the Qt Quick engine only. 
Anyway, I have filled the following bug report:

https://bugreports.qt.io/browse/QTBUG-73217

Thanks!

Best regards,

Nuno

> On 23 Jan 2019, at 09:16, Nuno Santos  wrote:
>
> Thiago,
>
> Followed as suggested.
>
> 1) removed openssl dependency and tried to compile again -> Didn’t work! :(
> 2) removed -static and -static-runtime options -> Worked! :)
>
> Maybe there is some kind of issue with -static -static-runtime build options
>
> Will fill a bug report.
>
> Thanks!
>
> Best regards,
>
> Nuno
>
>> On 17 Jan 2019, at 16:35, Thiago Macieira  wrote:
>>
>> On Thursday, 17 January 2019 05:07:21 PST Nuno Santos wrote:
>>> Can you spot anything wrong?
>>
>> Reduce your problem. Suggested steps:
>> 1) remove OpenSSL dependency
>> 2) use regular dynamic runtime (not -static-runtime)
>> 3) build your application with fewer Qt libraries
>>
>> What is the smallest combination that still crashes at load?
>>
>> Make sure your application is CONFIG += console, so that any output goes to
>> the console instead of the debug ring.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>> Software Architect - Intel Open Source Technology Center
>>
>>
>>
>> ___
>> 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



Persönlich haftende Gesellschafterin: AMK Verwaltungsgesellschaft mbH, 
Kirchheim/Teck
Geschäftsführer: Rainer Schwöbel, Rupert Wiest
Registergericht Stuttgart HRB 230208; HRA 230681

Die in dieser E-Mail enthaltenen Informationen sind vertraulich. Diese E-Mail 
ist ausschließlich für den Adressaten bestimmt und jeglicher Zugriff durch 
andere Personen ist nicht zulässig. Falls Sie nicht der beabsichtigte Empfänger 
sind, ist jegliche Veröffentlichung, Vervielfältigung, Verteilung und sonstige 
in diesem Zusammenhang stehende Handlung untersagt und unter Umständen 
ungesetzlich. Falls Sie diese E-Mail irrtümlich erhalten haben, leiten Sie sie 
bitte weiter an die folgende E-Mail-Adresse: i...@amk-group.com

The information in this e-mail is confidential. It is intended solely for the 
address and access to the e-mail by anyone else is unauthorised. If you are not 
the intended recipient, any disclosure, copying, distribution or any action 
taken or committed to be taken in reliance on it, is prohibited and may be 
unlawful. If you have received this e-mail in error please forward to this 
e-mail-address: i...@amk-group.com

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


Re: [Interest] Qt 5.12 for Windows (Static)

2019-01-23 Thread Thiago Macieira
On Wednesday, 23 January 2019 01:43:50 PST Nuno Santos wrote:
> I forgot to mention one small detail. A simple console application works and
> doesn’t crash. Maybe this has something to do with the Qt Quick engine
> only. Anyway, I have filled the following bug report:

How about a plain QWindow (QtGui, but not QtQuick)? Does that show?

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



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


Re: [Interest] Qt 5.12 for Windows (Static)

2019-01-23 Thread Thiago Macieira
On Wednesday, 23 January 2019 01:16:45 PST Nuno Santos wrote:
> 2) removed -static and -static-runtime options -> Worked! 
> 
> Maybe there is some kind of issue with -static -static-runtime build options

How about -static without -static-runtime?

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



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


Re: [Interest] Qt 5.12 for Windows (Static)

2019-01-23 Thread Nuno Santos
Thiago,

I forgot to mention one small detail. A simple console application works and 
doesn’t crash. Maybe this has something to do with the Qt Quick engine only. 
Anyway, I have filled the following bug report:

https://bugreports.qt.io/browse/QTBUG-73217

Thanks!

Best regards,

Nuno

> On 23 Jan 2019, at 09:16, Nuno Santos  wrote:
> 
> Thiago,
> 
> Followed as suggested.
> 
> 1) removed openssl dependency and tried to compile again -> Didn’t work! :(
> 2) removed -static and -static-runtime options -> Worked! :)
> 
> Maybe there is some kind of issue with -static -static-runtime build options
> 
> Will fill a bug report.
> 
> Thanks!
> 
> Best regards,
> 
> Nuno
> 
>> On 17 Jan 2019, at 16:35, Thiago Macieira  wrote:
>> 
>> On Thursday, 17 January 2019 05:07:21 PST Nuno Santos wrote:
>>> Can you spot anything wrong?
>> 
>> Reduce your problem. Suggested steps:
>> 1) remove OpenSSL dependency
>> 2) use regular dynamic runtime (not -static-runtime)
>> 3) build your application with fewer Qt libraries
>> 
>> What is the smallest combination that still crashes at load?
>> 
>> Make sure your application is CONFIG += console, so that any output goes to 
>> the console instead of the debug ring.
>> 
>> -- 
>> Thiago Macieira - thiago.macieira (AT) intel.com
>> Software Architect - Intel Open Source Technology Center
>> 
>> 
>> 
>> ___
>> 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] Qt 5.12 for Windows (Static)

2019-01-23 Thread Nuno Santos
Thiago,

Followed as suggested.

1) removed openssl dependency and tried to compile again -> Didn’t work! :(
2) removed -static and -static-runtime options -> Worked! :)

Maybe there is some kind of issue with -static -static-runtime build options

Will fill a bug report.

Thanks!

Best regards,

Nuno

> On 17 Jan 2019, at 16:35, Thiago Macieira  wrote:
> 
> On Thursday, 17 January 2019 05:07:21 PST Nuno Santos wrote:
>> Can you spot anything wrong?
> 
> Reduce your problem. Suggested steps:
> 1) remove OpenSSL dependency
> 2) use regular dynamic runtime (not -static-runtime)
> 3) build your application with fewer Qt libraries
> 
> What is the smallest combination that still crashes at load?
> 
> Make sure your application is CONFIG += console, so that any output goes to 
> the console instead of the debug ring.
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> 
> 
> 
> ___
> 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