11 Replies Latest reply on Feb 4, 2014 1:47 PM by Alexey Tikhvinsky

    After upgrading to RMS 4.0 and rhodes 4.0.0 and ruby 1.9.3 ..unable to build for android

    Shri Potdar

      Hi,

       

      Everything was working before I upgraded RMS4.0, Rhodes 4.0.0, Ruby 1.9.3 and xcode 5.0.2.

      Now I am unable to build for Android and can not build using Xcode

      Keep getting following error for Android ... am I missing anything.

       

      Thanks

       

      Shri.

       

       

       

      Android Error

       

      -------------------------------

       

      cp /Library/Ruby/Gems/1.8/gems/rhodes-4.0.0/res/libs/motorolalicence/android/libMotorolaLicence.a /Users/shrip/Desktop/GIVEBLDv1.2.6/bin/target/android/release/librhodes/libMotorolaLicence.a

       

      --------------------------------------------------------------------------------

      /Applications/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc -shared -Wl,--no-whole-archive -Wl,--no-undefined -Wl,-z,defs -fPIC -Wl,-soname,librhodes.so --sysroot /Applications/android-ndk-r9c/platforms/android-19/arch-arm -o

      .

      .

      .

      L"/Users/shrip/Desktop/GIVEBLDv1.2.6/bin/target/android/release/ruby" -L"/Users/shrip/Desktop/GIVEBLDv1.2.6/bin/target/android/release/sqlite" -lsqlite -lsqlite -lruby -lsqlite -lruby -lrhosync -lsqlite -lruby -lrhosync -lrhomain -lsqlite -lruby -lrhosync -lrhomain -lrholog -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lgcm-push -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lgcm-push -lcoreapi -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lgcm-push -lcoreapi -lcurl -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lgcm-push -lcoreapi -lcurl -llog -ldl -lz -L/Applications/android-ndk-r9c/sources/cxx-stl/stlport/libs/armeabi -L/Applications/android-ndk-r9c/tmp/ndk-digit/build/install/sources/cxx-stl/stlport/libs/armeabi -lstlport_static -L/Applications/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib -Wl,-rpath-link=/Applications/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib /Applications/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib/libstdc++.so /Applications/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/libgcc.a /Applications/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib/libc.so /Applications/android-ndk-r9c/platforms/android-19/arch-arm/usr/lib/libm.so

      /Applications/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/shrip/Desktop/GIVEBLDv1.2.6/bin/tmp/librhodes/mapview.cpp.o: in function mapview_close:platform/android/Rhodes/jni/src/mapview.cpp:811: error: undefined reference to 'google_mapview_close'

      /Applications/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/shrip/Desktop/GIVEBLDv1.2.6/bin/tmp/librhodes/mapview.cpp.o: in function mapview_create:platform/android/Rhodes/jni/src/mapview.cpp:862: error: undefined reference to 'google_mapview_create'

      /Applications/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/shrip/Desktop/GIVEBLDv1.2.6/bin/tmp/librhodes/mapview.cpp.o: in function mapview_state_started:platform/android/Rhodes/jni/src/mapview.cpp:880: error: undefined reference to 'google_mapview_state_started'

      /Applications/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/shrip/Desktop/GIVEBLDv1.2.6/bin/tmp/librhodes/mapview.cpp.o: in function mapview_state_center_lat:platform/android/Rhodes/jni/src/mapview.cpp:893: error: undefined reference to 'google_mapview_state_center_lat'

      /Applications/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: /Users/shrip/Desktop/GIVEBLDv1.2.6/bin/tmp/librhodes/mapview.cpp.o: in function mapview_state_center_lon:platform/android/Rhodes/jni/src/mapview.cpp:908: error: undefined reference to 'google_mapview_state_center_lon'

      collect2: ld returned 1 exit status

      ********* NOTE: You use sdk parameter in build.yml !****************

      To use latest Rhodes gem, run migrate-rhodes-app in application folder or comment sdk in build.yml.

      ************************************************************************

      -------------------------------