Advertisement
Guest User

Configure command 5.1 qt static build

a guest
May 31st, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. The configure command:
  2.  
  3. ./configure -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/imre/android/android-ndk-r8e-ma-linux-x86_64 -android-sdk /home/imre/android/adt-bundle-linux-x86_64-20130219/sdk -android-ndk-host linux-x86_64 -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -static -confirm-license
  4.  
  5. After the configure was finished successfully I tried to build it and received the next error:
  6.  
  7. make[3]: Entering directory `/home/imre/qt5.1/repo/qt5_normal_static_02/qtdeclarative/tools/qmlscene'
  8. /home/imre/android/android-ndk-r8e-ma-linux-x86_64/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/home/imre/android/android-ndk-r8e-ma-linux-x86_64/platforms/android-9/arch-arm/ -Wl,-soname,libqmlscene.so -Wl,-rpath-link=/home/imre/qt5.1/repo/qt5_normal_static_02/qtbase/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o /home/imre/qt5.1/repo/qt5_normal_static_02/qtbase/bin/libqmlscene.so .obj/debug-static/main.o .obj/debug-static/libqmlscene.so_plugin_import.o   -L/home/imre/android/android-ndk-r8e-ma-linux-x86_64/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a -L/home/imre/android/android-ndk-r8e-ma-linux-x86_64/platforms/android-9/arch-arm//usr/lib -L/home/imre/qt5.1/repo/qt5_normal_static_02/qtbase/lib -lQt5Quick -lQt5Qml -lQt5V8 -lQt5Widgets -lQt5Network -lQt5Gui -lEGL -lQt5Core -lgnustl_shared -lsupc++ -llog -lc -lgcc -lz -lm -ldl -lqandroid -lGLESv2
  9. /home/imre/android/android-ndk-r8e-ma-linux-x86_64/toolchains/arm-linux-androideabi-4.7/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.7/../../../../arm-linux-androideabi/bin/ld: cannot find -lqandroid
  10. collect2: error: ld returned 1 exit status
  11.  
  12. After an investigation, I modified the configure script:
  13. diff --git a/configure b/configure
  14. index aa840cb..4e17848 100755
  15. --- a/configure
  16. +++ b/configure
  17. @@ -6473,7 +6473,7 @@ QT_NAMESPACE = $QT_NAMESPACE
  18. EOF
  19.  
  20. if [ "$CFG_SHARED" = "no" ]; then
  21. - echo "QT_DEFAULT_QPA_PLUGIN = q$QT_QPA_DEFAULT_PLATFORM" >> "$QTCONFIG.tmp"
  22. + #echo "QT_DEFAULT_QPA_PLUGIN = q$QT_QPA_DEFAULT_PLATFORM" >> "$QTCONFIG.tmp"
  23. echo >> "$QTCONFIG.tmp"
  24. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement