Coder Social home page Coder Social logo

ssidcard's People

Contributors

sansansisi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ssidcard's Issues

ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

ld: warning: ignoring file /Users/xxx/learngit/XXXXX/Pods/SSIDCard/SSIDCard/Frameworks/opencv2.framework/opencv2, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /Users/xxx/learngit/XXXXX/Pods/SSIDCard/SSIDCard/Frameworks/opencv2.framework/opencv2 Undefined symbols for architecture arm64:
"cv::Mat::copySize(cv::Mat const&)", referenced from:
cv::Mat::Mat(cv::Mat const&) in SSOpencvImageTool.o
"cv::Mat::create(int, int const*, int)", referenced from:
cv::Mat::create(int, int, int) in SSOpencvImageTool.o
"cv::Mat::Mat(cv::Mat const&, cv::Rect_ const&)", referenced from:
cv::Mat::operator()(cv::Rect_ const&) const in SSOpencvImageTool.o
"cv::fastFree(void*)", referenced from:
cv::Mat::operator=(cv::Mat&&) in SSOpencvImageTool.o
cv::Mat::~Mat() in SSOpencvImageTool.o
"cv::boundingRect(cv::_InputArray const&)", referenced from:
-[SSOpencvImageTool ss_processImage:] in SSOpencvImageTool.o
"cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)", referenced from:
adaptiveThereshold(cv::Mat) in SSOpencvImageTool.o
"cv::medianBlur(cv::InputArray const&, cv::OutputArray const&, int)", referenced from:
-[SSOpencvImageTool ss_processImage:] in SSOpencvImageTool.o
"cv::findContours(cv::InputOutputArray const&, cv::OutputArray const&, int, int, cv::Point)", referenced from:
-[SSOpencvImageTool ss_processImage:] in SSOpencvImageTool.o "cv::getStructuringElement(int, cv::Size
, cv::Point
)", referenced from:
-[SSOpencvImageTool ss_processImage:] in SSOpencvImageTool.o
"cv::Mat::deallocate()", referenced from:
cv::Mat::release() in SSOpencvImageTool.o
"cv::Mat::operator=(cv::Scalar const&)", referenced from:
-[SSOpencvImageTool matWithImage:] in SSOpencvImageTool.o
"cv::erode(cv::_InputArray const&, cv::OutputArray const&, cv::InputArray const&, cv::Point, int, int, cv::Scalar const&)", referenced from:
-[SSOpencvImageTool ss_processImage:] in SSOpencvImageTool.o

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

大佬我pod安装后,编译,报这个错误,咋整啊?

https://www.extendi.it/blog/2015/5/22/46-how-to-add-opencv-2-4-11-in-your-ios-project
这个链接试过了,还是报错

有时候会闪退

