Re: QtQuick 2.6 on Ubuntu

2017-12-03 Thread Willem Ferguson
>From phone. Thanks, Miika

On 04 Dec 2017 07:07, "Miika Turkia"  wrote:

> On Sun, Dec 3, 2017 at 7:36 PM, Willem Ferguson <
> willemfergu...@zoology.up.ac.za> wrote:
>
>> On 03/12/2017 18:23, Dirk Hohndel wrote:
>>
>>>
>>> Willem, you mention the PPA only has 4.7.2 - I know that I pushed 4.7.4
>>> and a quick look at the Launchpad website seems to indicate that indeed
>>> 4.7.4 is there.
>>>
>>> See attached image. Ubuntu has its own mind. Sometimes it presents the
>> latest versions of software only to the latest versions of Ubuntu. Qt is a
>> good example (5.5 on 16.04).
>>
>
> I believe that you are using subsurface-daily repository. That seems to
> have 4.7.2 version of Subsurface. Switch to the main repository and you
> should have 4.7.4. Run the following commands on a terminal:
> ---8<---
> sudo add-apt-repository ppa:subsurface/subsurface-daily
> sudo apt-get update
> sudo apt-get dist-upgrade
> ---8<---
>
> miika
>
> ___
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
>
>
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: QtQuick 2.6 on Ubuntu

2017-12-03 Thread Miika Turkia
On Sun, Dec 3, 2017 at 7:36 PM, Willem Ferguson <
willemfergu...@zoology.up.ac.za> wrote:

> On 03/12/2017 18:23, Dirk Hohndel wrote:
>
>>
>> Willem, you mention the PPA only has 4.7.2 - I know that I pushed 4.7.4
>> and a quick look at the Launchpad website seems to indicate that indeed
>> 4.7.4 is there.
>>
>> See attached image. Ubuntu has its own mind. Sometimes it presents the
> latest versions of software only to the latest versions of Ubuntu. Qt is a
> good example (5.5 on 16.04).
>

I believe that you are using subsurface-daily repository. That seems to
have 4.7.2 version of Subsurface. Switch to the main repository and you
should have 4.7.4. Run the following commands on a terminal:
---8<---
sudo add-apt-repository ppa:subsurface/subsurface-daily
sudo apt-get update
sudo apt-get dist-upgrade
---8<---

miika
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: QtQuick 2.6 on Ubuntu

2017-12-03 Thread Dirk Hohndel
Sorry, on the phone.
Yes, install Qt5.9.3 in src and then make sure that the build script picks up 
that version for Googlemaps, Grantlee, and Subsurface.
I need to check when I'm on my computer, this is slightly more tricky since we 
use both cmake and qmake.

/D

On December 3, 2017 9:36:53 AM PST, Willem Ferguson 
 wrote:
