10 Replies Latest reply on Jan 8, 2014 1:17 PM by Glenn Sayer

    Failed android build of app with barcode extension

    3ceecfa5-a35a-4be1-b17d-3c4db67f65e6

      Hello,

      I have migrated my app from RMS 3.5 to RMS 4.0. The app includes the barcode extension. It used to build without issues on RMS 3.5.

      Now the build is failing on barcode extension. This is the end of build log:

       

      PWD: C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0

      C:/Android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe -shared -Wl,--no-whole-archive -Wl,--no-undefined -Wl,-z,defs -fPIC -Wl,-soname,librhodes.so --sysroot C:/Android/android-ndk-r9b/platforms/android-16/arch-arm -o "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/librhodes/lib/armeabi/librhodes.so" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/RhoClassFactory.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/JNIRhoRuby.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/JNIRhoJS.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/bluetooth.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/callbacks.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/camera.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/datetimepicker.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/event.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/fileapi.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/geolocation.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/logconf.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/logger.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/mapview.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/nativebar.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/nativeview.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/navbar.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/phonebook.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/rhoconf.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/rhodes.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/rhodesapp.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/rhodessystem.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/ringtones.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/signature.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/socketimpl.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/splashscreen.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/sslimpl.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/webview.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/rhocryptimpl.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/extmanager.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/MethodExecutorJni.cpp.o" "C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/tmp/librhodes/MethodResultJni.cpp.o" -L"C:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0/platform/android/bin/release" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/librhodes/lib/armeabi" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/curl" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/coreapi" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/digest" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/digest-md5" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/digest-sha1" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/digest-sha2" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/openssl" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/openssl.so" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/zlib" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/json" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/librhodes" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/rhocommon" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/rhodb" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/rholog" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/rhomain" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/rhosync" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/ruby" -L"C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/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 -lzlib -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -ldigest-sha1 -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -ldigest-sha1 -ldigest-md5 -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -ldigest-sha1 -ldigest-md5 -ldigest -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -ldigest-sha1 -ldigest-md5 -ldigest -lcoreapi -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -ldigest-sha1 -ldigest-md5 -ldigest -lcoreapi -lbarcode -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -ldigest-sha1 -ldigest-md5 -ldigest -lcoreapi -lbarcode -lcurl -lsqlite -lruby -lrhosync -lrhomain -lrholog -lrhodb -lrhocommon -lMotorolaLicence -ljson -lzlib -lopenssl.so -lopenssl -ldigest-sha2 -ldigest-sha1 -ldigest-md5 -ldigest -lcoreapi -lbarcode -lcurl -llog -ldl -lz -LC:/Android/android-ndk-r9b/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi -lgnustl_static -LC:/Android/android-ndk-r9b/platforms/android-16/arch-arm/usr/lib -Wl,-rpath-link=C:/Android/android-ndk-r9b/platforms/android-16/arch-arm/usr/lib C:/Android/android-ndk-r9b/platforms/android-16/arch-arm/usr/lib/libc.so C:/Android/android-ndk-r9b/platforms/android-16/arch-arm/usr/lib/libm.so

      [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::getObject(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::jniInit(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::jniInit(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::jniInit(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function std::priv::_String_base<char, std::allocator<char> >::_M_throw_length_error() const:C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string.c:600: error: undefined reference to 'std::__stl_throw_length_error(char const*)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function std::priv::_String_base<char, std::allocator<char> >::_M_allocate_block(unsigned int):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function std::string::_M_append(char const*, char const*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_js_wrap.cpp.o): in function js_s_Barcode_getDefault(std::string const&, rho::json::CJSONArray&, std::string const&, std::string const&, std::string const&):C:/workspaces/dev_rhoelements_gem/rhodes/platform/shared/api_generator/MethodResult.h:55: error: undefined reference to 'rho::apiGenerator::CMethodResult::convertToType(rho::apiGenerator::CMethodResult::ETypes)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_js_wrap.cpp.o): in function js_s_Barcode_getDefaultID(std::string const&, rho::json::CJSONArray&, std::string const&, std::string const&, std::string const&):C:/workspaces/dev_rhoelements_gem/rhodes/platform/shared/api_generator/MethodResult.h:55: error: undefined reference to 'rho::apiGenerator::CMethodResult::convertToType(rho::apiGenerator::CMethodResult::ETypes)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_js_wrap.cpp.o): in function std::string::_M_reserve(unsigned int):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

      [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_ruby_wrap.cpp.o): in function std::vector<unsigned long, std::allocator<unsigned long> >::vector<unsigned long*>(unsigned long*, unsigned long*, std::allocator<unsigned long> const&):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

      [0mcollect2: ld returned 1 exit status

      ********* WARNING *****************************************************************************************************

      The following extensions do not have JavaScript API:

      zlib

      digest

      digest-md5

      digest-sha1

      digest-sha2

      openssl

      Use RMS 4.0 extensions to provide JavaScript API

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

       

      I will appreciate your help.

        • Re: Failed android build of app with barcode extension
          Glenn Sayer

          Did you include the rhoapi-modules.js file?

            • Re: Failed android build of app with barcode extension
              3ceecfa5-a35a-4be1-b17d-3c4db67f65e6

              Yes the project includes rhoapi-modules.js file in public\api folder. I do not use javascript api. I only use ruby api.

                • Re: Failed android build of app with barcode extension
                  Glenn Sayer

                  can you provide a code snippet of your barcode code?

                    • Re: Failed android build of app with barcode extension
                      3ceecfa5-a35a-4be1-b17d-3c4db67f65e6

                      Glenn, the issue is at build stage. So we can not look into source code yet.

                        • Re: Failed android build of app with barcode extension
                          Glenn Sayer

                          I don't understand. You have some code that you are trying to import into RSM 4.0 and build?  Did you import the code into 4.0?  Did you do anything to the code after the migration?  If not then you might want to look at Rhomobile | Migrating your RhoMobile application to 4.0

                          Once you do this then repost what your findings are.

                            • Re: Failed android build of app with barcode extension
                              3ceecfa5-a35a-4be1-b17d-3c4db67f65e6

                              I am building an app on RMS 4.0. The app uses barcode so I have included barcode extension (or added app_type: rhoelements) in build.yml. The app does not build with barcode extension nor with app_type rhoelements. If I remove the barcode extension the build works fine. In my post I have included the build log which shows some reference issues in rhodes and I do not know what is causing those problems. I have highlighted the errors below :

                               

                              C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::getObject(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::jniInit(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::jniInit(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function rho::CBarcodeBase::jniInit(_JNIEnv*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function std::priv::_String_base<char, std::allocator<char> >::_M_throw_length_error() const:C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_string.c:600: error: undefined reference to 'std::__stl_throw_length_error(char const*)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function std::priv::_String_base<char, std::allocator<char> >::_M_allocate_block(unsigned int):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(Barcode.cpp.o): in function std::string::_M_append(char const*, char const*):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_js_wrap.cpp.o): in function js_s_Barcode_getDefault(std::string const&, rho::json::CJSONArray&, std::string const&, std::string const&, std::string const&):C:/workspaces/dev_rhoelements_gem/rhodes/platform/shared/api_generator/MethodResult.h:55: error: undefined reference to 'rho::apiGenerator::CMethodResult::convertToType(rho::apiGenerator::CMethodResult::ETypes)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_js_wrap.cpp.o): in function js_s_Barcode_getDefaultID(std::string const&, rho::json::CJSONArray&, std::string const&, std::string const&, std::string const&):C:/workspaces/dev_rhoelements_gem/rhodes/platform/shared/api_generator/MethodResult.h:55: error: undefined reference to 'rho::apiGenerator::CMethodResult::convertToType(rho::apiGenerator::CMethodResult::ETypes)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_js_wrap.cpp.o): in function std::string::_M_reserve(unsigned int):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

                              [0m [31mc:/android/android-ndk-r9b/toolchains/arm-linux-androideabi-4.6/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: C:/Users/guy/Dropbox/Projects/Barbados/Sources/Mobile/bin/target/android/release/extensions/barcode/libbarcode.a(barcode_ruby_wrap.cpp.o): in function std::vector<unsigned long, std::allocator<unsigned long> >::vector<unsigned long*>(unsigned long*, unsigned long*, std::allocator<unsigned long> const&):C:/bin/android-ndk/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'

                              [0mcollect2: ld returned 1 exit status

                            • Re: Failed android build of app with barcode extension
                              Pietro Francesco Maggi

                              Hi Guy,

                              can you share your build.yml configuration file?

                               

                              As Glen suggested, there are some changes needed to be made to this file moving from Rhodes v3.5 to v4.0.

                               

                              You can even generate a new empty project using v4.0 and use the build.yml file generated for the new project as a starting point for the one to use in you upgraded project.

                               

                              doing a

                              rake clean:android

                               

                              before rebuilding your project can then help to eliminates any previous pre-build package.

                               

                              ~Pietro

                                • Re: Failed android build of app with barcode extension
                                  3ceecfa5-a35a-4be1-b17d-3c4db67f65e6

                                  The app builds well without barcode extension but it fails when barcode extension is added. Here is my build.yml conf:

                                   

                                  name: "myapp"

                                  applog: "rholog.txt"

                                  version: "1.3.2"

                                  vendor: "mycompany"

                                  bbver: 5.0

                                  wm:

                                    extensions:

                                      - barcode

                                      - digest

                                      - digest-md5

                                      - digest-sha1

                                      - thread

                                      - digest-sha2

                                      - openssl.so

                                      - openssl

                                      - ezcrypto

                                    sdk: "Windows Mobile 6.5.3 Professional DTK (ARMV4I)"

                                    emulator: "Windows Mobile 6.5.3 Professional VGA Emulator"

                                    capabilities:

                                      - motorola_browser

                                  win32:

                                    extensions:

                                      - digest

                                      - digest-md5

                                      - digest-sha1

                                      - thread

                                      - digest-sha2

                                      - openssl.so

                                      - openssl

                                      - ezcrypto

                                  bb:

                                    extensions:

                                      - barcode

                                  android:

                                    version: "4.0.3"

                                    minSDK: 7

                                    android_title: 0

                                    extensions:

                                      - barcode

                                      - digest

                                      - digest-md5

                                      - digest-sha1

                                      - thread

                                      - digest-sha2

                                      - openssl.so

                                      - openssl

                                      - ezcrypto

                                    capabilities:

                                      - network_state

                                      - sdcard

                                      - native_browser

                                    emulator: "AVD403"

                                  wp:

                                    productid: "0440ff60-f45f-012f-e629-0018f30101b2"

                                  symbian:

                                    uid: 3962601049

                                  extensions:

                                    - json

                                    - validatable

                                    - uri

                                    - uuidtools

                                    - rhodes_translator

                                    - zlib

                                  capabilities:

                                    - camera

                                  obfuscate:

                                    js: true

                                    css: true

                                    exclude_dirs:

                                      - jqmobile

                                      - jqtouch

                                      - jquery

                                  excludedirs:

                                    bb:

                                      - "**/*.mp4"

                                    bb6:

                                      - "**/*.mp4"

                                    wm:

                                      - app/loading@*.png

                                      - app/loading-*.png

                                    android:

                                      - app/loading@*.png

                                      - app/loading-*.png

                                  win32:

                                      - app/loading@*.png

                                      - app/loading-*.png

                                    all:

                                      - public/ui

                                      - public/resources/icons

                                      - public/resources/startup

                                      - public/api

                                      - "**/*debug.js"

                                      - "**/*debug.css"

                                  motorola_license_company: "mycompany"

                                  motorola_license: "00000000"