Hi,
I have found the reason for the failing linker call.
In my environment CC, LD, etc. were declared as read only variables.
Therefore the cross compile environment in the linux_device_pre.conf cannot be setuped correctly.
linux_device_pre.conf : QMAKE_LINK = $${QMAKE_CXX}
This means Qt calls normally the linker with the g++ frontend and not directly ld.
Now a lot of headers files were not found and I have to add the Qt include directories to the configure call.
For example why I have to add "-I include/QtCore" to the configure call?
It is part of the Qt framework.
Falcon83
[Solved]
I am not sure why this it works.
My iOS app folder is named TSR.app.
My app folder contained a Contents/MacOS/ folder ( I build this app for both iOS and OSX)
The fix was to copy the following two files from the application folder root into the subfolder named /Contents/MacOS as shown in the tree below.
Info.plist
PkgInfo
Here is what my Qt5.2 build directory looked like.
@
build-tsr-iphoneos_clang_Qt_5_2_1_for_iOS-Debug
├── Debug-iphonesimulator
└── TSR.app
├── Contents
│ ├── Info.plist
│ ├── MacOS
│ └── PkgInfo
├── Default-568h@2x.png
├── Info.plist
├── PkgInfo
└── TSR
@
[quote author="gabrieltb" date="1406310520"]I apologize for my lazy answer. What I meant is that you can try using relative values for width and height.
@width: Screen.width
height: Screen.height@
Also, take a look "here":http://qt-project.org/doc/qt-5/scalability.html
You'll find a section talking about screen orientation.[/quote]
Worked!
Thank you so much budd :)
Hi,
IIRC you need to add
@QT += gui@
to your pro file.
It might look counter intuitive but currently the platform plugin containing all the low level stuff that is needed is there.
Success!! I have a Qt 5.3.1 "hello world" widget app finally running on an Android simulator.
In summary, do not bother with developing under Ubuntu 64-bit. I expect it could be made to work but not worth the effort to me.
Qt Android Development Environment:
Ubuntu Gnome 14.04 32-bit ( I failed using 64-bit Ubuntu )
Qt 5.3.1
JDK: /usr/lib/jvm/java-6-openjdk-i386 ( Do not use Java 7 )
SDK: /home/edward/android/adt-bundle-linux-x86-20140702/sdk
NDK: /home/edward/android/android-ndk-r10
After installing all package updates I added one additional SDK.
Eclipse->Android SDK Manager:
Android 3.2 (API 13)->SDK Platform Installed
Android simulators are a pain. The default settings often will not work. They are slow and cumbersome.
Simulator Settings;
AVD: nexus7-api-20armeabi-v7a
** Target: Android 4.4W - API Level 20
** Android Wear ARM (aremabi-v7a)
Hardware keyboard
** Skin: No Skin
** RAM: 1024 ( If I made any bigger the simulator would not run )
** VM Heap: 32
** Internal Storage: 200 MiB
** SD Card: Size: 1024 MiB
** Enmlation Options: (none)
I thought I would try Qt 5.3.1 once again. This time when I installed, I did not try selecting Android x86 or Android armv5 as doing so seemed to break the Qt 5.3.1 installer under Ubuntu 64-bit. This may have been due to a missing 32-bit dependency under Ubuntu 64-bit. Anyway all I wanted was the default gcc and Android armv7 anyway
qt-opensource-linux-x86-android-5.3.1.run
I no longer needed to manually add the following build environment variable fro my Qt project:
ANDROID_TARGET_ARCH
There is nothing Android specific in my Qt project file. I also removed the INCLUDEPATH and LIBS from my Qt project file:
@
#INCLUDEPATH += $$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/$$(ANDROID_NDK_TOOLCHAIN_VERSION)/libs/armeabi-v7a/include
#LIBS += -L$$(ANDROID_NDK_ROOT)/sources/cxx-stl/gnu-libstdc++/$$(ANDROID_NDK_TOOLCHAIN_VERSION)/libs/armeabi
@
I hope this may help some other Android newbie.
-Ed
[quote author="SGaist" date="1406240153"]Hi and welcome to devnet,
AFAIK, no. However I'd advise you to also post that question of the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented)[/quote]
Thank you, SGaist, I'll try.
Nice you found out and thanks for sharing.
Can you also please update the thread title prepending [solved] so other forum users may know a solution has been found :)
Hi and welcome to devnet,
The text has moved, search for "Rendering SVG files" and you'll find it again. However it has not changed.
IIRC, If you want a full-blown svg parser you would need to use QtWebKit