QtMultimedia is not working on iOS-Simulator
Unsolved
Mobile and Embedded
-
Hi,
Can anyone please help me to fix this problem..
I added the below command to my CMake for iOS.
qt6_add_ios_ffmpeg_libraries(myTarget)
They work for iOS Devices but do not work for iOS-simulator.
see the error in Xcode below.
Ignoring file '/Users/thirupathiadla/Qt/6.8.1/ios/lib/ffmpeg/libavcodec.framework/libavcodec': found architecture 'arm64', required architecture 'x86_64' Ignoring file '/Users/thirupathiadla/Qt/6.8.1/ios/lib/ffmpeg/libavformat.framework/libavformat': found architecture 'arm64', required architecture 'x86_64' Ignoring file '/Users/thirupathiadla/Qt/6.8.1/ios/lib/ffmpeg/libavutil.framework/libavutil': found architecture 'arm64', required architecture 'x86_64' Ignoring file '/Users/thirupathiadla/Qt/6.8.1/ios/lib/ffmpeg/libswresample.framework/libswresample': found architecture 'arm64', required architecture 'x86_64' Ignoring file '/Users/thirupathiadla/Qt/6.8.1/ios/lib/ffmpeg/libswscale.framework/libswscale': found architecture 'arm64', required architecture 'x86_64' Undefined symbol: _av_buffer_create Undefined symbol: _av_buffer_ref Undefined symbol: _av_buffer_unref Undefined symbol: _av_channel_layout_from_mask Undefined symbol: _av_codec_is_decoder Undefined symbol: _av_codec_is_encoder Undefined symbol: _av_codec_iterate Undefined symbol: _av_dict_free Undefined symbol: _av_dict_get Undefined symbol: _av_dict_set Undefined symbol: _av_display_matrix_flip Undefined symbol: _av_display_rotation_set Undefined symbol: _av_dump_format Undefined symbol: _av_frame_alloc Undefined symbol: _av_frame_clone Undefined symbol: _av_frame_copy_props Undefined symbol: _av_frame_free Undefined symbol: _av_frame_get_buffer Undefined symbol: _av_free Undefined symbol: _av_freep Undefined symbol: _av_get_bits_per_pixel Undefined symbol: _av_get_bytes_per_sample Undefined symbol: _av_get_planar_sample_fmt Undefined symbol: _av_get_sample_fmt_name Undefined symbol: _av_guess_format Undefined symbol: _av_guess_sample_aspect_ratio Undefined symbol: _av_hwdevice_ctx_create Undefined symbol: _av_hwdevice_find_type_by_name Undefined symbol: _av_hwdevice_get_hwframe_constraints Undefined symbol: _av_hwdevice_get_type_name Undefined symbol: _av_hwdevice_iterate_types Undefined symbol: _av_hwframe_constraints_free Undefined symbol: _av_hwframe_ctx_alloc Undefined symbol: _av_hwframe_ctx_init Undefined symbol: _av_hwframe_get_buffer Undefined symbol: _av_hwframe_transfer_data Undefined symbol: _av_interleaved_write_frame Undefined symbol: _av_log_default_callback Undefined symbol: _av_log_get_level Undefined symbol: _av_log_set_callback Undefined symbol: _av_log_set_level Undefined symbol: _av_malloc Undefined symbol: _av_map_videotoolbox_format_to_pixfmt Undefined symbol: _av_muxer_iterate Undefined symbol: _av_packet_alloc Undefined symbol: _av_packet_free Undefined symbol: _av_packet_side_data_add Undefined symbol: _av_packet_side_data_get Undefined symbol: _av_pix_fmt_desc_get Undefined symbol: _av_read_frame Undefined symbol: _av_rescale_q Undefined symbol: _av_sample_fmt_is_planar Undefined symbol: _av_seek_frame Undefined symbol: _av_strerror Undefined symbol: _av_write_trailer Undefined symbol: _avcodec_alloc_context3 Undefined symbol: _avcodec_decode_subtitle2 Undefined symbol: _avcodec_descriptor_next Undefined symbol: _avcodec_flush_buffers Undefined symbol: _avcodec_free_context Undefined symbol: _avcodec_get_hw_config Undefined symbol: _avcodec_open2 Undefined symbol: _avcodec_parameters_to_context Undefined symbol: _avcodec_receive_frame Undefined symbol: _avcodec_receive_packet Undefined symbol: _avcodec_send_frame Undefined symbol: _avcodec_send_packet Undefined symbol: _avformat_alloc_context Undefined symbol: _avformat_close_input Undefined symbol: _avformat_find_stream_info Undefined symbol: _avformat_free_context Undefined symbol: _avformat_new_stream Undefined symbol: _avformat_open_input Undefined symbol: _avformat_query_codec Undefined symbol: _avformat_write_header Undefined symbol: _avio_alloc_context Undefined symbol: _avio_closep Undefined symbol: _avio_context_free Undefined symbol: _avio_open2 Undefined symbol: _swr_alloc_set_opts2 Undefined symbol: _swr_convert Undefined symbol: _swr_free Undefined symbol: _swr_get_out_samples Undefined symbol: _swr_init Undefined symbol: _swr_is_initialized Undefined symbol: _swr_set_compensation Undefined symbol: _sws_freeContext Undefined symbol: _sws_getCoefficients Undefined symbol: _sws_getContext Undefined symbol: _sws_scale Undefined symbol: _sws_setColorspaceDetails
Thanks
-
I found that in Xcode I need set the architecture to arm64, but It is now giving me another error, see the error below.
Building for 'iOS-simulator', but linking in object file (/Users/thirupathiadla/Qt/6.8.1/ios/plugins/imageformats/objects-Debug/QGifPlugin_init/QGifPlugin_init.cpp.o) built for 'iOS'
Does anyone know what this error is for, and how to fix it.