Thread 0 name:
Thread 0 Crashed:
0 QuartzCore 0x00000001b8114bbc CA::Context::commit_transaction(CA::Transaction*, double, double*) + 7376 (CAContextInternal.mm:3420)
1 QuartzCore 0x00000001b81147a4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 6328 (x-hash.cpp:495)
2 QuartzCore 0x00000001b814758c CA::Transaction::commit() + 652 (CATransactionInternal.mm:431)
3 QuartzCore 0x00000001b812f950 CA::Transaction::flush_as_runloop_observer(bool) + 84 (CATransactionInternal.mm:939)
4 CoreFoundation 0x00000001b1d68a50 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 (CFRunLoop.c:1806)
5 CoreFoundation 0x00000001b1cf6bc4 __CFRunLoopDoObservers + 552 (CFRunLoop.c:1919)
6 CoreFoundation 0x00000001b1d54320 __CFRunLoopRun + 1020 (CFRunLoop.c:2998)
7 CoreFoundation 0x00000001b1d58dfc CFRunLoopRunSpecific + 584 (CFRunLoop.c:3390)
8 GraphicsServices 0x00000001ebc0e984 GSEventRunModal + 160 (GSEvent.c:2196)
9 UIKitCore 0x00000001b8f3ce7c -[UIApplication _run] + 868 (UIApplication.m:3726)
10 UIKitCore 0x00000001b8f3caf4 UIApplicationMain + 312 (UIApplication.m:5316)
11 XXXXXXXX 0x0000000103164ed4 main + 88 (main.m:17)
12 dyld 0x00000001d3416de0 start + 2080 (dyldMain.cpp:1168)

Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x00000001ef1d2194 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001ef1e3a08 mach_msg2_internal + 76 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001ef1e3c44 mach_msg_overwrite + 384 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001ef1d2688 mach_msg + 20 (mach_msg.c:323)
4 CoreFoundation 0x00000001b1d53244 __CFRunLoopServiceMachPort + 156 (CFRunLoop.c:2639)
5 CoreFoundation 0x00000001b1d543f4 __CFRunLoopRun + 1232 (CFRunLoop.c:3022)
6 CoreFoundation 0x00000001b1d58dfc CFRunLoopRunSpecific + 584 (CFRunLoop.c:3390)
7 Foundation 0x00000001b10bb3fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208 (NSRunLoop.m:373)
8 Foundation 0x00000001b10bb2f8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60 (NSRunLoop.m:420)
9 UIKitCore 0x00000001b90616d0 -[UIEventFetcher threadMain] + 424 (UIEventFetcher.m:1212)
10 Foundation 0x00000001b10d2f44 NSThread__start + 704 (NSThread.m:968)
11 libsystem_pthread.dylib 0x00000001fdd96060 _pthread_start + 116 (pthread.c:893)
12 libsystem_pthread.dylib 0x00000001fdd94688 thread_start + 8 (:-1)

Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001ef1d2194 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001ef1e3a08 mach_msg2_internal + 76 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001ef1e3c44 mach_msg_overwrite + 384 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001ef1d2688 mach_msg + 20 (mach_msg.c:323)
4 CoreFoundation 0x00000001b1d53244 __CFRunLoopServiceMachPort + 156 (CFRunLoop.c:2639)
5 CoreFoundation 0x00000001b1d543f4 __CFRunLoopRun + 1232 (CFRunLoop.c:3022)
6 CoreFoundation 0x00000001b1d58dfc CFRunLoopRunSpecific + 584 (CFRunLoop.c:3390)
7 CoreFoundation 0x00000001b1d99130 CFRunLoopRun + 60 (CFRunLoop.c:3416)
8 XXXXXXXX 0x0000000103377048 _baidu_vi::vi_map::CVMessageLooper::onStartLoop() + 92
9 XXXXXXXX 0x0000000103376fe0 _baidu_vi::vi_map::CVMessageLooper::threadStart(void*) + 12
10 libsystem_pthread.dylib 0x00000001fdd96060 _pthread_start + 116 (pthread.c:893)
11 libsystem_pthread.dylib 0x00000001fdd94688 thread_start + 8 (:-1)

Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001ef1d29e0 __psynch_cvwait + 8 (:-1)
1 libsystem_pthread.dylib 0x00000001fdd95584 _pthread_cond_wait$VARIANT$armv81 + 1220 (pthread_cond.c:636)
2 XXXXXXXX 0x000000010338a8d0 _baidu_vi::CVEvent::Wait(unsigned int) + 264
3 XXXXXXXX 0x000000010338ad90 _baidu_vi::CVThreadEvent::Wait() + 156
4 XXXXXXXX 0x000000010332f4e4 _baidu_vi::CVSocketMan::SocketThreadProc(void*) + 3084
5 libsystem_pthread.dylib 0x00000001fdd96060 _pthread_start + 116 (pthread.c:893)
6 libsystem_pthread.dylib 0x00000001fdd94688 thread_start + 8 (:-1)

Thread 4 name:
Thread 4:
0 libsystem_kernel.dylib 0x00000001ef1d2194 mach_msg2_trap + 8 (:-1)
1 libsystem_kernel.dylib 0x00000001ef1e3a08 mach_msg2_internal + 76 (mach_msg.c:201)
2 libsystem_kernel.dylib 0x00000001ef1e3c44 mach_msg_overwrite + 384 (mach_msg.c:0)
3 libsystem_kernel.dylib 0x00000001ef1d2688 mach_msg + 20 (mach_msg.c:323)
4 CoreFoundation 0x00000001b1d53244 __CFRunLoopServiceMachPort + 156 (CFRunLoop.c:2639)
5 CoreFoundation 0x00000001b1d543f4 __CFRunLoopRun + 1232 (CFRunLoop.c:3022)
6 CoreFoundation 0x00000001b1d58dfc CFRunLoopRunSpecific + 584 (CFRunLoop.c:3390)
7 CFNetwork 0x00000001b7e656cc +[__CFN_CoreSchedulingSetRunnable _run:] + 344 (CoreSchedulingSet.mm:1372)
8 Foundation 0x00000001b10d2f44 NSThread__start + 704 (NSThread.m:968)
9 libsystem_pthread.dylib 0x00000001fdd96060 _pthread_start + 116 (pthread.c:893)
10 libsystem_pthread.dylib 0x00000001fdd94688 thread_start + 8 (:-1)