>On 03/12/2017 18:23, Dirk Hohndel wrote:
>>> On Dec 3, 2017, at 7:00 AM, Lubomir I. Ivanov 
>wrote:
>>>
>>> i would uninstall the 5.5.x libraries completely and install the
>newer version.
>> In all honesty, I would not recommend uninstalling the system
>libraries...
>> You can easily build against a local version of Qt (so install 5.9.3
>in your
>> home directory and build Subsurface against that - that's easy). But
>> replacing the system libraries? Something is bound to break.
>Thnaks, noted.
>>> this patch by Jan introduced 2.6 in all QML files.
>>>
>https://github.com/Subsurface-divelog/subsurface/commit/f3d978b8a5fb6511aa0c1c611cf9b0394fdc125b
>>>
>>> i do not understand what this artifact in question is but this
>limits
>>> the scope of our Qt to at least Qt 5.6.x.
>>>
>>> QtQuick versions info:
>>> Qt 5.5 -> QtQuick 2.5
>>> Qt 5.6 -> QtQuick 2.6
>>> Qt 5.7 -> QtQuick 2.7
>>> .
>> We need 5.6 for Bluetooth to work reasonably well on most platforms.
>> But anyway, Willem, you could try changing all the references to
>QtQuick
>> in the QML files back to 2.5 and see if that works of if we are
>actually using
>Did this on the three qml files related to the map, and it built
>against 
>QtQuick 2.5. (sigh if relief). Maps are back.
>> a QtQuick 2.6 feature...
>>
>> Willem, you mention the PPA only has 4.7.2 - I know that I pushed
>4.7.4
>> and a quick look at the Launchpad website seems to indicate that
>indeed
>> 4.7.4 is there.
>>
>See attached image. Ubuntu has its own mind. Sometimes it presents the 
>latest versions of software only to the latest versions of Ubuntu. Qt
>is 
>a good example (5.5 on 16.04).
>
>Question. When I download Qt5.>5 from the Qt website it produces an 
>enormous installation that installs anywhere where one would like to 
>have it on the Linux system. It does not install like a apt-get install
>
>would do it in the system area. So, to work with Subsurface, is it ok
>to 
>download the full Qt and put in src? I did that once with a miniscule 
>skeleton of Qt5.8 to get Subsurface-mobile to build with Q5.8.
>
>Kind regards,
>willem

-- 
from my phone.
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: QtQuick 2.6 on Ubuntu

2017-12-03 Thread Willem Ferguson

On 03/12/2017 18:23, Dirk Hohndel wrote:

On Dec 3, 2017, at 7:00 AM, Lubomir I. Ivanov  wrote:

i would uninstall the 5.5.x libraries completely and install the newer version.

In all honesty, I would not recommend uninstalling the system libraries...
You can easily build against a local version of Qt (so install 5.9.3 in your
home directory and build Subsurface against that - that's easy). But
replacing the system libraries? Something is bound to break.

Thnaks, noted.

this patch by Jan introduced 2.6 in all QML files.
https://github.com/Subsurface-divelog/subsurface/commit/f3d978b8a5fb6511aa0c1c611cf9b0394fdc125b

i do not understand what this artifact in question is but this limits
the scope of our Qt to at least Qt 5.6.x.

QtQuick versions info:
Qt 5.5 -> QtQuick 2.5
Qt 5.6 -> QtQuick 2.6
Qt 5.7 -> QtQuick 2.7
.

We need 5.6 for Bluetooth to work reasonably well on most platforms.
But anyway, Willem, you could try changing all the references to QtQuick
in the QML files back to 2.5 and see if that works of if we are actually using
Did this on the three qml files related to the map, and it built against 
QtQuick 2.5. (sigh if relief). Maps are back.

a QtQuick 2.6 feature...

Willem, you mention the PPA only has 4.7.2 - I know that I pushed 4.7.4
and a quick look at the Launchpad website seems to indicate that indeed
4.7.4 is there.

See attached image. Ubuntu has its own mind. Sometimes it presents the 
latest versions of software only to the latest versions of Ubuntu. Qt is 
a good example (5.5 on 16.04).


Question. When I download Qt5.>5 from the Qt website it produces an 
enormous installation that installs anywhere where one would like to 
have it on the Linux system. It does not install like a apt-get install 
would do it in the system area. So, to work with Subsurface, is it ok to 
download the full Qt and put in src? I did that once with a miniscule 
skeleton of Qt5.8 to get Subsurface-mobile to build with Q5.8.


Kind regards,
willem






--
This message and attachments are subject to a disclaimer.
Please refer to 
http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf for full 
details.
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: QtQuick 2.6 on Ubuntu

2017-12-03 Thread Dirk Hohndel

> On Dec 3, 2017, at 7:00 AM, Lubomir I. Ivanov  wrote:
> 
> i would uninstall the 5.5.x libraries completely and install the newer 
> version.

In all honesty, I would not recommend uninstalling the system libraries...
You can easily build against a local version of Qt (so install 5.9.3 in your
home directory and build Subsurface against that - that's easy). But 
replacing the system libraries? Something is bound to break.

> this patch by Jan introduced 2.6 in all QML files.
> https://github.com/Subsurface-divelog/subsurface/commit/f3d978b8a5fb6511aa0c1c611cf9b0394fdc125b
> 
> i do not understand what this artifact in question is but this limits
> the scope of our Qt to at least Qt 5.6.x.
> 
> QtQuick versions info:
> Qt 5.5 -> QtQuick 2.5
> Qt 5.6 -> QtQuick 2.6
> Qt 5.7 -> QtQuick 2.7
> .

We need 5.6 for Bluetooth to work reasonably well on most platforms.
But anyway, Willem, you could try changing all the references to QtQuick
in the QML files back to 2.5 and see if that works of if we are actually using
a QtQuick 2.6 feature...

Willem, you mention the PPA only has 4.7.2 - I know that I pushed 4.7.4 
and a quick look at the Launchpad website seems to indicate that indeed
4.7.4 is there.

/D
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: QtQuick 2.6 on Ubuntu

2017-12-03 Thread Lubomir I. Ivanov
hi, Willem.

On 3 December 2017 at 11:03, Willem Ferguson
 wrote:
> If I do:
>
> ~$ dpkg -S libQt5QuickWidgets.so.5
>
> I get:
>
> libqt5quickwidgets5:amd64: /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
> qt57declarative: /opt/qt57/lib/libQt5QuickWidgets.so.5.7
> libqt5quickwidgets5:amd64:
> /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5.5.1
> libqt5quickwidgets5:amd64:
> /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5.5
> qt57declarative: /opt/qt57/lib/libQt5QuickWidgets.so.5
> qt57declarative: /opt/qt57/lib/libQt5QuickWidgets.so.5.7.1
>
> Does this make any sense?
>
>

somewhere in there should be a symbolic link that points to the 5.5.x
library instead of the newer one.
but mixing Qt versions is a bad idea...

i would uninstall the 5.5.x libraries completely and install the newer version.

this patch by Jan introduced 2.6 in all QML files.
https://github.com/Subsurface-divelog/subsurface/commit/f3d978b8a5fb6511aa0c1c611cf9b0394fdc125b

i do not understand what this artifact in question is but this limits
the scope of our Qt to at least Qt 5.6.x.

QtQuick versions info:
Qt 5.5 -> QtQuick 2.5
Qt 5.6 -> QtQuick 2.6
Qt 5.7 -> QtQuick 2.7
...

lubomir
--
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: QtQuick 2.6 on Ubuntu

2017-12-03 Thread Willem Ferguson

You should be sleeping.

On 03/12/2017 08:43, Dirk Hohndel wrote:

I’m hoping it’s 4.7.4 :-)

Oops, yes.

This could be a case where we have (inadvertently?) rev’ed a version of a QML 
component that’s too new for the Qt version on your Ubuntu system.
Did you build from source,

Yes. I built subsurface from source.

  did you use the PPA?
The PPA only has version 4.7.2. It is the problem of working with a long 
term support version (16.04 in this case). Towards the end of the 2-year 
period, most of the supporting libraries are outdated.

Which Qt version do you have on your Ubuntu box?
The base version is Qt 5.5, coming from the PPA. But at one stage I did 
install 5.7


~$ qmake -v
QMake version 3.0
Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

If I do:

~$ dpkg -S libQt5QuickWidgets.so.5

I get:

libqt5quickwidgets5:amd64: /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5
qt57declarative: /opt/qt57/lib/libQt5QuickWidgets.so.5.7
libqt5quickwidgets5:amd64: 
/usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5.5.1
libqt5quickwidgets5:amd64: 
/usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5.5

qt57declarative: /opt/qt57/lib/libQt5QuickWidgets.so.5
qt57declarative: /opt/qt57/lib/libQt5QuickWidgets.so.5.7.1

Does this make any sense?

Kind regards,
willem


--
This message and attachments are subject to a disclaimer.
Please refer to 
http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf for full 
details.

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: QtQuick 2.6 on Ubuntu

2017-12-02 Thread Dirk Hohndel
I’m hoping it’s 4.7.4 :-)

This could be a case where we have (inadvertently?) rev’ed a version of a QML 
component that’s too new for the Qt version on your Ubuntu system.
Did you build from source, did you use the PPA? Which Qt version do you have on 
your Ubuntu box?

/D

> On Dec 2, 2017, at 22:24, Willem Ferguson  
> wrote:
> 
> I do not have maps in the latest master (4.4.4-217). I get error message:
> 
> qrc:/MapWidgetError.qml:2:1: module "QtQuick" version 2.6 is not installed.
> 
> Doing "ldd subsurface" I get:
> 
> libQt5QuickWidgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5QuickWidgets.so.5 
> (0x7fbc8e9f1000)
> 
> so I assume this is the culprit.
> 
> But this file is not, as far as I can see, in the Ubuntu repositories.
> 
> How could I fix this?
> 
> Kind regards,
> 
> willem
> 
> 
> 
> -- 
> This message and attachments are subject to a disclaimer.
> Please refer to 
> http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf for full 
> details.
> ___
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface