Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac M3芯片 14.4.1 iOS SDK 17.4.1 执行 ./compile-ffmpeg.sh all armv7 和 arm64 分别都有报错 #5593

Closed
liuqianteng opened this issue Apr 26, 2024 · 1 comment

Comments

@liuqianteng
Copy link

libavutil/dict.c:166:15: error: incompatible pointer to integer conversion initializing 'uintptr_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
uintptr_t ptr = NULL;
^ ~~~~
libavutil/dict.c:171:12: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'

define NULL ((void*)0)

           ^~~~~~~~~~

libavutil/dict.c:166:15: warning: unused variable 'ptr' [-Wunused-variable]
uintptr_t ptr = NULL;
^
libavutil/dict.c:175:14: error: incompatible pointer to integer conversion initializing 'uintptr_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
uintptr_t ptr = NULL;
^ ~~~~
libavutil/dict.c:178:15: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'

define NULL ((void*)0)

           ^~~~~~~~~~

libavutil/dict.c:182:15: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'

define NULL ((void*)0)

           ^~~~~~~~~~

libavutil/dict.c:189:48: warning: format specifies type 'void *' but the argument has type 'uintptr_t' (aka 'unsigned long') [-Wformat]
snprintf(valuestr, sizeof(valuestr), "%p", value);
~~ ^~~~~
%lu
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), VA_ARGS)
^~~~~~~~~~~
3 warnings and 5 errors generated.
make: *** [libavutil/dict.o] Error 1

uintptr_t ptr 不能赋值 NULL

@liuqianteng liuqianteng changed the title Mac 14.4.1 iOS SDK 17.4.1 执行 ./compile-ffmpeg.sh all armv7 和 arm64 分别都有报错 Mac M3芯片 14.4.1 iOS SDK 17.4.1 执行 ./compile-ffmpeg.sh all armv7 和 arm64 分别都有报错 Apr 26, 2024
@RATime360
Copy link

强制类型转换下,或者用旧的xcode编译

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants