tjucruiser 发表于 2008-5-9 09:22

请问安装EMD工具包时,缺少一个文件怎么解决啊?

多谢各位了!
cemdc.c
cemdc.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc.c' failed.

cemdc.c
clocal_mean.c(58) : error C2065: 'M_PI' : undeclared identifier

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc.c' failed.

cemdc_fix.c
cemdc_fix.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc_fix.c' failed.

cemdc_fix.c
clocal_mean.c(58) : error C2065: 'M_PI' : undeclared identifier

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc_fix.c' failed.

cemdc2.c
cemdc2.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc2.c' failed.

cemdc2.c
clocal_mean2.c(62) : error C2065: 'M_PI' : undeclared identifier

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc2.c' failed.

cemdc2_fix.c
cemdc2_fix.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc2_fix.c' failed.

cemdc2_fix.c
clocal_mean2.c(62) : error C2065: 'M_PI' : undeclared identifier

D:\MATLAB71\BIN\MEX.PL: Error: Compile of 'cemdc2_fix.c' failed.

Warning: The compilation of the following files failed:
> In make_emdc at 48
In install_emd at 26
cemdc.c
cemdc_fix.c
cemdc2.c
cemdc2_fix.c

zhangnan3509 发表于 2008-5-9 09:24

回复 楼主 的帖子

MATLAB,VC++是什么版本?

[ 本帖最后由 zhangnan3509 于 2008-5-9 11:35 编辑 ]

tjucruiser 发表于 2008-5-9 09:27

VC++是6.0的版本,还要什么

tjucruiser 发表于 2008-5-9 09:29

wo

我把pack_emd.zip解压后放在matlab7下,然后在命令窗口输入install_emd

tjucruiser 发表于 2008-5-9 09:42

我打开cemdc.c 文件,发现其中有一行是
#include <complex.h>
请问我该怎么做?您那里有这个文件吗?

zhangnan3509 发表于 2008-5-9 09:46

回复 5楼 的帖子

http://forum.vibunion.com/forum/thread-40562-1-33.html

注意搜索论坛

这不是版本的问题,而应该是安装的问题了

[ 本帖最后由 zhangnan3509 于 2008-5-9 09:49 编辑 ]

erdgzw 发表于 2008-5-9 09:53

搜索一下电脑,找到complex.h的路径,然后在VC中包含这个路径试试.

tjucruiser 发表于 2008-5-9 09:56

好的,非常感谢各位^_^:@)

tjucruiser 发表于 2008-5-9 10:28

还是不行啊,我还给VC安装了sp5,结果还是提示没有那个complex.h文件

zhangnan3509 发表于 2008-5-9 10:33

回复 9楼 的帖子

您看那个帖子了吗?
按照上面的方法做了吗?
首先安装C++(VC或者BCB均可),然后在matlab中运行 mbuild -setup 和 mex -setup,最后再运行 install_emd.m

tjucruiser 发表于 2008-5-9 10:34

我搜索了电脑,也没有发现一个complex.h文件

tjucruiser 发表于 2008-5-9 10:35

恩,我按照您的说法做了,前面两步没有出错,但是到最后一步就有问题了

[ 本帖最后由 eight 于 2008-5-12 16:23 编辑 ]

tjucruiser 发表于 2008-5-9 10:36

第一步
mbuild -setup
Please choose your compiler for building standalone MATLAB applications:

Would you like mbuild to locate installed compilers /n? y

Select a compiler:
Lcc C version 2.4.1 in D:\MATLAB71\sys\lcc
Microsoft Visual C/C++ version 6.0 in D:\Program Files\Microsoft Visual Studio

None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C/C++ 6.0
Location: D:\Program Files\Microsoft Visual Studio

Are these correct?(/n): y

Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14SP3\compopts.bat
From template:            D:\MATLAB71\BIN\win32\mbuildopts\msvc60compp.bat

Done . . .


--> ""D:\MATLAB71\bin\win32\mwregsvr" "D:\MATLAB71\bin\win32\mwcomutil.dll""

DllRegisterServer in D:\MATLAB71\bin\win32\mwcomutil.dll succeeded

--> ""D:\MATLAB71\bin\win32\mwregsvr" "D:\MATLAB71\bin\win32\mwcommgr.dll""

DllRegisterServer in D:\MATLAB71\bin\win32\mwcommgr.dll succeeded

tjucruiser 发表于 2008-5-9 10:36

第二步
mex -setup
Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers /n? y

Select a compiler:
Lcc C version 2.4.1 in D:\MATLAB71\sys\lcc
Microsoft Visual C/C++ version 6.0 in D:\Program Files\Microsoft Visual Studio

None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C/C++ 6.0
Location: D:\Program Files\Microsoft Visual Studio

Are these correct?(/n): y

Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14SP3\mexopts.bat
From template:            D:\MATLAB71\BIN\win32\mexopts\msvc60opts.bat

Done . . .

***************************************************************************
Warning: The file extension of 32-bit Windows MEX-files was changed
         from ".dll" to ".mexw32" in MATLAB 7.1 (R14SP3). The generated
         MEX-file will not be found by MATLAB versions prior to 7.1.
         Use the -output option with the ".dll" file extension to
         generate a MEX-file that can be called in previous versions.
         For more information see:
         MATLAB 7.1 Release Notes, New File Extension for MEX-Files on Windows
***************************************************************************

tjucruiser 发表于 2008-5-9 10:42

还有,我下载的EMD文件有两个:pack_emd.tar.gz和pack_emd.zip,我把pack_emd.zip解压后放到matlab下,这样做有问题吗?
页: [1] 2 3
查看完整版本: 请问安装EMD工具包时,缺少一个文件怎么解决啊?