Skip to content

MAC找不到-lSDL 以及所有ffmpeg的静态库 #25

Description

@lwl-blazer

电脑为M1

Project MESSAGE: ARCH=x86_64
Project MESSAGE: QT_VERSION=5.14.1
Project MESSAGE: QMAKE=/Users/cievon/Qt5.14.1/5.14.1/clang_64/bin/qmake
Project MESSAGE: QMAKESPEC=/Users/cievon/Qt5.14.1/5.14.1/clang_64/mkspecs/macx-clang
Project MESSAGE: CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Project MESSAGE: CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
Project MESSAGE: LINK=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
Project MESSAGE: CFLAGS=-pipe -std=c99
Project MESSAGE: CXXFLAGS=-pipe -stdlib=libc++ -std=c++11
Project MESSAGE: PWD=/Users/cievon/Documents/debug/hplayer
Project MESSAGE: TARGET=/Users/cievon/Documents/debug/hplayer/bin/mac/hplayer
Project MESSAGE: DEFINES=QT_DEPRECATED_WARNINGS HV_SOURCE GLEW_STATIC
Project MESSAGE: CONFIG=lex yacc debug exceptions depend_includepath testcase_targets import_plugins import_qpa_plugin asset_catalogs rez file_copies qmake_use qt warn_on release link_prl app_bundle incremental global_init_link_order lib_version_first sdk clang_pch_style shared shared qt_framework release macos osx macx mac darwin unix posix gcc clang llvm debug x86_64 qml_debug sdk_no_version_check
Project MESSAGE: INCLUDEPATH=src src/hv src/hv/base src/hv/utils src/qt src/ui src/GL src/video src/win32 src/util -I /opt/homebrew/Cellar/ffmpeg/5.0.1_2/include -I /opt/homebrew/Cellar/sdl2/2.0.22/include
Project MESSAGE: LIBS=-L /opt/homebrew/Cellar/sdl2/2.0.22/lib -lSDL2 -L /opt/homebrew/Cellar/ffmpeg/5.0.1_2/lib -lavutil -lavfilter -lavcodec -lswscale -lavformat -lavdevice -lswresample -L/Users/cievon/Documents/debug/hplayer/3rd/lib/mac -L/Users/cievon/Documents/debug/hplayer/bin/mac/hplayer.app/Contents/Frameworks

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.13 -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,@executable_path/../Frameworks -Wl,-rpath,/Users/cievon/Qt5.14.1/5.14.1/clang_64/lib -o ../hplayer/bin/mac/hplayer.app/Contents/MacOS/hplayer tmp/obj/hversion.o tmp/obj/hbase.o tmp/obj/herr.o tmp/obj/htime.o tmp/obj/hlog.o tmp/obj/hstring.o tmp/obj/iniparser.o tmp/obj/qtrcloader.o tmp/obj/HGLWidget.o tmp/obj/htable.o tmp/obj/MainWindow.o tmp/obj/CentralWidget.o tmp/obj/HMultiView.o tmp/obj/HVideoWidget.o tmp/obj/HVideoTitlebar.o tmp/obj/HVideoToolbar.o tmp/obj/HVideoWnd.o tmp/obj/HOpenMediaDlg.o tmp/obj/HMediaInfoDlg.o tmp/obj/GLWnd.o tmp/obj/LsideWidget.o tmp/obj/RsideWidget.o tmp/obj/glew.o tmp/obj/hffplayer.o tmp/obj/hdevice.o tmp/obj/hframe.o tmp/obj/SDL2Wnd.o tmp/obj/main.o tmp/obj/qrc_skin.o tmp/obj/qrc_image.o tmp/obj/moc_MainWindow.o tmp/obj/moc_CentralWidget.o tmp/obj/moc_HMultiView.o tmp/obj/moc_HVideoWidget.o tmp/obj/moc_HVideoTitlebar.o tmp/obj/moc_HVideoToolbar.o tmp/obj/moc_HOpenMediaDlg.o tmp/obj/moc_HMediaInfoDlg.o -F/Users/cievon/Qt5.14.1/5.14.1/clang_64/lib -L /opt/homebrew/Cellar/sdl2/2.0.22/lib -lSDL2 /opt/homebrew/Cellar/ffmpeg/5.0.1_2/lib -lavutil -lavfilter -lavcodec -lswscale -lavformat -lavdevice -lswresample -L/Users/cievon/Documents/debug/hplayer/3rd/lib/mac -L/Users/cievon/Documents/debug/hplayer/bin/mac/hplayer.app/Contents/Frameworks -framework QtWidgets -framework QtGui -framework AppKit -framework Metal -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
ld: warning: directory not found for option '-L/Users/cievon/Documents/debug/hplayer/3rd/lib/mac'
ld: warning: directory not found for option '-L/Users/cievon/Documents/debug/hplayer/bin/mac/hplayer.app/Contents/Frameworks'
ld: library not found for -lavutil
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [../hplayer/bin/mac/hplayer.app/Contents/MacOS/hplayer] Error 1
11:38:06: 进程"/usr/bin/make"退出,退出代码 2 。
Error while building/deploying project hplayer (kit: Desktop Qt 5.14.1 clang 64bit)
When executing step "Make"
11:38:06: Elapsed time: 00:12.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions