Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtMultimedia is not working on iOS-Simulator
Forum Updated to NodeBB v4.3 + New Features

QtMultimedia is not working on iOS-Simulator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 425 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adla
    wrote on last edited by
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • A Adla

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Adla I'm not an iOS expert, but it looks like your emulator is configured to use x86_64, but you're deploying arm64 binaries. You're probably using Intel based Mac machine?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Adla
        wrote on last edited by
        #3

        @jsulm , I am using Apple M3 Max, does this mean those frameworks do not work on my iOS-Simulator ?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Adla
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RogueWarrior
            wrote on last edited by
            #5

            I've got the same problem and this is with the qmlvideo example.
            In order to get the thing to link, I had to edit QT_OSX_ARCHITECTURES to remove the x86_64 part.
            It's a bit of a hack because it's built into some part of the default configuration.

            But when I try to deploy it, I get "Application install on simulator failed. Bundle path does not exist."

            I have no idea how to fix that one.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved