Hello, and congratulations on the SDK.
I am having issues getting it to compile however. I think I may be
doing something very simple wrong.
I have completed the steps from the sourceforge wiki:
1. Setup Android SDK
2. How to install Necessitas SDK (5 minutes 3 click install)
3. Setup Qt Creator
4. How to write Qt apps for Android
Because they were in the manual install, I have not done the steps:
1. Compile Qt framework
2. Compile Qt creator
I started a new Mobile Application, followed the steps in "how to
write Qt apps for Android" and tried to compile but I got this output:
Running build steps for project TiernanAndroid1...
Starting: "/usr/bin/make" clean -w
make: Entering directory `/home/tiernankennedy/Downloads/Qt Android
Projects/TiernanAndroid1-build-android'
rm -f moc_mainwindow.cpp
rm -f ui_mainwindow.h
rm -f main.o mainwindow.o qtmain_android.o moc_mainwindow.o
rm -f *~ core *.core
make: Leaving directory `/home/tiernankennedy/Downloads/Qt Android
Projects/TiernanAndroid1-build-android'
The process "/usr/bin/make" exited normally.
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Entering directory `/home/tiernankennedy/Downloads/Qt Android
Projects/TiernanAndroid1-build-android'
/opt/necessitas/Android/4.7.60/bin/uic ../Tiernan-Android-1/
mainwindow.ui -o ui_mainwindow.h
/home/tiernankennedy/Downloads/android-ndk-r5b/toolchains/arm-linux-
androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -c -
Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fpic -mthumb -
ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -
DANDROID -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -
D__ARM_ARCH_5TE__ -Wa,--noexecstack -DQT_NO_QWS_TRANSFORMED -O0 -g -
fno-omit-frame-pointer -Wall -W -D_REENTRANT -DQT_GUI_LIB -
DQT_CORE_LIB -DQT_SHARED -I/opt/necessitas/Android/4.7.60/mkspecs/
android-g++ -I../Tiernan-Android-1 -I/opt/necessitas/Android/4.7.60/
include/QtCore -I/opt/necessitas/Android/4.7.60/include/QtGui -I/opt/
necessitas/Android/4.7.60/include -I. -I. -I../Tiernan-Android-1 -
I../../android-ndk-r5b/platforms/android-4/arch-arm/usr/include -
I../../android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/include -I../../
android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -I.
-o main.o ../Tiernan-Android-1/main.cpp
/home/tiernankennedy/Downloads/android-ndk-r5b/toolchains/arm-linux-
androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -c -
Wno-psabi -march=armv5te -mtune=xscale -msoft-float -fpic -mthumb -
ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -
DANDROID -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -
D__ARM_ARCH_5TE__ -Wa,--noexecstack -DQT_NO_QWS_TRANSFORMED -O0 -g -
fno-omit-frame-pointer -Wall -W -D_REENTRANT -DQT_GUI_LIB -
DQT_CORE_LIB -DQT_SHARED -I/opt/necessitas/Android/4.7.60/mkspecs/
android-g++ -I../Tiernan-Android-1 -I/opt/necessitas/Android/4.7.60/
include/QtCore -I/opt/necessitas/Android/4.7.60/include/QtGui -I/opt/
necessitas/Android/4.7.60/include -I. -I. -I../Tiernan-Android-1 -
I../../android-ndk-r5b/platforms/android-4/arch-arm/usr/include -
I../../android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/include -I../../
android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include -I.
-o mainwindow.o ../Tiernan-Android-1/mainwindow.cpp
../Tiernan-Android-1/mainwindow.cpp: In member function 'void
MainWindow::setOrientation(MainWindow::ScreenOrientation)':
../Tiernan-Android-1/mainwindow.cpp:55: error:
'WA_LockPortraitOrientation' is not a member of 'Qt'
../Tiernan-Android-1/mainwindow.cpp:58: error:
'WA_LockLandscapeOrientation' is not a member of 'Qt'
../Tiernan-Android-1/mainwindow.cpp:62: error: 'WA_AutoOrientation' is
not a member of 'Qt'
make: Leaving directory `/home/tiernankennedy/Downloads/Qt Android
Projects/TiernanAndroid1-build-android'
make: *** [mainwindow.o] Error 1
The process "/usr/bin/make" exited with code 2.
Error while building project TiernanAndroid1 (target: Android)
When executing build step 'Make'
What am I doing wrong here? Help very much appreciated!!
Thanks,
Tiernan
On Feb 22, 2:31 am, BogDan Vatra <
taipanroma...@gmail.com> wrote:
> Hi Eric,
>
> Yes is possible ONLY from QtCreator, but you must have checked "Use
> local qt libs", actually "Deploy local qt libs" and "Use local qt
> libs" are specially made for Qt framework hackers, so if you have "Use
> local qt libs" option checked, QtCreator will pass a special parameter
> to you application and will force it to use local qt libs. Also if you
> don't have Android Market on your device/emulator you can download and
> install Ministro package using "Install Ministro system wide ..."
> option or manually. If Ministro is installed on your system your
> application will use it.
>
> For more informations please checkhttp://
sourceforge.net/p/necessitas/wiki/How%20to%20write%20Qt%20apps...
> .
>
> Cheers.
> BogDan.
>
> 2011/2/22 eric MONROSE <
eric.monr...@gmail.com>: