Home > Back-end >  Cmake PKG - config in writing
Cmake PKG - config in writing

Time:09-17

I in the ubuntu command line window use
G + + -o main. O rtspH264. C ` PKG - config -- cflags - libs libswscale libavformat libavcodec libavdevice libavutil x264 ` command to compile the code
You can run successfully;
Now I want to write in cmakelists file, how to write?
Try many times without success
Need to library file header file path in "/home/XXXX ffmpeg_build/include", "/home/XXXX ffmpeg_build/lib" contained in the lib. A file
Need the pkgconfig path in "/home/XXXX ffmpeg_build/lib/pkgconfig"

CodePudding user response:

Well, after a torture yourself settled,

CodePudding user response:

Share, convenient later time ~
  • Related