I am having difficulty compiling Android in OS X Mavericks 10.9.3. I have made no changes to the source.
Initializing the build environment, I do:
repo init -b master
repo sync
repo forall -vc "git reset --hard"
lunch vbox_x86-eng
And the result of make is: http://pastebin.com/nk0Sudgx
I get lots of undefined references for something called WebCore
target SharedLib: libwebviewchromium (out/target/product/vbox_x86/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so)
/Volumes/Android/prebuilts/gcc/darwin-x86/x86/x86_64-linux-android-4.8/bin/../lib/gcc/x86_64-linux-android/4.8/../../../../x86_64-linux-android/bin/ld.gold: warning: hidden symbol 'SkBitmap::lockPixels() const' in out/target/product/vbox_x86/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO out/target/product/vbox_x86/obj/lib/libjnigraphics.so
out/target/product/vbox_x86/obj/GYP/shared_intermediates/blink/bindings/V8WebGLRenderingContext.cpp:2811: error: undefined reference to 'WebCore::WebGLRenderingContextBase::useProgram(WebCore::WebGLProgram*)'
[ ... ]
out/target/product/vbox_x86/obj/GYP/shared_intermediates/blink/bindings/V8WebGLRenderingContext.cpp:1543: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getShaderPrecisionFormat(unsigned int, unsigned int)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:471: error: undefined reference to 'WebCore::WebGLRenderingContextBase::isContextLost() const'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:788: error: undefined reference to 'WebCore::WebGLRenderingContextBase::uniformMatrix4fv(WebCore::WebGLUniformLocation const*, unsigned char, WTF::Float32Array*)'
[ ... ]
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:410: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getParameter(unsigned int)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:434: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getProgramParameter(WebCore::WebGLProgram*, unsigned int)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:464: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getShaderParameter(WebCore::WebGLShader*, unsigned int)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:516: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getUniform(WebCore::WebGLProgram*, WebCore::WebGLUniformLocation const*)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:299: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getBufferParameter(unsigned int, unsigned int)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:309: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getVertexAttrib(unsigned int, unsigned int)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:302: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getRenderbufferParameter(unsigned int, unsigned int)'
external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:305: error: undefined reference to 'WebCore::WebGLRenderingContextBase::getTexParameter(unsigned int, unsigned int)'
external/chromium_org/third_party/WebKit/Source/core/html/canvas/ANGLEInstancedArrays.cpp:75: error: undefined reference to 'WebCore::WebGLRenderingContextBase::drawArraysInstancedANGLE(unsigned int, int, int, int)'
external/chromium_org/third_party/WebKit/Source/core/html/canvas/ANGLEInstancedArrays.cpp:83: error: undefined reference to 'WebCore::WebGLRenderingContextBase::drawElementsInstancedANGLE(unsigned int, int, unsigned int, long long, int)'
external/chromium_org/third_party/WebKit/Source/core/html/canvas/ANGLEInstancedArrays.cpp:91: error: undefined reference to 'WebCore::WebGLRenderingContextBase::vertexAttribDivisorANGLE(unsigned int, unsigned int)'
external/chromium_org/third_party/WebKit/Source/core/html/canvas/OESVertexArrayObject.cpp:63: error: undefined reference to 'WebCore::WebGLRenderingContextBase::addContextObject(WebCore::WebGLContextObject*)'
external/chromium_org/third_party/WebKit/Source/core/html/canvas/WebGLVertexArrayObjectOES.cpp:57: error: undefined reference to 'WebCore::WebGLContextObject::~WebGLContextObject()'
external/chromium_org/third_party/WebKit/Source/core/html/canvas/WebGLVertexArrayObjectOES.cpp:43: error: undefined reference to 'WebCore::WebGLContextObject::WebGLContextObject(WebCore::WebGLRenderingContextBase*)'
out/target/product/vbox_x86/obj/STATIC_LIBRARIES/third_party_WebKit_Source_core_webcore_html_gyp_intermediates/third_party_WebKit_Source_core_webcore_html_gyp.a(WebGLVertexArrayObjectOES.o):WebGLVertexArrayObjectOES.cpp:vtable for WebCore::WebGLVertexArrayObjectOES: error: undefined reference to 'WebCore::WebGLContextObject::getAWebGraphicsContext3D() const'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/vbox_x86/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
It looks like a linker error, but I do not know the cause. Any ideas?
The reason might be the fact that you don't have enough Ram Space Here is a thread from the XDA (http://forum.xda-developers.com/showthread.php?t=2585207) try increasing the Ram if you are on a VM or create a Linux-Swap Partition also make sure you selected xcode-5.0.2 for that download Xcode 5 from the Developer.appple.com and then place it in your application folder as Xcode-5.0.2.app and then run
sudo xcode-select --switch /Applications/Xcode-5.0.2.app/Contents/Developer/
Related
I encountered below errors when I tred to call hidl APIs in native code, does any one can help to provide solution of these errors:
system/core/libutils/include/utils/StrongPointer.h:168: error: undefined reference to 'android::RefBase::decStrong(void const*) const'
system/core/libutils/include/utils/StrongPointer.h:169: error: undefined reference to 'android::sp_report_race()'
system/core/libutils/include/utils/StrongPointer.h:189: error: undefined reference to 'android::RefBase::decStrong(void const*) const'
system/core/libutils/include/utils/StrongPointer.h:190: error: undefined reference to 'android::sp_report_race()'
"LOCAL_SHARED_LIBRARIES += libutils" should be added into Android.mk
I have compiled FFmpeg with libx264(as static library) for Android successfully. But I want to use libx265(as static library) in FFmpeg on Android, too. So I have made some attempts:
First, I fixed libx265's log2 function and posix_memalign function not found problems by changing them into log(use log to approximate log2) function and memalign(to replace posix_memalign and do some adjustments) function. And fixed the pthread-linking problem by removing "-lpthread" in the cmakelist.txt file.
Then, I used cmake and make to compile libx265(as static library) successfully.
I enabled libx265 while FFmpeg configure. But when the configure ran, it showed "libx265 not found using pkg-config" on the screen.
I checked the config.log, and found these error message:
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(bitstream.cpp.o):bitstream.cpp:typeinfo for x265::BitInterface: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(bitstream.cpp.o):bitstream.cpp:typeinfo for x265::Bitstream: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(encoder.cpp.o):encoder.cpp:typeinfo for x265::SEIDecodedPictureHash: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(encoder.cpp.o):encoder.cpp:typeinfo for x265::SEIuserDataUnregistered: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(encoder.cpp.o):encoder.cpp:typeinfo for x265::SEIMasteringDisplayColorVolume: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(threading.cpp.o):threading.cpp:typeinfo for x265::Thread: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(wavefront.cpp.o):wavefront.cpp:typeinfo for x265::JobProvider: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(slicetype.cpp.o):slicetype.cpp:typeinfo for x265::BondedTaskGroup: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(frameencoder.cpp.o):frameencoder.cpp:function x265::FrameEncoder::encodeSlice(): error: undefined reference to '__dynamic_cast'
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(frameencoder.cpp.o):frameencoder.cpp:function x265::FrameEncoder::encodeSlice(): error: undefined reference to '__dynamic_cast'
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(frameencoder.cpp.o):frameencoder.cpp:function x265::FrameEncoder::processRowEncoder(int, x265::ThreadLocalData&): error: undefined reference to '__dynamic_cast'
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(frameencoder.cpp.o):frameencoder.cpp:function .LTHUNK2: error: undefined reference to '__dynamic_cast'
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(frameencoder.cpp.o):frameencoder.cpp:typeinfo for x265::FrameEncoder: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
/home/user/ffmpeg-2.8.1/android/arm/lib/libx265.a(sei.cpp.o):sei.cpp:typeinfo for x265::SEI: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
/home/user/ffmpeg-2.8.1/android/arm/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: the vtable symbol may be undefined because the class is missing its key function
How should I do to fix it?
I found the solution.
I need to add the 「libgnustl_static.a」's path to the gcc/g++ as parameters manually. After do that, the compilation will be successful.
recently i just meet the error, and just as user3032481 said.
i modify the configure of ffmpeg as below.
--extra-libs="-lother_libs -L/Users/shutup/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi -lgnustl_static" \
i think,the reason is that x265 need c++ rtti feature,but android default libstdc++ do not contain it. so we need add libgnustl_static.a .
I'm new to Qt and now I'm using Qt creator to develop android application in Win7 OS.
The problem is when I try to call function in the .a library provided by an external company, there are undefined reference errors.
I've already told him my ndk revision and android cpu architecture, and then he re-compiled and gave me this .a file.
My Qt version is Qt 5.3.2 for Android, and the ndk is r10d.
The error message:
D:/android/tools/android-ndk-r10/sources/cxx-stl/stlport/stlport/stl/_alloc.h:158: error: undefined reference to 'std::__node_alloc::_M_allocate(unsigned int&)'
D:/android/tools/android-ndk-r10/sources/cxx-stl/stlport/stlport/stl/_alloc.h:161: error: undefined reference to 'std::__node_alloc::_M_deallocate(void*, unsigned int)'
Makefile:79: recipe for target 'libuntitled.so' failed
D:/android/tools/android-ndk-r10/sources/cxx-stl/stlport/stlport/stl/_vector.h:41: error: undefined reference to 'std::__stl_throw_length_error(char const*)'
D:/android/tools/android-ndk-r10/sources/cxx-stl/stlport/stlport/stl/_vector.h:41: error: undefined reference to 'std::__stl_throw_length_error(char const*)'
D:/android/tools/android-ndk-r10/sources/cxx-stl/stlport/stlport/stl/_vector.h:41: error: undefined reference to 'std::__stl_throw_length_error(char const*)'
D:/android/tools/android-ndk-r10/sources/cxx-stl/stlport/stlport/stl/_vector.h:41: error: undefined reference to 'std::__stl_throw_length_error(char const*)'
collect2.exe: eooro: ld returned 1 exit status
The strange thing is that my ndk wasn't even installed in this directory!
Can any figure out why the errors occured?
Set up environment as guided. Had to manually install one dependancy, it removes xorg and ubuntu desktop for some reason when you do.
Installed all things, make version 3.82 so no threading crash, using ccache.
Ran into this crash, any ideas? Clean install, 4GB ram, quad core processor, "lunch aosp_arm-eng; make clean; make -j4":
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Install: out/target/product/generic/system/app/Email.apk
/home/codelion/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::lockPixels() const' in out/target/product/generic/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO out/target/product/generic/obj/lib/libjnigraphics.so
/home/codelion/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::unlockPixels() const' in out/target/product/generic/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO out/target/product/generic/obj/lib/libjnigraphics.so
/home/codelion/android/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld.gold: warning: hidden symbol 'SkBitmap::notifyPixelsChanged() const' in out/target/product/generic/obj/STATIC_LIBRARIES/skia_skia_library_gyp_intermediates/skia_skia_library_gyp.a(SkBitmap.o) is referenced by DSO out/target/product/generic/obj/lib/libjnigraphics.so
external/chromium_org/content/browser/renderer_host/media/media_stream_manager.cc:1451: error: undefined reference to 'media::FakeVideoCaptureDeviceFactory::FakeVideoCaptureDeviceFactory()'
external/chromium_org/content/browser/renderer_host/media/media_stream_manager.cc:1462: error: undefined reference to 'vtable for media::FileVideoCaptureDeviceFactory'
external/chromium_org/content/browser/service_worker/service_worker_database.cc:173: error: undefined reference to 'content::ServiceWorkerRegistrationData::ServiceWorkerRegistrationData()'
external/chromium_org/content/browser/service_worker/service_worker_database.cc:194: error: undefined reference to 'content::ServiceWorkerRegistrationData::~ServiceWorkerRegistrationData()'
external/chromium_org/content/browser/service_worker/service_worker_database.cc:125: error: undefined reference to 'content::ServiceWorkerRegistrationData::ServiceWorkerRegistrationData()'
external/chromium_org/content/browser/service_worker/service_worker_database.cc:138: error: undefined reference to 'content::ServiceWorkerRegistrationData::~ServiceWorkerRegistrationData()'
external/chromium_org/content/browser/service_worker/service_worker_database.cc:148: error: undefined reference to 'content::ServiceWorkerResourceRecord::ServiceWorkerResourceRecord()'
external/chromium_org/content/browser/service_worker/service_worker_database.cc:155: error: undefined reference to 'content::ServiceWorkerResourceRecord::~ServiceWorkerResourceRecord()'
external/chromium_org/content/common/gpu/media/android_video_encode_accelerator.cc:78: error: undefined reference to 'media::VideoEncodeAccelerator::~VideoEncodeAccelerator()'
external/chromium_org/content/common/gpu/media/video_decode_accelerator_impl.cc:11: error: undefined reference to 'media::VideoDecodeAccelerator::~VideoDecodeAccelerator()'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:294: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber(i18n::phonenumbers::PhoneNumber const&)'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:94: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber()'
out/target/product/generic/obj/GYP/shared_intermediates/protoc_out/third_party/libphonenumber/phonenumbers/phonenumber.pb.h:59: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::CopyFrom(i18n::phonenumbers::PhoneNumber const&)'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:94: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::~PhoneNumber()'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:242: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber()'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:162: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber()'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:162: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::~PhoneNumber()'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:183: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber()'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:183: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::~PhoneNumber()'
external/chromium_org/components/autofill/core/browser/phone_number_i18n.cc:211: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::~PhoneNumber()'
external/chromium_org/content/public/renderer/render_frame_observer.cc:28: error: undefined reference to 'content::RenderFrameImpl::RemoveObserver(content::RenderFrameObserver*)'
external/chromium_org/content/public/renderer/render_frame_observer.cc:21: error: undefined reference to 'content::RenderFrameImpl::AddObserver(content::RenderFrameObserver*)'
external/chromium_org/content/public/renderer/render_view_observer.cc:28: error: undefined reference to 'content::RenderViewImpl::RemoveObserver(content::RenderViewObserver*)'
external/chromium_org/content/public/renderer/render_view_observer.cc:21: error: undefined reference to 'content::RenderViewImpl::AddObserver(content::RenderViewObserver*)'
external/chromium_org/content/renderer/media/android/stream_texture_factory_synchronous_impl.cc:64: error: undefined reference to 'content::RenderThreadImpl::current()'
out/target/product/generic/obj/STATIC_LIBRARIES/content_content_app_both_gyp_intermediates/content_content_app_both_gyp.a(content_main_runner.o):content_main_runner.cc:function content::RunNamedProcessTypeMain(std::string const&, content::MainFunctionParams const&, content::ContentMainDelegate*)::kMainFunctions: error: undefined reference to 'content::RendererMain(content::MainFunctionParams const&)'
out/target/product/generic/obj/GYP/shared_intermediates/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h:1453: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::default_instance()'
external/stlport/stlport/stl/_pair.h:68: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::PhoneMetadata(i18n::phonenumbers::PhoneMetadata const&)'
external/chromium_org/third_party/protobuf/src/google/protobuf/repeated_field.h:335: error: undefined reference to 'i18n::phonenumbers::NumberFormat::NumberFormat()'
out/target/product/generic/obj/GYP/shared_intermediates/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h:1621: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::default_instance()'
out/target/product/generic/obj/GYP/shared_intermediates/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h:1579: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::default_instance()'
out/target/product/generic/obj/GYP/shared_intermediates/protoc_out/third_party/libphonenumber/phonenumbers/phonemetadata.pb.h:1663: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::default_instance()'
external/chromium_org/third_party/protobuf/src/google/protobuf/repeated_field.h:339: error: undefined reference to 'i18n::phonenumbers::NumberFormat::MergeFrom(i18n::phonenumbers::NumberFormat const&)'
external/stlport/stlport/stl/_pair.h:68: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::PhoneMetadata(i18n::phonenumbers::PhoneMetadata const&)'
external/stlport/stlport/stl/_pair.h:51: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::~PhoneMetadata()'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:674: error: undefined reference to 'i18n::phonenumbers::PhoneMetadataCollection::PhoneMetadataCollection()'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:725: error: undefined reference to 'i18n::phonenumbers::PhoneMetadataCollection::~PhoneMetadataCollection()'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:694: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::PhoneMetadata(i18n::phonenumbers::PhoneMetadata const&)'
external/stlport/stlport/stl/_pair.h:62: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::PhoneMetadata(i18n::phonenumbers::PhoneMetadata const&)'
external/stlport/stlport/stl/_pair.h:51: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::~PhoneMetadata()'
external/stlport/stlport/stl/_pair.h:51: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::~PhoneMetadata()'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:694: error: undefined reference to 'i18n::phonenumbers::PhoneMetadata::~PhoneMetadata()'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:1940: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::MergeFrom(i18n::phonenumbers::PhoneNumber const&)'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:2166: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber(i18n::phonenumbers::PhoneNumber const&)'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:2599: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber(i18n::phonenumbers::PhoneNumber const&)'
external/chromium_org/third_party/libphonenumber/src/phonenumbers/phonenumberutil.cc:2600: error: undefined reference to 'i18n::phonenumbers::PhoneNumber::PhoneNumber(i18n::phonenumbers::PhoneNumber const&)'
external/chromium_org/content/renderer/in_process_renderer_thread.cc:23: error: undefined reference to 'content::RenderThreadImpl::RenderThreadImpl(std::string const&)'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
codelion#ubuntu:~/android$
follow http://source.android.com/source/downloading.html
choose a tag from https://android.googlesource.com/platform/manifest/+refs
example:
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r2
I am running the command "apportable load" in the directory of my x-code project for an app that is working on the iOS simulator. I have x-code 5.0.2 and when I try to update apportable it says it is the newest version.
I am sorry for the extent of the error output as it may be difficult to read. I notice some errors that are picking out the sound effects and that they cannot be referenced.
Why are the references to settings such as CCScreenModeFixed not identified when they come directly from the spritebuilder interface? Does apportable support sound effects, if so why can't it find mine?
/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/AppDelegate.m:58: error: undefined
reference to 'CCSetupScreenMode'
/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/AppDelegate.m:58: error: undefined
reference to 'CCScreenModeFixed'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/AppDelegate.m:function
L_OBJC_CLASSLIST_REFERENCES_$_22: error: undefined reference to
'OBJC_CLASS_$_CCBReader'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/AppDelegate.m:function
OBJC_METACLASS_$_AppController: error: undefined reference to
'OBJC_METACLASS_$_CCAppDelegate'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/AppDelegate.m:function
OBJC_CLASS_$_AppController: error: undefined reference to
'OBJC_CLASS_$_CCAppDelegate' /Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:186: error: undefined
reference to 'clampf'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
L_OBJC_CLASSLIST_REFERENCES_$_: error: undefined reference to
'OBJC_CLASS_$_OALSimpleAudio'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
L_OBJC_CLASSLIST_REFERENCES_$_73: error: undefined reference to
'OBJC_CLASS_$_CCBReader'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
L_OBJC_CLASSLIST_REFERENCES_$_122: error: undefined reference to
'OBJC_CLASS_$_CCDirector'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
L_OBJC_CLASSLIST_REFERENCES_$_133: error: undefined reference to
'OBJC_CLASS_$_CCActionMoveBy'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
L_OBJC_CLASSLIST_REFERENCES_$_138: error: undefined reference to
'OBJC_CLASS_$_CCActionSequence'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
L_OBJC_CLASSLIST_REFERENCES_$_141: error: undefined reference to
'OBJC_CLASS_$_CCActionEaseBounce'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
OBJC_METACLASS_$_Gameplay: error: undefined reference to
'OBJC_METACLASS_$_CCNode'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Gameplay.m:function
OBJC_CLASS_$_Gameplay: error: undefined reference to
'OBJC_CLASS_$_CCNode'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Goal.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Goal.m:function
OBJC_METACLASS_$_Goal: error: undefined reference to
'OBJC_METACLASS_$_CCNode'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Goal.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Goal.m:function OBJC_CLASS_$_Goal:
error: undefined reference to 'OBJC_CLASS_$_CCNode'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Hiss.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Hiss.m:function
OBJC_METACLASS_$_Hiss: error: undefined reference to
'OBJC_METACLASS_$_CCNode'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Hiss.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/Hiss.m:function OBJC_CLASS_$_Hiss:
error: undefined reference to 'OBJC_CLASS_$_CCNode'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/MainScene.m:function
L_OBJC_CLASSLIST_REFERENCES_$_: error: undefined reference to
'OBJC_CLASS_$_CCBReader'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/MainScene.m:function
L_OBJC_CLASSLIST_REFERENCES_$_1: error: undefined reference to
'OBJC_CLASS_$_CCDirector'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/MainScene.m:function
L_OBJC_CLASSLIST_REFERENCES_$_6: error: undefined reference to
'OBJC_CLASS_$_OALSimpleAudio'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/MainScene.m:function
OBJC_METACLASS_$_MainScene: error: undefined reference to
'OBJC_METACLASS_$_CCNode'
/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.m.o):/Users/mateusz/Documents/SpriteBuilder
Games/Eltie.spritebuilder/Source/MainScene.m:function
OBJC_CLASS_$_MainScene: error: undefined reference to
'OBJC_CLASS_$_CCNode' ninja: build stopped: subcommand failed. Error:
command failed:
/Users/mateusz/.apportable/SDK/toolchain/macosx/ninja/ninja
--no-strip-ansi-escapes -j 8 /Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/Eltie/Eltie-debug.apk
Okay, I figured it out with the help of the answer from this question: static libs with apportable
I did not have the cocos2d library added in the target dependencies section of the build phases tab in x-code. When I added it apportable had no issues finding the undefined types given from spritebuilder and cocos2d.