foolab / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

avx2 for chromium link error #281

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[2130/2241] CXX obj/talk/p2p/base/libjingle_p2p_unittest.pseudotcp_unittest.o
FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -framework 
AVFoundation -framework CoreMedia -framework CoreVideo -framework UIKit 
-framework OpenGLES -framework QuartzCore -framework Foundation -framework 
IOKit -framework Security -framework SystemConfiguration 
-Wl,-search_paths_first -force_load 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/lib/arc/libarclite_iphoneos.a -miphoneos-version-min=6.0 -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
/SDKs/iPhoneOS6.1.sdk -arch armv7 -L. -o libjingle_media_unittest 
obj/talk/media/base/libjingle_media_unittest.codec_unittest.o 
obj/talk/media/base/libjingle_media_unittest.filemediaengine_unittest.o 
obj/talk/media/base/libjingle_media_unittest.rtpdataengine_unittest.o 
obj/talk/media/base/libjingle_media_unittest.rtpdump_unittest.o 
obj/talk/media/base/libjingle_media_unittest.rtputils_unittest.o 
obj/talk/media/base/libjingle_media_unittest.testutils.o 
obj/talk/media/base/libjingle_media_unittest.videocapturer_unittest.o 
obj/talk/media/base/libjingle_media_unittest.videocommon_unittest.o 
obj/talk/media/devices/libjingle_media_unittest.dummydevicemanager_unittest.o 
obj/talk/media/devices/libjingle_media_unittest.filevideocapturer_unittest.o 
obj/talk/media/webrtc/libjingle_media_unittest.webrtcpassthroughrender_unittest.
o obj/talk/media/webrtc/libjingle_media_unittest.webrtcvideocapturer_unittest.o 
libgunit.a libjingle_media.a libjingle_unittest_main.a libyuv.a 
libvideo_capture_module.a libwebrtc_utility.a libaudio_coding_module.a libCNG.a 
libcommon_audio.a libsystem_wrappers.a libcommon_audio_neon.a libG711.a 
libG722.a libiLBC.a libiSAC.a libiSACFix.a libisac_neon.a libPCM16B.a 
libNetEq.a libwebrtc_opus.a libopus.a libacm2.a libNetEq4.a libmedia_file.a 
libwebrtc_video_coding.a libwebrtc_i420.a libcommon_video.a 
libvideo_coding_utility.a libwebrtc_vp8.a libvpx.a libvpx_asm_offsets_vp8.a 
libvpx_asm_offsets_vpx_scale.a libvideo_render_module.a libvideo_engine_core.a 
librtp_rtcp.a libpaced_sender.a libremote_bitrate_estimator.a 
librbe_components.a libbitrate_controller.a libvideo_processing.a 
libvoice_engine.a libaudio_conference_mixer.a libaudio_processing.a 
libaudio_processing_neon.a libaudio_device.a libjingle.a libexpat.a 
libjsoncpp.a libcrnss.a libnss_static.a libcrnspr.a libsqlite_regexp.a 
libicui18n.a libicuuc.a libicudata.a libcrnssckbi.a libcrssl.a 
libjingle_sound.a  -framework AudioToolbox -framework CoreAudio 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
/SDKs/iPhoneOS6.1.sdk/usr/lib/libsqlite3.dylib
Undefined symbols for architecture armv7:
  "_ARGBPolynomialRow_AVX2", referenced from:
      _ARGBPolynomial in libyuv.a(libyuv.planar_functions.o)
  "_ARGBShuffleRow_AVX2", referenced from:
      _ARGBShuffle in libyuv.a(libyuv.planar_functions.o)
      _ARGBShuffleRow_Any_AVX2 in libyuv.a(libyuv.row_any.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Original issue reported on code.google.com by fbarch...@google.com on 24 Oct 2013 at 10:58

GoogleCodeExporter commented 9 years ago
to build libs for ios
add stuff to DEPS, as seen in webrtc/chromium... which I'll check in
add ];target_os=['ios', 'mac']; to .gclient like this

solutions = [
  { "name"        : "trunk",
    "url"         : "https://libyuv.googlecode.com/svn/trunk",
    "deps_file"   : "DEPS",
    "managed"     : True,
    "custom_deps" : {
    },
    "safesync_url": "",
  },
];target_os=['ios', 'mac'];

then gclient sync
in general get build information as found on build.chromium.org build bots
http://build.chromium.org/p/chromium.mac/builders/iOS%20Device/builds/14867

export GYP_DEFINES="component=static_library OS=ios chromium_ios_signing=0"
export GYP_GENERATOR_FLAGS=xcode_project_version=3.2
gclient unhooks
xcodebuild -configuration Release -project libyuv.xcodeproj -sdk iphoneos7.0
xcodebuild -configuration Release -project libyuv_test.xcodeproj -sdk 
iphoneos7.0

Original comment by fbarch...@google.com on 25 Oct 2013 at 3:57

GoogleCodeExporter commented 9 years ago
unittest builds at least.  the utilities don't
xcodebuild -configuration Release -project libyuv_test.xcodeproj -sdk 
iphoneos7.0 -target libyuv_unittest

Original comment by fbarch...@google.com on 25 Oct 2013 at 4:18

GoogleCodeExporter commented 9 years ago
Fixed in r826

Original comment by fbarch...@google.com on 25 Oct 2013 at 7:53