Cygwin 我得到了AMR源代码的make错误
我已经从3GPP网站下载了AMR源代码。Cygwin 我得到了AMR源代码的make错误,cygwin,cpu-architecture,computer-architecture,Cygwin,Cpu Architecture,Computer Architecture,我已经从3GPP网站下载了AMR源代码。 当我试图在没有任何修改的情况下编译它时,我得到了错误 不能确定体系结构;使typedefs.h适应您的平台 D:\AMR_3Gpp\26073-800\c-code> make rm -f *.o core rm -f *.a encoder decoder gcc -c -Wall -pedantic-errors -I. -O3 -DWMOPS=0 -DVAD1 agc.c In file included from typedef.h:50,
当我试图在没有任何修改的情况下编译它时,我得到了错误
不能确定体系结构;使typedefs.h适应您的平台
D:\AMR_3Gpp\26073-800\c-code> make
rm -f *.o core
rm -f *.a encoder decoder
gcc -c -Wall -pedantic-errors -I. -O3 -DWMOPS=0 -DVAD1 agc.c
In file included from typedef.h:50,
from agc.h:24,
from agc.c:20:
typedefs.h:179:2: error: #error "can't determine architecture; adapt typedefs.h to your platform"
In file included from agc.c:31:
basic_op.h:33: warning: conflicting types for built-in function `round'
make: *** [agc.o] Error 1
D:\AMR_3Gpp\26073-800\c-code>
我正在windows计算机上使用cygwin。因此,如果有人知道或面临这个错误,“无法确定体系结构;请根据您的平台调整typedefs.h”。请帮我解决这个问题
谢谢和问候,苏曼185
看起来这个项目从未被移植到CYGWIN的gcc环境中 或者
请在typedefs.h中查找此文本,并将周围的宏发布到此处Hi James,因为注释中的文本格式不太好,我已在上面粘贴。Hi Lou Franco,我是linux的新bie。请你指导我如何与一些链接端口。这样我就可以开始了。你最好还是用MINGW构建,因为它可能比这更依赖于它,但是如果你想尝试(1)找出GCC定义的内容来识别自己(2)添加一个部分
#elif defined(u GNUC)
(3)定义其他平台所做的宏(从MSDOS复制开始)-(4)测试并找出是否需要做更多的工作
/*
********* Check current platform
*/
#if defined(__MSDOS__)
#define PC
#define PLATFORM "PC"
#define LSBFIRST
#elif defined(__osf__)
#define OSF
#define PLATFORM "OSF"
#define LSBFIRST
#elif defined(__sun__) || defined(__sun)
#define SUN
#define PLATFORM "SUN"
#undef LSBFIRST
#elif defined(linux) && defined(i386)
#define PC
#define PLATFORM "PC"
#define LSBFIRST
#else
#error "can't determine architecture; adapt typedefs.h to your platform"
#endif