Select to view content in your preferred language

Build failure on iOS with Qt 6.8.2 and 200.7

148
1
Jump to solution
2 weeks ago
Labels (2)
JustinSteventon
Occasional Contributor

Hi folks,

This is a repeat of:
https://community.esri.com/t5/qt-maps-sdk-questions/build-failure-on-ios-with-qt-6-8/m-p/1548520

I get the same ffmpeg link errors on iOS, 200.7. My project requires multimedia. The last few lines look like this:
"_sws_scale", referenced from:
convertFrame(QVideoFrame&, QVideoFrameFormat const&) in libffmpegmediaplugin.a[arm64][10](qffmpegconverter.cpp.o)
QFFmpegVideoBuffer::convertSWFrame() in libffmpegmediaplugin.a[arm64][18](qffmpegvideobuffer.cpp.o)
QFFmpeg::VideoFrameEncoder::sendFrame(std::__1::unique_ptr<AVFrame, QFFmpeg::AVDeleter<void (*)(AVFrame**), &av_frame_free>>) in libffmpegmediaplugin.a[arm64][48](qffmpegvideoframeencoder.cpp.o)
"_sws_setColorspaceDetails", referenced from:
convertFrame(QVideoFrame&, QVideoFrameFormat const&) in libffmpegmediaplugin.a[arm64][10](qffmpegconverter.cpp.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

If I remove multimedia from the find_package and target_link_libraries, it still fails.

Did you guys do anything to get this working? I gather that Qt is churning on iOS with the ffmpeg libraries.

Thanks!

0 Kudos
1 Solution

Accepted Solutions
JustinSteventon
Occasional Contributor

Apologies for the noise. I see the samples have included the CMake commands needed to fix the link errors. When I incorporated them, it built fine.

View solution in original post

1 Reply
JustinSteventon
Occasional Contributor

Apologies for the noise. I see the samples have included the CMake commands needed to fix the link errors. When I incorporated them, it built fine.