本文介绍了如何处理* .h.cmake文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图构建(模块使用)。但是mingw32-gcc显示错误:soxstdint.h:没有这样的文件。 SoX源代码不分发soxstdint.h,只分发soxstdint.h.cmake。我与它有什么关系?我找不到可以帮助我。



我需要获得soxstdint.h。很好,如果有人能告诉我一些背景信息。

a href =http://pypi.python.org/pypi/pysox#downloads =nofollow noreferrer>你提供的链接,并且字符串soxstdint没有出现在它的任何文件中。沿着同样的路线,也没有soxstdint.h.cmake文件。你从哪里获得源代码?顺便说一句,我也下载了,它也是不包括字符串soxstdint。



这就是说,stdint.h是一个标准的C库文件,它包含在sox和pysox发行版中的几个文件中我下载了。现在,stdint.h被包含在Visual Studio中,所以也许SoX人创建了一个自定义版本作为解决方法,并且由于您在Windows上,因此它正在被查找,但由于它是MinGW而不是Visual Studio,因此解决方法失败。



我建议您下载最新的pysox和sox源代码或预编译的二进制包,如果这样的东西可用于MinGW。如果你已经有了,那么在SoX的CMakeLists.txt文件中可能有一个小错误,它可能会将sox和stdint.h连接起来而没有斜杠(/)或其他重要的字符将它们分开。如果失败了,我认为你需要呼吁SoX和PySoX开发者。他们应该有兴趣看到他们的代码在像MinGW这样的平台上工作。


I'm trying to build pysox (module to use SoX in Python). But mingw32-gcc show the error: "soxstdint.h: No such file". The SoX source code doesn't distribute a "soxstdint.h", only a "soxstdint.h.cmake". What do I have to do with it? I couldn't figure out whether CMake can help me.

I need to get "soxstdint.h". Fine, if somebody can tell me some background information.

解决方案

I just downloaded the pysox 0.3.6.alpha source from the link you provided, and the string soxstdint does not appear in any of its files. Along the same lines, there is no soxstdint.h.cmake file either. Where did you get your source? BTW, I also downloaded SoX 14.4.0 and it also does not include the string soxstdint.

That being said, stdint.h, is a standard C library file, and it is #included by several files in the sox and pysox distributions I downloaded. Now stdint.h was not until recently included with Visual Studio, so perhaps the SoX people created a custom version as a workaround, and since you are on Windows, it is being looked for, but since it is MinGW and not Visual Studio, the workaround is failing.

I recommend downloading the latest pysox and sox source or a prebuilt binary package, if such things are available for MinGW. If you already have, then there is likely a small bug in SoX's CMakeLists.txt files that is perhaps concatenating "sox" and "stdint.h" without a slash (/) or other important character separating them. If that fails, I think you need to appeal to the SoX and PySoX developers. They should be interested in seeing their code work on platforms like MinGW.

这篇关于如何处理* .h.cmake文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 14:22