Thread 5 name:
Thread 5:
0 libsystem_platform.dylib 0x00000001fdcfe740 _platform_memmove + 112
1 Foundation 0x00000001b10c9468 -[_NSPlaceholderData initWithBytes:length:copy:deallocator:] + 268 (NSData_Private.h:91)
2 Foundation 0x00000001b10c8f18 +[NSData(NSData) dataWithBytes:length:] + 36 (NSData.m:732)
3 SSIDCard 0x00000001043e9674 -[SSOpencvImageTool imageWithMat:] + 60 (SSOpencvImageTool.mm:62)
4 SSIDCard 0x00000001043e8be8 -[SSOpencvImageTool ss_processImage:] + 1436 (SSOpencvImageTool.mm:52)
5 SSIDCard 0x00000001043eacc0 -[SSScanViewController recognizeWithImage:] + 116 (SSScanViewController.m:155)
6 SSIDCard 0x00000001043ea8b8 -[SSScanViewController captureOutput:didOutputSampleBuffer:fromConnection:] + 492 (SSScanViewController.m:131)

7 AVFCapture 0x00000001ce1cef54 -[AVCaptureVideoDataOutput _processSampleBuffer:] + 240 (AVCaptureVideoDataOutput.m:969)
8 AVFCapture 0x00000001ce1cee34 __47-[AVCaptureVideoDataOutput _updateRemoteQueue:]_block_invoke + 84 (AVCaptureVideoDataOutput.m:841)
9 CMCapture 0x00000001d0fe1dc0 __FigRemoteOperationReceiverCreateMessageReceiver_block_invoke + 276 (FigRemoteOperation.c:1483)
10 CMCapture 0x00000001d11904b8 __rqReceiverSetSource_block_invoke + 248 (FigRemoteQueue.c:1465)
11 libdispatch.dylib 0x00000001bd87f7c8 _dispatch_client_callout + 16 (object.m:560)
12 libdispatch.dylib 0x00000001bd856e7c _dispatch_continuation_pop$VARIANT$armv81 + 436 (inline_internal.h:2632)
13 libdispatch.dylib 0x00000001bd868860 _dispatch_source_invoke$VARIANT$armv81 + 1552 (source.c:596)
14 libdispatch.dylib 0x00000001bd864a00 _dispatch_kevent_worker_thread + 1188 (inline_internal.h:0)
15 libsystem_pthread.dylib 0x00000001fdd94b88 _pthread_wqthread + 340 (pthread.c:2624)
16 libsystem_pthread.dylib 0x00000001fdd9467c start_wqthread + 8 (:-1)

Thread 6:
0 libsystem_pthread.dylib 0x00000001fdd94674 start_wqthread + 0 (:-1)

Thread 7 name:
Thread 7:
0 libsystem_kernel.dylib 0x00000001ef1d2610 __semwait_signal + 8 (:-1)
1 libsystem_c.dylib 0x00000001bd8a4330 nanosleep + 216 (nanosleep.c:104)
2 libsystem_c.dylib 0x00000001bd8b7f18 sleep + 48 (sleep.c:62)
3 XXXXXXXX 0x00000001036f1044 __48-[BLYLogicManager abortAfterSendingReportIfNeed]_block_invoke + 36
4 libdispatch.dylib 0x00000001bd87e850 _dispatch_call_block_and_release + 24 (init.c:1518)
5 libdispatch.dylib 0x00000001bd87f7c8 _dispatch_client_callout + 16 (object.m:560)
6 libdispatch.dylib 0x00000001bd863e68 _dispatch_root_queue_drain + 616 (inline_internal.h:2632)
7 libdispatch.dylib 0x00000001bd864514 _dispatch_worker_thread2 + 160 (queue.c:7052)
8 libsystem_pthread.dylib 0x00000001fdd94b14 _pthread_wqthread + 224 (pthread.c:2631)
9 libsystem_pthread.dylib 0x00000001fdd9467c start_wqthread + 8 (:-1)

