javacpp icon indicating copy to clipboard operation
javacpp copied to clipboard

build ffmpeg error on macos

Open yijinsheng opened this issue 6 months ago • 2 comments

i want to compile the ffmpeg on my macos, I use the command

mvn install --projects .,ffmpeg -Djavacpp.platform.extension=-gpl

and I get the error message ld: warning: -single_module is obsolete ld: warning: ignoring duplicate libraries: '-lm' ld: multiple errors: unknown platform in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/cpuid.o' in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/cpuid.o'; unknown platform in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/fixed_dsp.o' in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/fixed_dsp.o'; unknown platform in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/float_dsp.o' in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/float_dsp.o'; unknown platform in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/imgutils.o' in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/imgutils.o'; unknown platform in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/lls.o' in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/lls.o'; unknown platform in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/pixelutils.o' in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/pixelutils.o'; unknown platform in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/tx_float.o' in '/Users/yijinsheng/temp/javacpp-presets/ffmpeg/cppbuild/macosx-x86_64-gpl/ffmpeg-6.1.1/libavutil/x86/tx_float.o' clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libavutil/libavutil.58.dylib] Error 1 make: *** Waiting for unfinished jobs.... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] JavaCPP Presets 1.5.10 ............................. SUCCESS [ 1.293 s] [INFO] JavaCPP Presets for FFmpeg 6.1.1-1.5.10 ............ FAILURE [10:12 min] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10:15 min [INFO] Finished at: 2024-08-26T19:48:31+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.bytedeco:javacpp:1.5.10:build (javacpp-cppbuild-install) on project ffmpeg: Execution javacpp-cppbuild-install of goal org.bytedeco:javacpp:1.5.10:build failed: Process exited with an error: 2 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :ffmpeg can any one help me

yijinsheng avatar Aug 27 '24 01:08 yijinsheng