[Interest] [Solved] First Time Android Woes (internet and qrc issues)

Jason H jhihn at gmx.com
Sat Dec 6 05:59:57 CET 2014



> Sent: Friday, December 05, 2014 at 1:45 PM
> From: "Jason H" <jhihn at gmx.com>
> To: "Jason H" <jhihn at gmx.com>
> Cc: "interest at qt-project.org" <interest at qt-project.org>
> Subject: Re: [Interest] First Time Android Woes (internet and qrc issues)
>
> 
> 
> > Sent: Friday, December 05, 2014 at 1:35 PM
> > From: "Jason H" <jhihn at gmx.com>
> > To: "interest at qt-project.org" <interest at qt-project.org>
> > Subject: [Interest] First Time Android Woes (internet and qrc issues)
> >
> > I developed my QML application on my PC, and switched it over to Android. Everything works as expected on the PC. Qt 5.3.0 Android KitKat
> > 
> > For android, first issue:
> > I created a manifest, and added the permissions I needed, including the INTERNET one. 
> > D/Qt      ( 3331): qrc:///ajax.js:13 (): qml: REQUEST 1
> > D/Qt      ( 3331): qrc:///ajax.js:17 (get): qml: GET 
> > D/Qt      ( 3331): qrc:///ajax.js:10 (): qml: Status: 0, Status Text: 
> > D/Qt      ( 3331): qrc:///ajax.js:13 (): qml: REQUEST 4
> > 
> > Where the number after REQUEST is the readystate of the request. 
> > 
> > Second issue:
> > I have art in my qrc. It works fine on PC, but then I get:
> > QSupportedWritingSystems*)): FT_New_Face failed with index 0 : 90
> > W/Qt      ( 3331): qrc:///Location.qml:38 ((null)): qrc:///Location.qml:38:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-01.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-07.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-06.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-05.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-08.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-04.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-02.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-01.svg
> > W/Qt      ( 3331): qrc:///ImageSelect.qml:13 ((null)): qrc:///ImageSelect.qml:13:2: QML Image: Invalid image data: qrc:///SVG/homunculus/body-03.svg
> > W/Qt      ( 3331): qrc:///MyCanvas.qml:80 ((null)): qrc:///MyCanvas.qml:80:3: QML Image: Invalid image data: qrc:///SVG/circle_delete.svg
> > W/Qt      ( 3331): qrc:///MyCanvas.qml:80 ((null)): qrc:///MyCanvas.qml:80:3: QML Image: Invalid image data: qrc:///SVG/circle_delete.svg
> > W/Qt      ( 3331): qrc:///LoginScreen.qml:25 ((null)): qrc:///LoginScreen.qml:25:3: QML Image: Invalid image data: qrc:///SVG/logo-mobile.svg
> > 
> > These seem like they should be simple? Any help is appreciated!
> 
> Ok, ignore the 2nd issue, it's because I need the SVG and XML dependencies. Internet issue remains
> 

Issue 1: I had a DNS alias onthe network but not the mobile network.
Issue 1: I had to add network to the QT= line in the .pro

Issue 2: needed to add QSVG plugin and XML module deps to the .pro



More information about the Interest mailing list