python-librtmp icon indicating copy to clipboard operation
python-librtmp copied to clipboard

【win10】fatal error C1083: Cannot open include file: 'librtmp/rtmp.h': No such file or directory

Open sclzzhanghaijun opened this issue 6 years ago • 7 comments

librtmp._librtmp.c build\temp.win-amd64-3.7\Release\librtmp._librtmp.c(493): fatal error C1083: Cannot open include file: 'librtmp/rtmp.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

sclzzhanghaijun avatar Sep 27 '18 11:09 sclzzhanghaijun

问题解决了吗?我也是同样的问题

wangfeili avatar Oct 24 '18 03:10 wangfeili

sudo apt-get install librtmp-dev sudo pip install python-librtmp

wuhengzhi avatar Nov 09 '18 08:11 wuhengzhi

apt-get cannot be used on windows

wuxie2015 avatar Dec 01 '18 10:12 wuxie2015

没有,windows上安装还是有问题

sclzzhanghaijun avatar Apr 02 '19 07:04 sclzzhanghaijun

is there any news? i found some guides to compile librtmpdump on windows: here and here

But I have not been successful so far. Is this the only approach to install the library to a Windows machine?

davidsalb avatar Oct 29 '19 11:10 davidsalb

librtmp工程中有个子目录叫librtmp,该子目录中有头文件,所以将该 librtmp 子目录整个放到 pip install 时会去寻找的头文件路径中。比如运行 pip install python-librtmp 之后,控制台会输出 ... -Id:\program files\python3.9.6\include,其中 -l 后面就是 pip install 时会去寻找的头文件路径。将上面提到的 librtmp 子目录,整个放入 ...\python3.9.6\include\ 下就可以了。这个其实还是遵循了 gcc 的编译规则。

hongjunxin avatar Jul 27 '21 07:07 hongjunxin