Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Errors for iOS 8.4 in Xcode 7.0.1 #14

Open
DataZombies opened this issue Oct 8, 2015 · 0 comments
Open

Build Errors for iOS 8.4 in Xcode 7.0.1 #14

DataZombies opened this issue Oct 8, 2015 · 0 comments

Comments

@DataZombies
Copy link

Conversion errors are not shown.

iOS 8.4

CameraCalibrationAlgorithm.cpp

  • Code will never be executed
if (false && m_patternfound)
{
    const cv::TermCriteria tc = cv::TermCriteria(cv::TermCriteria::EPS + cv::TermCriteria::COUNT, 30, 0.1);
    cv::cornerSubPix(frame, corners2d, cv::Size(5, 5), cv::Size(-1, -1), tc);
}
  • Unused variable 'rms'
double rms = cv::calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,
                                 distCoeffs, rvecs, tvecs, flags | cv::CALIB_FIX_K4 | cv::CALIB_FIX_K5);
  • LEAK: Value stored to 'rms' during its initialization is never read

ImageViewController.mm

  • ’setContentSizeForViewInPopover:' is deprecated: first deprecated in iOS 7.0 - Use UIViewController.preferredContentSize instead.

BaseSampleViewController.mm

  • ’TWTweetComposeViewController' is deprecated: first deprecated in iOS 6.0
  • ’presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0

UIImage2OpenCV.mm

  • LEAK: Potential leak of an object stored into 'imageRef'
    • Call to function 'CGImageCreateWithImageInRect' returns a Core Foundation object with a +1 retain count
    • Object leaked: object allocated and stored into 'imageRef' is not referenced later in this execution path and has a retain count of +1

SampleOptionsTableViewDelegate.mm

  • LEAK: Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
  • LEAK: Returning 'self' while it is not set to the result of '[(super or self) init...]'

FeatureDetectionClass.cpp

  • LEAK: Value stored to 'removed' during its initialization is never read
  • LEAK: FeatureDetectionClass.cpp:268:5: Value stored to 'removed' is never read

(null): warning: Could not resolve external type _ZTSNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIfNS_9allocatorIfEEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv8KeyPointENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv3MatENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIhNS_9allocatorIhEEE24__RAII_IncreaseAnnotatorE

iOS 9

VideoViewController.h

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

ImageViewController.h

  • ‘UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

DetailViewController.mm

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

CameraCalibrationAlgorithm.cpp

  • Code will never be executed
if (false && m_patternfound)
{
    const cv::TermCriteria tc = cv::TermCriteria(cv::TermCriteria::EPS + cv::TermCriteria::COUNT, 30, 0.1);
    cv::cornerSubPix(frame, corners2d, cv::Size(5, 5), cv::Size(-1, -1), tc);
}
  • Unused variable 'rms'
double rms = cv::calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,
                                 distCoeffs, rvecs, tvecs, flags | cv::CALIB_FIX_K4 | cv::CALIB_FIX_K5);
  • LEAK: Value stored to 'rms' during its initialization is never read

VideoViewController.mm

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.

ImageViewController.mm

  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.
  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.
  • ’setContentSizeForViewInPopover:' is deprecated: first deprecated in iOS 7.0 - Use UIViewController.preferredContentSize instead.
  • ’UIPopoverController' is deprecated: first deprecated in iOS 9.0 - UIPopoverController is deprecated. Popovers are now implemented as UIViewController presentations. Use a modal presentation style of UIModalPresentationPopover and UIPopoverPresentationController.
  • ’ALAssetsLibrary' is deprecated: first deprecated in iOS 9.0 - Use PHPhotoLibrary from the Photos framework instead
  • ’ALAssetsLibraryAssetForURLResultBlock' is deprecated: first deprecated in iOS 9.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead
  • ’defaultRepresentation' is deprecated: first deprecated in iOS 9.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
  • ’fullResolutionImage' is deprecated: first deprecated in iOS 9.0 - Use requestImageForAsset:targetSize:contentMode:options:resultHandler: on PHImageManager to request a targetSize PHImageManagerMaximumSize for a PHAsset from the Photos framework instead
  • ’ALAsset' is deprecated: first deprecated in iOS 9.0 - Use PHAsset from the Photos framework instead
  • ’ALAssetRepresentation' is deprecated: first deprecated in iOS 9.0 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead
  • ’ALAssetsLibraryAccessFailureBlock' is deprecated: first deprecated in iOS 9.0 - Use the Photos framework instead
  • ’assetForURL:resultBlock:failureBlock:' is deprecated: first deprecated in iOS 9.0 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead

BaseSampleViewController.mm

  • ’TWTweetComposeViewController' is deprecated: first deprecated in iOS 6.0
  • ’presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0
  • ’UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead

UIImage2OpenCV.mm

  • LEAK: Potential leak of an object stored into 'imageRef'
    • Call to function 'CGImageCreateWithImageInRect' returns a Core Foundation object with a +1 retain count
    • Object leaked: object allocated and stored into 'imageRef' is not referenced later in this execution path and has a retain count of +1

SampleOptionsTableViewDelegate.mm

  • LEAK: Instance variable used while 'self' is not set to the result of '[(super or self) init...]'
  • LEAK: Returning 'self' while it is not set to the result of '[(super or self) init...]'

FeatureDetectionClass.cpp

  • LEAK: Value stored to 'removed' during its initialization is never read
  • LEAK: Value stored to 'removed' is never read

(null): warning: Could not resolve external type _ZTSNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIfNS_9allocatorIfEEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv8KeyPointENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIN2cv3MatENS_9allocatorIS2_EEE24__RAII_IncreaseAnnotatorE
(null): warning: Could not resolve external type _ZTSNSt3__16vectorIhNS_9allocatorIhEEE24__RAII_IncreaseAnnotatorE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant