Compilation Error on MAC



  • Initially I found a problem of Mac Configuration then after googling I have Edited .pro file and able to solve by adding

     @
       QMAKE_CXXFLAGS += -stdlib=libc++ -std=c++11     #Added for Compatibility
     #QMAKE_CXXFLAGS += -stdlib=libc -std=c++1y
      QMAKE_CFLAGS += -mmacosx-version-min=10.9.5     #Added for Compatibility
      QMAKE_CXXFLAGS += -mmacosx-version-min=10.9.5  
    

    @

    The errors I am faceing still are as follows:

    1. /Users/omprakash/Desktop/Qt_Soloshot/soloshotdev-clipmaker2-dff5b3d11a98/App/clipmaker2/headers/mac/include/libavutil/old_pix_fmts.h:31: error: use of undeclared identifier 'AV_PIX_FMT_NONE'; did you mean 'PIX_FMT_NONE'?
      PIX_FMT_NONE = AV_PIX_FMT_NONE,
      ^~~~~~~~~~~~~~~
      PIX_FMT_NONE

    In (old_pixs_fmts.h)

    1. /Users/omprakash/Desktop/Qt_Soloshot/soloshotdev-clipmaker2-dff5b3d11a98/App/clipmaker2/headers/mac/include/libavutil/old_pix_fmts.h:31: error: C++ requires a type specifier for all declarations
      PIX_FMT_NONE = AV_PIX_FMT_NONE,
      ^~~~~~~~~~~~
    2. /Users/omprakash/Desktop/Qt_Soloshot/soloshotdev-clipmaker2-dff5b3d11a98/App/clipmaker2/headers/mac/include/libavutil/old_pix_fmts.h:147: error: expected ';' after top level declarator
      PIX_FMT_RGBA64BE=0x123, ///< packed RGBA 16:16:16:16, 64bpp, 16R, 16G, 16B, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian

    In (old_pixs_fmts.h)

    1. /Users/omprakash/Desktop/Qt_Soloshot/soloshotdev-clipmaker2-dff5b3d11a98/App/clipmaker2/mediaplayer.h:47: error: unknown type name 'MediaDecoder'
      MediaDecoder *decoder;
      ^
    2. /Users/omprakash/Desktop/Qt_Soloshot/soloshotdev-clipmaker2-dff5b3d11a98/App/clipmaker2/mediaplayer.h:76: error: unknown type name 'AVPixelFormat'; did you mean 'PixelFormat'?
      void setOutputResolution(int width, int height, AVPixelFormat videoFormat, int imageFormat); // For use by mediaDecoders
      ^~~~~~~~~~~~~
      PixelFormat
      In mediaplayer.h

    Praveen


  • Lifetime Qt Champion

    Hi,

    That's not a Qt error, it's a ffmpeg/libav problem


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.