uni-app 云打包原生插件报错:同一个插件之前云打包无问题,今天报错
uni-app 云打包原生插件报错:同一个插件之前云打包无问题,今天报错
产品分类
uniapp/App
操作步骤
- 可以正常打包
预期结果
- 可以正常打包
实际结果
- 可以正常打包
bug描述
Undefined symbols for architecture arm64:
“MatToUIImage(cv::Mat const&)”, referenced from:
-[OpencvModule getScaleBitmap:width_dpi_px:width_left:widht_top:] in ImageProcess(OpencvModule.o)
-[OpencvModule threshold1:originUiimage:] in ImageProcess(OpencvModule.o)
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule resize:width:heiht:] in ImageProcess(OpencvModule.o)
-[OpencvModule matToBitmap:] in ImageProcess(OpencvModule.o)
“UIImageToMat(UIImage const, cv::Mat&, bool)”, referenced from:
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule bitmapToMat:] in ImageProcess(OpencvModule.o)
-[OpencvModule getFlyodUIImageNew:] in ImageProcess(OpencvModule.o)
-[OpencvModule getFlyodUIImage:] in ImageProcess(OpencvModule.o)
-[V5g bitmapToMat:] in ImageProcess(V5g.o)
“cv::meanStdDev(cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_InputArray const&)”, referenced from:
-[OpencvModule threshold1:originUiimage:] in ImageProcess(OpencvModule.o)
“cv::addWeighted(cv::_InputArray const&, double, cv::_InputArray const&, double, double, cv::_OutputArray const&, int)”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::bitwise_xor(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::InputArray const&)”, referenced from:
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
“cv::createCLAHE(double, cv::Size)”, referenced from:
+[ProcessPictures equalizeHistogram:withClipLimit:] in ImageProcess(ProcessPictures.o)
“cv::GaussianBlur(cv::_InputArray const&, cv::OutputArray const&, cv::Size, double, double, int)”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
+[ProcessPictures blurWithGuas:] in ImageProcess(ProcessPictures.o)
“cv::convertScaleAbs(cv::_InputArray const&, cv::_OutputArray const&, double, double)”, referenced from:
+[ProcessPictures enhancedImage:withAlpha:] in ImageProcess(ProcessPictures.o)
“cv::MatConstIterator::seek(int const, bool)”, referenced from:
cv::MatConstIterator::MatConstIterator(cv::Mat const) in ImageProcess(ProcessPictures.o)
“cv::MatConstIterator::seek(long, bool)”, referenced from:
+[ProcessPictures sharpImage:] in ImageProcess(ProcessPictures.o)
“cv::adaptiveThreshold(cv::InputArray const&, cv::OutputArray const&, double, int, int, int, double)", referenced from:
-[OpencvModule getBinaryBitmap:cutRed:cutBlue:silde:] in ImageProcess(OpencvModule.o)
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
"cv::getStructuringElement(int, cv::Size, cv::Point)”, referenced from:
-[OpencvModule getBinaryBitmap:cutRed:cutBlue:silde:] in ImageProcess(OpencvModule.o)
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::Mat::deallocate()”, referenced from:
-[OpencvModule getScaleBitmap:width_dpi_px:width_left:widht_top:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v10:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v8_by_segment:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v5gDot:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v5x:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v7s:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v8:model:] in ImageProcess(OpencvModule.o)
…
“cv::Mat::create(int, int const, int)”, referenced from:
-[OpencvModule getScaleBitmap:width_dpi_px:width_left:widhttop:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
-[OpencvModule getFlyodUIImageNew:] in ImageProcess(OpencvModule.o)
…
“cv::Mat::copySize(cv::Mat const&)”, referenced from:
-[OpencvModule getBinaryBitmap:cutRed:cutBlue:silde:] in ImageProcess(OpencvModule.o)
-[OpencvModule threshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule threshold1:originUiimage:] in ImageProcess(OpencvModule.o)
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule getFlyodUIImageNew:] in ImageProcess(OpencvModule.o)
-[OpencvModule getFlyodUIImage:] in ImageProcess(OpencvModule.o)
-[OpencvModule resize:newWidth:newHeight:] in ImageProcess(OpencvModule.o)
…
“cv::Mat::operator=(cv::Scalar const&)”, referenced from:
-[OpencvModule getScaleBitmap:width_dpi_px:width_left:widht_top:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::add(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, int)”, referenced from:
-[OpencvModule cutBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
“cv::pow(cv::_InputArray const&, double, cv::_OutputArray const&)”, referenced from:
-[OpencvModule gamma:andparam:] in ImageProcess(OpencvModule.o)
+[ProcessPictures gammaTransformation:withParamFloat:] in ImageProcess(ProcessPictures.o)
“cv::blur(cv::InputArray const&, cv::OutputArray const&, cv::Size, cv::Point, int)”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::mean(cv::_InputArray const&, cv::_InputArray const&)”, referenced from:
-[OpencvModule getBinaryBitmap:cutRed:cutBlue:silde:] in ImageProcess(OpencvModule.o)
-[OpencvModule getFlyodUIImage:] in ImageProcess(OpencvModule.o)
+[ProcessPictures getChecksumsForGamma:] in ImageProcess(ProcessPictures.o)
+[ProcessPictures getEnhancedParam:] in ImageProcess(ProcessPictures.o)
“cv::Canny(cv::_InputArray const&, cv::_OutputArray const&, double, double, int, bool)”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::erode(cv::_InputArray const&, cv::OutputArray const&, cv::InputArray const&, cv::Point, int, int, cv::Scalar const&)”, referenced from:
-[OpencvModule getBinaryBitmap:cutRed:cutBlue:silde:] in ImageProcess(OpencvModule.o)
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::error(int, std::__1::basic_string, std::_1::allocator> const&, char const, char const, int)”, referenced from:
cv::MatConstIterator::MatConstIterator(cv::Mat const*) in ImageProcess(ProcessPictures.o)
cv::Mat::operator=(cv::Mat const&) in ImageProcess(ProcessPictures.o)
“cv::dilate(cv::_InputArray const&, cv::OutputArray const&, cv::InputArray const&, cv::Point, int, int, cv::Scalar const&)”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::divide(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, double, int)”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::resize(cv::_InputArray const&, cv::OutputArray const&, cv::Size, double, double, int)”, referenced from:
-[OpencvModule resize:width:heiht:] in ImageProcess(OpencvModule.o)
-[OpencvModule resize:newWidth:newHeight:] in ImageProcess(OpencvModule.o)
“cv::inRange(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)”, referenced from:
-[OpencvModule cutBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
“cv::noArray()”, referenced from:
-[OpencvModule getBinaryBitmap:cutRed:cutBlue:silde:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule threshold1:originUiimage:] in ImageProcess(OpencvModule.o)
-[OpencvModule getFlyodUIImage:] in ImageProcess(OpencvModule.o)
+[ProcessPictures getChecksumsForGamma:] in ImageProcess(ProcessPictures.o)
…
“cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)”, referenced from:
-[OpencvModule getBinaryBitmap:cutRed:cutBlue:silde:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule threshold1:originUiimage:] in ImageProcess(OpencvModule.o)
-[OpencvModule adaptiveThreshold:] in ImageProcess(OpencvModule.o)
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
…
“cv::fastFree(void)”, referenced from:
-[OpencvModule getScaleBitmap:width_dpi_px:width_left:widht_top:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v10:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v8_by_segment:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v5gDot:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v5x:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v7s:model:] in ImageProcess(OpencvModule.o)
-[OpencvModule getBitMapHex_v8:model:] in ImageProcess(OpencvModule.o)
…
“cv::filter2D(cv::_InputArray const&, cv::_OutputArray const&, int, cv::InputArray const&, cv::Point, double, int)”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
+[ProcessPictures sharpImage:] in ImageProcess(ProcessPictures.o)
“cv::threshold(cv::_InputArray const&, cv::_OutputArray const&, double, double, int)”, referenced from:
-[OpencvModule threshold1:originUiimage:] in ImageProcess(OpencvModule.o)
"cv::Mat::copyTo(cv::_OutputArray const&, cv::InputArray const&) const", referenced from:
-[OpencvModule cutBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRed:] in ImageProcess(OpencvModule.o)
-[OpencvModule cutRedAndBlue:] in ImageProcess(OpencvModule.o)
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
“cv::Mat::reshape(int, int, int const) const”, referenced from:
cv::Mat::operator=(cv::Mat const&) in ImageProcess(ProcessPictures.o)
cv::Mat::operator=(cv::Mat&&) in ImageProcess(ProcessPictures.o)
“cv::Mat::convertTo(cv::OutputArray const&, int, double, double) const”, referenced from:
-[OpencvModule reduceBackGroundAlgorithm:] in ImageProcess(OpencvModule.o)
-[OpencvModule SierraDithering:] in ImageProcess(OpencvModule.o)
-[OpencvModule gamma:andparam:] in ImageProcess(OpencvModule.o)
+[ProcessPictures gammaTransformation:withParamFloat:] in ImageProcess(ProcessPictures.o)
cv::Mat::operator=(cv::Mat const&) in ImageProcess(ProcessPictures.o)
cv::Mat::operator=(cv::Mat&&) in ImageProcess(ProcessPictures.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
谢谢, 问题主要是: 插件是本地插件, 也没修改过, 打包失败了, 应该是云打包环境有变化了