Re: [Interest] QtCreator on kubuntu says: "No qmlscene installed"

2018-07-10 Thread Nikos Chantziaras

On 10/07/18 06:08, Alan Ezust wrote:

I just installed Qt Creator 4.5.2 from kubuntu apt sources.
It installed qmlscene + qt development files at the same time.
I can see clearly there is a qmlscene executable right next to qmake in 
the same directory: /usr/lib/qt5/bin


How do I get rid of the "no qmlscene installed" warning?


I've been using Creator from distro repos for a while in the past, and 
quite often this would result in some weirdness or breakage. I recommend 
installing Creator using the online installer instead.


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


Re: [Interest] how do I tell cmake that I need libQt5PositioningQuick.so

2018-07-10 Thread Thiago Macieira
On Tuesday, 10 July 2018 08:28:29 PDT Dirk Hohndel wrote:
> > My wild guess: a new plugin that gets deployed by macdeployqt, which links
> > to this library, but isn't added by macdeployqt.
> 
> What happens is that when Subsurface (or Subsurface-mobile) starts, loading
> the Map fails (that's QML in both desktop and mobile app). And when you
> look at the error messages, it's because a QML component isn't loaded
> because it needs this library.

Yup, this fits with my theory.

There's a QML import (QtPositioning) that loads the "declarative_positioning" 
plugin. That plugin links to QtPositioningQuick:

$ eu-readelf -d /usr/lib64/qt5/qml/QtPositioning/libdeclarative_positioning.so 
| grep NEEDED 
  NEEDEDShared library: [libQt5PositioningQuick.so.5]
  NEEDEDShared library: [libQt5Positioning.so.5]
  NEEDEDShared library: [libQt5Quick.so.5]
  NEEDEDShared library: [libQt5Qml.so.5]
  NEEDEDShared library: [libQt5Core.so.5]
  NEEDEDShared library: [libstdc++.so.6]
  NEEDEDShared library: [libc.so.6]
(This is Linux, but same for Mac)

However, this plugin is not new. It's been there since Qt 5.2. So the 
regression appears to be in the macdeployqt tool.

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



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


Re: [Interest] routing directions from mapboxgl

2018-07-10 Thread Marek.Floriańczyk
Dnia wtorek, 10 lipca 2018 13:43:08 CEST Marian Beermann pisze:
> I don't see the QML docs mention a "locales" or "language" parameter.
> Perhaps you need to use MapParameters to accomplish this?

ok, I have added language option to query in qgeoroutingmanagerenginemapbox.cpp


Best,
Marek

> 
> On 10.07.2018 12:54, Marek.Floriańczyk wrote:
> > Hi all,
> > 
> >  
> > 
> > I can't make mapbox plugin to return route directions in any language
> > except English, eg. I'm trying Deutsch, I can set locales property of
> > the plugin or add PluginParameters.
> > 
> > plugin:Plugin{
> > 
> > name:"mapbox"
> > 
> > locales:"de_DE"
> > 
> > PluginParameter{
> > 
> > name:"language"
> > 
> > value:"de"
> > 
> > }
> > 
> > }
> > 
> >  
> > 
> > According to mapbox docs
> > 
> > https://www.mapbox.com/api-documentation/#retrieve-directions
> > 
> > There is query parameter "language" but no matter what I set in QML,
> > this parameter seems to be omitted by RouteQuery, what I get from debug
> > is:
> > 
> >  
> > 
> > QUrl("https://api.mapbox.com/directions/v5/mapbox/driving/21.1610200,52.19
> > 78600;21.1795630,52.1951690?overview=full=true=polyline6&
> > alternatives=true=0,180;0,180_token=my_token_instruc
> > tions=true_instructions=true")
> > 
> >  
> > 
> > So if I can't pass language parameter in query, I can't get localized
> > instructions.
> > 
> > I was testing on Qt 5.10 and 5.11.0 on Linux 64Bit
> > 
> > Can someone help please ?
> > 
> >  
> > 
> > Best Regards
> > 
> > Marek
> > 
> > 
> > 
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest


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


Re: [Interest] how do I tell cmake that I need libQt5PositioningQuick.so

2018-07-10 Thread Dirk Hohndel


> On Jul 10, 2018, at 8:19 AM, Thiago Macieira  
> wrote:
> 
> On Tuesday, 10 July 2018 08:00:37 PDT Dirk Hohndel wrote:
>>> On Jul 10, 2018, at 7:23 AM, Thiago Macieira 
>>> wrote:> 
>>> On Monday, 9 July 2018 23:42:06 PDT Dirk Hohndel wrote:
 When upgrading to Qt 5.11 we ran into an odd problem when packaging our
 app... we seem to be missing a dependency for libQt5PositioningQuick.so
 (or
 QtPositioningQuick.framework on Mac). What's odd is that this worked
 perfectly fine with Qt 5.10 - so nothing from our side has changed.
 
 I'd love to hear if there's a magic incantation I could tell cmake to
 make
 sure that library is bundled.
>>> 
>>> There should be no magic, not more than for any other module. The cmake
>>> files are autogenerated for all Qt modules, so Qt5PositioningQuick is not
>>> different from any other.
>> 
>> Yet we have to manually copy/bundle that library on Mac, we still haven't
>> figured out how to get it added on Windows or Android...
>> I'm happy to show you a LOT more details :-)
>> But what would help you understand what's going on?
> 
> Well, start with the description of what happened that led you to the 
> conclusion that you needed this module. The only reference I see in the 
> Subsurface source code to QtPositionngQuick seems to be a workaround to this 
> particular issue.
> 
> My wild guess: a new plugin that gets deployed by macdeployqt, which links to 
> this library, but isn't added by macdeployqt.

What happens is that when Subsurface (or Subsurface-mobile) starts, loading the
Map fails (that's QML in both desktop and mobile app). And when you look at the 
error messages, it's because a QML component isn't loaded because it needs
this library.

You can easily see this for yourself. Build from latest master on your Mac, try 
it.
Everything works. Now revert the one commit that adds the workaround, remove
Subsurface.app (so you don't get the already copied Framework) and build again.
You'll see the failure to load the Map and the corresponding errors in the 
console
output.

I'm happy to provide those here, but I think you have a much better chance to
figure out what's wrong if you get to play with it yourself :-)

And building Subsurface on the Mac has become super easy lately.

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


Re: [Interest] how do I tell cmake that I need libQt5PositioningQuick.so

2018-07-10 Thread Thiago Macieira
On Tuesday, 10 July 2018 08:00:37 PDT Dirk Hohndel wrote:
> > On Jul 10, 2018, at 7:23 AM, Thiago Macieira 
> > wrote:> 
> > On Monday, 9 July 2018 23:42:06 PDT Dirk Hohndel wrote:
> >> When upgrading to Qt 5.11 we ran into an odd problem when packaging our
> >> app... we seem to be missing a dependency for libQt5PositioningQuick.so
> >> (or
> >> QtPositioningQuick.framework on Mac). What's odd is that this worked
> >> perfectly fine with Qt 5.10 - so nothing from our side has changed.
> >> 
> >> I'd love to hear if there's a magic incantation I could tell cmake to
> >> make
> >> sure that library is bundled.
> > 
> > There should be no magic, not more than for any other module. The cmake
> > files are autogenerated for all Qt modules, so Qt5PositioningQuick is not
> > different from any other.
> 
> Yet we have to manually copy/bundle that library on Mac, we still haven't
> figured out how to get it added on Windows or Android...
> I'm happy to show you a LOT more details :-)
> But what would help you understand what's going on?

Well, start with the description of what happened that led you to the 
conclusion that you needed this module. The only reference I see in the 
Subsurface source code to QtPositionngQuick seems to be a workaround to this 
particular issue.

My wild guess: a new plugin that gets deployed by macdeployqt, which links to 
this library, but isn't added by macdeployqt.

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



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


Re: [Interest] how do I tell cmake that I need libQt5PositioningQuick.so

2018-07-10 Thread Dirk Hohndel


> On Jul 10, 2018, at 7:23 AM, Thiago Macieira  
> wrote:
> 
> On Monday, 9 July 2018 23:42:06 PDT Dirk Hohndel wrote:
>> When upgrading to Qt 5.11 we ran into an odd problem when packaging our
>> app... we seem to be missing a dependency for libQt5PositioningQuick.so (or
>> QtPositioningQuick.framework on Mac). What's odd is that this worked
>> perfectly fine with Qt 5.10 - so nothing from our side has changed.
>> 
>> I'd love to hear if there's a magic incantation I could tell cmake to make
>> sure that library is bundled.
> 
> There should be no magic, not more than for any other module. The cmake files 
> are autogenerated for all Qt modules, so Qt5PositioningQuick is not different 
> from any other.

Yet we have to manually copy/bundle that library on Mac, we still haven't 
figured
out how to get it added on Windows or Android...
I'm happy to show you a LOT more details :-)
But what would help you understand what's going on?

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


Re: [Interest] Build Qt project with CMake in Qt Creator

2018-07-10 Thread Thiago Macieira
On Tuesday, 10 July 2018 07:30:17 PDT Álvaro Cebrián Juan wrote:
> I would like to know if it is possible to configure Qt Creator so that when
> i hit Run (Ctrl+R), it builds my project using CMake instead of qmake.

Sure. Close the project in Qt Creator, delete your .pro.user file, then open 
the CMakeLists.txt file to create a new project.

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



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


Re: [Interest] how do I tell cmake that I need libQt5PositioningQuick.so

2018-07-10 Thread Kevin Funk via Interest
On Tuesday, 10 July 2018 16:23:53 CEST Thiago Macieira wrote:
> On Monday, 9 July 2018 23:42:06 PDT Dirk Hohndel wrote:
> > When upgrading to Qt 5.11 we ran into an odd problem when packaging our
> > app... we seem to be missing a dependency for libQt5PositioningQuick.so
> > (or
> > QtPositioningQuick.framework on Mac). What's odd is that this worked
> > perfectly fine with Qt 5.10 - so nothing from our side has changed.
> > 
> > I'd love to hear if there's a magic incantation I could tell cmake to make
> > sure that library is bundled.
> 
> There should be no magic, not more than for any other module. The cmake
> files are autogenerated for all Qt modules, so Qt5PositioningQuick is not
> different from any other.

Heya,

Indeed.

@Dirk: The question is: How do you package/bundle your app? There's no 
functionality in Qt's CMake files that help in that regard, to my knowledge. 
Thus nothing which may break to begin with ;)

Bundling is usually done via the different *deployqt tools for each platform, 
and they operate on the application binary which is used to scan for its 
dependencies.

Regards,
Kevin


-- 
Kevin Funk | kevin.f...@kdab.com | Lead Sales Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts

smime.p7s
Description: S/MIME cryptographic signature
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Build Qt project with CMake in Qt Creator

2018-07-10 Thread Álvaro Cebrián Juan
I would like to know if it is possible to configure Qt Creator so that when
i hit Run (Ctrl+R), it builds my project using CMake instead of qmake.

Thank you.

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


Re: [Interest] Issues building Qt 5.11.1 from source

2018-07-10 Thread Thiago Macieira
On Tuesday, 10 July 2018 06:11:55 PDT Olivier B. wrote:
>  I am currently trying 5.11.1 from sources. My previous mails seems to not
> have been sent, i had forgotten i had unsubscribed. Here are the issues i
> encountered so far:
> 
> - the source archive does not contain .gitmodules at the root. Without it,
> the root configure.bat does not know of the modules, does not load their
> json files, so does not understand arguments passed to configure.bat.
> Either the archive or the building articles need to be updated

Cannot confirm. I can see it in both the .tar.xz and .zip files.

> - config.opt can not contain arguments of strings containing spaces in
> quotes. In my case it was just OPENSSL_DIR that was valued "lib1 lib2
> lib3", so i could pass it as en enviropnment variable instead, but what
> about the path arguments that would contain spaces (for -I, -L, -prefix;..)?
> Since there can be only one argument per line in config.opt, in the for
> loop that reads config.opt of qtbase/configure.bat,  couldn't  the (unused)
> token delimiter be something else than space, like ';' or '%', so that we
> can pass arguments with spaces in quotes?

Don't fight config.opt. Even if you manage to get it parsed, you're going to 
find issues elsewhere. Instead, rename your directory that contains spaces.

> - option -qt-sql-plugin is not understood anymore. initial parsing
> recognizes it as an unknown boolean option , and not an enum option, as
> defined in configure.json of sqldrivers. I switched back to
> -plugin-sqsl-sqlite for now..


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



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


Re: [Interest] how do I tell cmake that I need libQt5PositioningQuick.so

2018-07-10 Thread Thiago Macieira
On Monday, 9 July 2018 23:42:06 PDT Dirk Hohndel wrote:
> When upgrading to Qt 5.11 we ran into an odd problem when packaging our
> app... we seem to be missing a dependency for libQt5PositioningQuick.so (or
> QtPositioningQuick.framework on Mac). What's odd is that this worked
> perfectly fine with Qt 5.10 - so nothing from our side has changed.
> 
> I'd love to hear if there's a magic incantation I could tell cmake to make
> sure that library is bundled.

There should be no magic, not more than for any other module. The cmake files 
are autogenerated for all Qt modules, so Qt5PositioningQuick is not different 
from any other.

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



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


[Interest] Issues building Qt 5.11.1 from source

2018-07-10 Thread Olivier B.
 I am currently trying 5.11.1 from sources. My previous mails seems to not
have been sent, i had forgotten i had unsubscribed. Here are the issues i
encountered so far:

- the source archive does not contain .gitmodules at the root. Without it,
the root configure.bat does not know of the modules, does not load their
json files, so does not understand arguments passed to configure.bat.
Either the archive or the building articles need to be updated

- config.opt can not contain arguments of strings containing spaces in
quotes. In my case it was just OPENSSL_DIR that was valued "lib1 lib2
lib3", so i could pass it as en enviropnment variable instead, but what
about the path arguments that would contain spaces (for -I, -L, -prefix;..)?
Since there can be only one argument per line in config.opt, in the for
loop that reads config.opt of qtbase/configure.bat,  couldn't  the (unused)
token delimiter be something else than space, like ';' or '%', so that we
can pass arguments with spaces in quotes?

- option -qt-sql-plugin is not understood anymore. initial parsing
recognizes it as an unknown boolean option , and not an enum option, as
defined in configure.json of sqldrivers. I switched back to
-plugin-sqsl-sqlite for now..
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] routing directions from mapboxgl

2018-07-10 Thread Marek.Floriańczyk
Dnia wtorek, 10 lipca 2018 13:43:08 CEST Marian Beermann pisze:
> I don't see the QML docs mention a "locales" or "language" parameter.
> Perhaps you need to use MapParameters to accomplish this?

Hi
QML Plugin has "locales" property
http://doc.qt.io/qt-5/qml-qtlocation-plugin.html
But it seems it does not work.

MapParameters are described here
https://doc-snapshots.qt.io/qt5-5.9/location-plugin-mapboxgl.html#optional-map-parameters
but none of them says anything about language and language does not fit to any 
of 
"Parameter type" category.

I have based my app on this example
https://github.com/tmpsantos/qmapboxglapp/tree/tmpsantos-cheapruler 
it was shown on Qt World Summit 2017
It is  using mapboxgl plugin to display map and mapbox plugin to calculate route
Indeed, when I use mapboxgl plugin in RouteModel it does not work, on the other 
hand 
mapbox plugin does work, but it does not respect "locales" or "language" as a 
PluginParameter.

It seems that it should.

I have tried to modify qgeoserviceproviderpluginmapbox.cpp
*Src/qtlocation/src/plugins/geoservices/mapbox*

QUrl("https://api.mapbox.com/directions/v5/mapbox/driving/
21.161,52.1979;21.1796,52.1952?
steps=true=true=full=geojson_token=my_toke
n")

Best,
Marek

> 
> On 10.07.2018 12:54, Marek.Floriańczyk wrote:
> > Hi all,
> > 
> >  
> > 
> > I can't make mapbox plugin to return route directions in any language
> > except English, eg. I'm trying Deutsch, I can set locales property of
> > the plugin or add PluginParameters.
> > 
> > plugin:Plugin{
> > 
> > name:"mapbox"
> > 
> > locales:"de_DE"
> > 
> > PluginParameter{
> > 
> > name:"language"
> > 
> > value:"de"
> > 
> > }
> > 
> > }
> > 
> >  
> > 
> > According to mapbox docs
> > 
> > https://www.mapbox.com/api-documentation/#retrieve-directions
> > 
> > There is query parameter "language" but no matter what I set in QML,
> > this parameter seems to be omitted by RouteQuery, what I get from debug
> > is:
> > 
> >  
> > 
> > QUrl("https://api.mapbox.com/directions/v5/mapbox/driving/21.1610200,52.19
> > 78600;21.1795630,52.1951690?overview=full=true=polyline6&
> > alternatives=true=0,180;0,180_token=my_token_instruc
> > tions=true_instructions=true")
> > 
> >  
> > 
> > So if I can't pass language parameter in query, I can't get localized
> > instructions.
> > 
> > I was testing on Qt 5.10 and 5.11.0 on Linux 64Bit
> > 
> > Can someone help please ?
> > 
> >  
> > 
> > Best Regards
> > 
> > Marek
> > 
> > 
> > 
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest


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


Re: [Interest] routing directions from mapboxgl

2018-07-10 Thread Marian Beermann
I don't see the QML docs mention a "locales" or "language" parameter.
Perhaps you need to use MapParameters to accomplish this?

On 10.07.2018 12:54, Marek.Floriańczyk wrote:
> Hi all,
> 
>  
> 
> I can't make mapbox plugin to return route directions in any language
> except English, eg. I'm trying Deutsch, I can set locales property of
> the plugin or add PluginParameters.
> 
> plugin:Plugin{
> 
> name:"mapbox"
> 
> locales:"de_DE"
> 
> PluginParameter{
> 
> name:"language"
> 
> value:"de"
> 
> }
> 
> }
> 
>  
> 
> According to mapbox docs
> 
> https://www.mapbox.com/api-documentation/#retrieve-directions
> 
> There is query parameter "language" but no matter what I set in QML,
> this parameter seems to be omitted by RouteQuery, what I get from debug is:
> 
>  
> 
> QUrl("https://api.mapbox.com/directions/v5/mapbox/driving/21.1610200,52.1978600;21.1795630,52.1951690?overview=full=true=polyline6=true=0,180;0,180_token=my_token_instructions=true_instructions=true;)
> 
>  
> 
> So if I can't pass language parameter in query, I can't get localized
> instructions.
> 
> I was testing on Qt 5.10 and 5.11.0 on Linux 64Bit
> 
> Can someone help please ?
> 
>  
> 
> Best Regards
> 
> Marek
> 
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> 

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


[Interest] routing directions from mapboxgl

2018-07-10 Thread Marek.Floriańczyk
Hi all,

I can't make mapbox plugin to return route directions in any language except 
English, eg. 
I'm trying Deutsch, I can set locales property of the plugin or add 
PluginParameters.
plugin: Plugin {
name: "mapbox"
locales:"de_DE"
  PluginParameter {
name: "language"
value: "de"
}
}

According to mapbox docs 
https://www.mapbox.com/api-documentation/#retrieve-directions
There is query parameter "language" but no matter what I set in QML, this 
parameter seems 
to be omitted by RouteQuery, what I get from debug is:

QUrl("https://api.mapbox.com/directions/v5/mapbox/driving/
21.1610200,52.1978600;21.1795630,52.1951690?
overview=full=true=polyline6=true=0,180;0,180&
access_token=my_token_instructions=true_instructions=true")

So if I can't pass language parameter in query, I can't get localized 
instructions.
I was testing on Qt 5.10 and 5.11.0 on Linux 64Bit 
Can someone help please ?

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


[Interest] how do I tell cmake that I need libQt5PositioningQuick.so

2018-07-10 Thread Dirk Hohndel
When upgrading to Qt 5.11 we ran into an odd problem when packaging our app... 
we seem to be missing a dependency for libQt5PositioningQuick.so (or 
QtPositioningQuick.framework on Mac). What's odd is that this worked perfectly 
fine with Qt 5.10 - so nothing from our side has changed.

I'd love to hear if there's a magic incantation I could tell cmake to make sure 
that library is bundled.

Thanks

/D

PS: all this is for Subsurface and I'm happy to provide tons of details - but 
instead of drowning you in output, maybe this makes it easier for someone to 
spot what we need to do. Please let me know if you'd rather have the nitty 
gritty...
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest