Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compilation Error on MAC
Qt 6.11 is out! See what's new in the release blog

Compilation Error on MAC

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.2k Views 2 Watching
  • 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.
  • P Offline
    P Offline
    praveen0991kr
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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