Ask Your Question
0

libpng is linked despite being excluded in cmake

asked 2018-07-04 10:00:43 -0500

App Magnetics gravatar image

I'm trying to generate very compact version of OpenCV and it generally works except libpng (8 MB) cannot be striped out of the resulting binary (iOS Framework), despite having specified -DBUILD_PNG=OFF

Is there any dependency by the included modules (actually it should not be)?

Merging libraries:
/works/opencv-master/ios/build/build-arm64-iphoneos/install/lib/libopencv_calib3d.a
/works/opencv-master/ios/build/build-arm64-iphoneos/install/lib/libopencv_features2d.a
/works/opencv-master/ios/build/build-arm64-iphoneos/install/lib/libopencv_core.a
/works/opencv-master/ios/build/build-arm64-iphoneos/install/lib/libopencv_video.a
/works/opencv-master/ios/build/build-arm64-iphoneos/install/lib/libopencv_imgproc.a
/works/opencv-master/ios/build/build-arm64-iphoneos/install/share/OpenCV/3rdparty/lib/liblibpng.a
/works/opencv-master/ios/build/build-arm64-iphoneos/install/share/OpenCV/3rdparty/lib/libzlib.a
/works/opencv-master/ios/build/build-arm64-iphoneos/install/share/OpenCV/3rdparty/lib/liblibjpeg-turbo.a
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-04 10:02:44 -0500

LBerger gravatar image

it is not BUILD_PNG but WITH_PNG:BOOL=OFF

edit flag offensive delete link more

Comments

1

That was fast, thank you. Immediately tested and it worked!

App Magnetics gravatar imageApp Magnetics ( 2018-07-04 10:08:06 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-07-04 10:00:43 -0500

Seen: 58 times

Last updated: Jul 04 '18