声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 5269|回复: 31

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

[复制链接]
发表于 2008-5-9 09:22 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
多谢各位了!
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

本帖被以下淘专辑推荐:

回复
分享到:

使用道具 举报

发表于 2008-5-9 09:24 | 显示全部楼层

回复 楼主 的帖子

MATLAB,VC++是什么版本?

[ 本帖最后由 zhangnan3509 于 2008-5-9 11:35 编辑 ]
 楼主| 发表于 2008-5-9 09:27 | 显示全部楼层
VC++是6.0的版本,还要什么
 楼主| 发表于 2008-5-9 09:29 | 显示全部楼层

wo

我把pack_emd.zip解压后放在matlab7下,然后在命令窗口输入install_emd
 楼主| 发表于 2008-5-9 09:42 | 显示全部楼层
我打开cemdc.c 文件,发现其中有一行是
#include <complex.h>
请问我该怎么做?您那里有这个文件吗?
发表于 2008-5-9 09:46 | 显示全部楼层

回复 5楼 的帖子

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

注意搜索论坛

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

[ 本帖最后由 zhangnan3509 于 2008-5-9 09:49 编辑 ]
发表于 2008-5-9 09:53 | 显示全部楼层
搜索一下电脑,找到complex.h的路径,然后在VC中包含这个路径试试.
 楼主| 发表于 2008-5-9 09:56 | 显示全部楼层
好的,非常感谢各位^_^:@)
 楼主| 发表于 2008-5-9 10:28 | 显示全部楼层
还是不行啊,我还给VC安装了sp5,结果还是提示没有那个complex.h文件
发表于 2008-5-9 10:33 | 显示全部楼层

回复 9楼 的帖子

您看那个帖子了吗?
按照上面的方法做了吗?
首先安装C++(VC或者BCB均可),然后在matlab中运行 mbuild -setup 和 mex -setup,最后再运行 install_emd.m
 楼主| 发表于 2008-5-9 10:34 | 显示全部楼层
我搜索了电脑,也没有发现一个complex.h文件
 楼主| 发表于 2008-5-9 10:35 | 显示全部楼层
恩,我按照您的说法做了,前面两步没有出错,但是到最后一步就有问题了

[ 本帖最后由 eight 于 2008-5-12 16:23 编辑 ]
 楼主| 发表于 2008-5-9 10:36 | 显示全部楼层
第一步
mbuild -setup
Please choose your compiler for building standalone MATLAB applications:

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

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

[0] None

Compiler: 2

Please verify your choices:

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

Are these correct?([y]/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
 楼主| 发表于 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 [y]/n? y

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

[0] None

Compiler: 2

Please verify your choices:

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

Are these correct?([y]/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
***************************************************************************
 楼主| 发表于 2008-5-9 10:42 | 显示全部楼层
还有,我下载的EMD文件有两个:pack_emd.tar.gz和pack_emd.zip,我把pack_emd.zip解压后放到matlab下,这样做有问题吗?
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-16 11:44 , Processed in 0.077877 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表