ijkplayer icon indicating copy to clipboard operation
ijkplayer copied to clipboard

error: invalid argument '-std=c99' not allowed with 'C++'

Open sam3961 opened this issue 11 months ago • 1 comments

I compiled ijk player successfully, but when i compile ijk with my project i am getting this issue:

[armeabi-v7a] Compile++ thumb: ijkplayer <= ijkstl.cpp

fcntl(): Bad file descriptor error: invalid argument '-std=c99' not allowed with 'C++' make: *** [/Users/itechnolabs/Library/Android/sdk/ndk/21.0.6113669/build/core/build-binary.mk:478: /Users/itechnolabs/camcloud-android-v2/camcloudLib/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs/ijkplayer/ijkavutil/ijkstl.o] Error 1

Can someone please help me.

Thanks

sam3961 avatar Mar 13 '24 14:03 sam3961

I guess that , ijkplayer/android/ijkplayer/ijkplayer-arm64/src/main/jni/ijkmedia/ijkplayer,at the direction,the makefile can't be added as follow: LOCAL_CFLAGS += -std=c99;just remove it! This file :mijkplayer/android/ijkplayer/ijkplayer-arm64/src/main/jni/ijkmedia/ijkplayer/ijkavutil/ijkstl.cpp is a c++ file ,if add -std=c99 global flag,the compiler can't transfer c++ to c standard(c99 standard not compatible for c++)。

focuseyes360 avatar Apr 23 '24 04:04 focuseyes360