Thread 8 name:
Thread 8:
0 libsystem_kernel.dylib 0x00000001ef1d309c __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x00000001fdd9f6c0 _pthread_mutex_firstfit_lock_wait + 80 (pthread_mutex.c:1414)
2 libsystem_pthread.dylib 0x00000001fdd96278 _pthread_mutex_firstfit_lock_slow$VARIANT$armv81 + 244 (pthread_mutex.c:1490)
3 CMCapture 0x00000001d0fe3168 roDeserializeSampleBuffer + 44 (FigRemoteOperation.c:231)
4 CMCapture 0x00000001d0fe1d8c __FigRemoteOperationReceiverCreateMessageReceiver_block_invoke + 224 (FigRemoteOperation.c:1483)
5 CMCapture 0x00000001d11904b8 __rqReceiverSetSource_block_invoke + 248 (FigRemoteQueue.c:1465)
6 libdispatch.dylib 0x00000001bd87f7c8 _dispatch_client_callout + 16 (object.m:560)
7 libdispatch.dylib 0x00000001bd856e7c _dispatch_continuation_pop$VARIANT$armv81 + 436 (inline_internal.h:2632)
8 libdispatch.dylib 0x00000001bd868860 _dispatch_source_invoke$VARIANT$armv81 + 1552 (source.c:596)
9 libdispatch.dylib 0x00000001bd85a72c _dispatch_lane_serial_drain$VARIANT$armv81 + 308 (inline_internal.h:0)
10 libdispatch.dylib 0x00000001bd85b2e4 _dispatch_lane_invoke$VARIANT$armv81 + 380 (queue.c:3940)
11 libdispatch.dylib 0x00000001bd865000 _dispatch_workloop_worker_thread + 612 (queue.c:6846)
12 libsystem_pthread.dylib 0x00000001fdd94b50 _pthread_wqthread + 284 (pthread.c:2618)
13 libsystem_pthread.dylib 0x00000001fdd9467c start_wqthread + 8 (:-1)

Thread 9:
0 libsystem_pthread.dylib 0x00000001fdd94674 start_wqthread + 0 (:-1)

Thread 10:
0 libsystem_pthread.dylib 0x00000001fdd94674 start_wqthread + 0 (:-1)

Thread 11:
0 libsystem_pthread.dylib 0x00000001fdd94674 start_wqthread + 0 (:-1)

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000105505570 x2: 0x000000016cef60f0 x3: 0x00000001b8297f7c
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000105822e78 x9: 0x0000000000000000 x10: 0x00000001b80e8b4c x11: 0x000000000077a276
x12: 0x0000000000000001 x13: 0x0000000000000000 x14: 0x0000000000000002 x15: 0x0000000000000000
x16: 0x00000001fdcfea78 x17: 0x0000000000000002 x18: 0x0000000000000000 x19: 0x000000016cef5fa0
x20: 0x000000000000002a x21: 0x0000000000000000 x22: 0x0000000000000000 x23: 0x0000000000007b13
x24: 0x0000000105822e00 x25: 0x000000000000000c x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000125913b80 fp: 0x000000016cef6610 lr: 0x00000001b81147a4
sp: 0x000000016ceedfa0 pc: 0x00000001b8114bbc cpsr: 0x60000000
esr: 0x56000080 Address size fault

Pod 安装出先如下错误要怎么解决?

[!] /bin/bash -c
set -e
git submodule init
git submodule update
python opencv/platforms/ios/build_framework.py ios --dynamic
cp -a ./ios/opencv2.framework ./opencv2.framework

Submodule path 'opencv': checked out 'a8aff6f64330a0ab2c9d71033412af892dd9b710'
Submodule 'opencv' (https://github.com/opencv/opencv.git) registered for path 'opencv'
Cloning into '/Users/SLJ/Library/Caches/CocoaPods/Pods/Release/OpenCV-Dynamic/3.2.4-8d4c9/opencv'...
Executing: ['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DBUILD_SHARED_LIBS=ON', '-DCMAKE_MACOSX_BUNDLE=ON', '-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=NO', '-DIOS_ARCH=armv7;armv7s;arm64', '-DCMAKE_TOOLCHAIN_FILE=/Users/SLJ/Library/Caches/CocoaPods/Pods/Release/OpenCV-Dynamic/3.2.4-8d4c9/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DENABLE_NEON=ON', '/Users/SLJ/Library/Caches/CocoaPods/Pods/Release/OpenCV-Dynamic/3.2.4-8d4c9/opencv', '-DCMAKE_C_FLAGS=-fembed-bitcode', '-DCMAKE_CXX_FLAGS=-fembed-bitcode'] in /Users/SLJ/Library/Caches/CocoaPods/Pods/Release/OpenCV-Dynamic/3.2.4-8d4c9/ios/build/build-iphoneos
============================================================
ERROR: [Errno 2] No such file or directory
============================================================
Traceback (most recent call last):
  File "opencv/platforms/ios/build_framework.py", line 112, in build
    self._build(outdir)
  File "opencv/platforms/ios/build_framework.py", line 104, in _build
    self.buildOne(t[0], t[1], mainBD, cmake_flags)
  File "opencv/platforms/ios/build_framework.py", line 197, in buildOne
    execute(cmakecmd, cwd = builddir)
  File "opencv/platforms/ios/build_framework.py", line 36, in execute
    retcode = check_call(cmd, cwd = cwd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

识别不了

rror in pixReadMemTiff: function not present
Error in pixReadMem: tiff: no pix returned
Error in pixaGenerateFontFromString: pix not made
Error in bmfCreate: font pixa not made

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.