0
我在编译FFmpeg-Vitamio时遇到以下编译错误。函数'lseek64'的隐式声明在C99中无效
我的操作系统是的Mac OS X 10.10.9
NDK版本:的Android NDK,r10d
gcc版本:
$gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.1
Thread model: posix
错误消息:
libavformat/fd.c:59:9: error: implicit declaration of function 'lseek64' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
return lseek64(fd, pos, whence);
所以你在Mac上使用Mac的命令行工具编译,它怎么到Android有关? –
@AntonSavin因为它明显涉及到android NDK。请阅读 –
@AntonSavin也许海湾合作委员会版本:困惑。是的,正如Ed George所说,我使用NDK r10d。 –