Getting QT apps running.
Timo Jyrinki
timo.jyrinki at canonical.com
Fri Jul 29 07:14:12 UTC 2016
Changing qt5conf to desktop/qt5 and qt5-launch to desktop-launch does
not help in ipe's case it seems, even though it gets rid of a few
warnings.
The problem is with the IPE_PREFIX that ipe requires to be set, and
I'm also unable to find a combination that would allow ipe to build
(../../../install works) and ipe to find its main.lua file from the
correct directory.
It seemed useful to remove the "bin/" prefix though after the changes.
-Timo (snapcraft newbie, testing because Qt mentioned)
On Thu, Jul 28, 2016 at 10:18 PM, Michael Hall <mhall119 at ubuntu.com> wrote:
> "qt5conf" has been replaced be the newer "desktop/qt5" part and
> "qt5-launch" replaced by "desktop-launch" in the command. These new
> desktop launchers have fixed a lot of the common problems that the
> original qt5conf and gtk-equiqalents ran into.
>
>
> Michael Hall
> mhall119 at ubuntu.com
>
> On 07/28/2016 02:34 PM, Dietmar Winkler wrote:
>> Hi,
>>
>> thanks. That let me start the app ... almost. I'm now getting:
>>
>> $ ipe
>> Qt: Session management error: None of the authentication protocols
>> specified are supported
>> QGtkStyle could not resolve GTK. Make sure you have installed the
>> proper libraries.
>> [string "require "main""]:1: module 'main' not found:
>> no field package.preload['main']
>> no file '../../../install/share/ipe/7.2.5/lua/main.lua'
>> no file '/usr/local/lib/lua/5.2/main.so'
>> no file '/usr/lib/x86_64-linux-gnu/lua/5.2/main.so'
>> no file '/usr/lib/lua/5.2/main.so'
>> no file '/usr/local/lib/lua/5.2/loadall.so'
>> no file './main.so'
>> stack traceback:
>> [C]: in function 'require'
>> [string "require "main""]:1: in main chunk
>>
>>
>>
>> On 28 July 2016 at 20:21, Kyle Fazzari <kyle.fazzari at canonical.com> wrote:
>>> On 07/28/2016 11:05 AM, Dietmar Winkler wrote:
>>>> Hi,
>>>>
>>>> when trying to run this "ipe" qt app I got the error message:
>>>> $ ipe
>>>> This application failed to start because it could not find or load the
>>>> Qt platform plugin "xcb".
>>>>
>>>> I found out that I need to include the libqt5gui5 package as stage
>>>> package (just like in the hello-world-desktop example, But even though
>>>> I added it to my yaml file I still get the same error message.
>>>>
>>>> https://github.com/dietmarw/snaps/blob/master/ipe/snapcraft.yaml#L44
>>>> (I'm actually not sure if I really need the "after: [qt5conf]" part.)
>>>>
>>>> So what else am I missing?
>>>
>>> The problem is that your application isn't looking in the right place
>>> for the platform plugins. That's where the qt5conf part comes in handy--
>>> it includes a launcher script to set that environment for you.
>>>
>>> You need to use the launcher from the qt5conf part in order to launch
>>> the app.
>>>
>>> apps:
>>> ipe:
>>> command: bin/ipe
>>>
>>> Needs to be:
>>>
>>> apps:
>>> ipe:
>>> command: qt5-launch bin/ipe
>>>
>>> And so on.
>>>
>>> --
>>> Kyle Fazzari (kyrofa)
>>> Software Engineer
>>> Canonical Ltd.
>>> kyle at canonical.com
>>>
>>>
>>> --
>>> Snapcraft mailing list
>>> Snapcraft at lists.snapcraft.io
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
>>>
>>
>>
>>
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
More information about the Snapcraft
mailing list