Xcode on the MAC is the development of magic, excellent code prompt, error prompt, debugging system, so Xcode can undoubtedly improve the development of code efficiency
1. Run commands to generate an Xcode entry
- Entered the
QT project with FFMpeg integration
In the
qmake xxx.pro -spec macx-xcode
Copy the code
- Can generate XXX. Xcodeproj entry file
2. Possible link errors
3. The reasons for the link problems are as follows
4. Resolve link errors
- delete
Lib folder
- use
brew info ffmpeg
Find the ffmpeg installation directory
brew info ffmpeg
/usr/local/Cellar/ffmpeg/4.32. (274 files, 50.3MB) *
Copy the code
- Click in the Xcode
Build Phases
的+.
, the choice ofAdd Other Files
And then useCommand + shift + G
Enter the/ usr/local/Cellar/ffmpeg 4.3.2 / lib
Directory, will*.a
Add the file to the project
- To successfully run the project: