声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 10465|回复: 33

[HHT] 关于emd的程序,高手请指教

  [复制链接]
发表于 2007-4-14 10:01 | 显示全部楼层 |阅读模式

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

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

x
下载了,安装install_emd.m
结果出现以下情况。。

lcc preprocessor error: src/emdc.c:19 Could not find include file "extr.h"
lcc preprocessor error: src/emdc.c:20 Could not find include file "interpolation.h"
lcc preprocessor error: src/emdc.c:21 Could not find include file "local_mean.h"
lcc preprocessor error: src/emdc.c:35 Could not find include file "io.c"
lcc preprocessor error: src/emdc.c:36 Could not find include file "extr.c"
lcc preprocessor error: src/emdc.c:37 Could not find include file "interpolation.c"
lcc preprocessor error: src/emdc.c:38 Could not find include file "local_mean.c"
Error src/emdc.c: 30  missing parameter type
Error src/emdc.c: 30  syntax error; found `*' expecting `)'
Error src/emdc.c: 30  skipping `*' `,' `stop_t' `*' `,'
Error src/emdc.c: 30  missing name for parameter 1 to function `stop_sifting'
Error src/emdc.c: 30  missing name for parameter 2 to function `stop_sifting'
Error src/emdc.c: 30  syntax error; found `int' expecting `{'
Error src/emdc.c: 30  empty declaration
Error src/emdc.c: 30  syntax error; found `,' expecting `;'
Error src/emdc.c: 30  skipping `,'
Error src/emdc.c: 30  empty declaration
Error src/emdc.c: 30  syntax error; found `)' expecting `;'
Error src/emdc.c: 30  skipping `)'
Error src/emdc.c: 39  syntax error; found `{' expecting `;'
Error src/emdc.c: 39  too many errors

  D:\MATLAB\R2007A\BIN\MEX.PL: Error: Compile of 'src/emdc.c' failed.

Compilation failed: Error using ==> mex at 206
Unable to complete successfully.

Installation complete. Run index_emd for a list of functions.

IMPORTANT: After running INSTALL_EMD you must run the "savepath" command to save the installation
but be careful that if you previously removed parts of the path (using e.g. the "rmpath" command)
these will be permanently removed after you run "savepath"

不知道是怎么回事啊,请高手指教
matlab的版本是2007a,是不是版本不适合啊?谢谢。

评分

1

查看全部评分

回复
分享到:

使用道具 举报

发表于 2007-4-14 10:34 | 显示全部楼层
原帖由 murhythm 于 2007-4-14 10:01 发表
下载了,安装install_emd.m
结果出现以下情况。。

lcc preprocessor error: src/emdc.c:19 Could not find include file "extr.h"
lcc preprocessor error: src/emdc.c:20 Could not find incl ...



首先安装C++(VC或者BCB均可),然后在matlab中运行 mbuild -setup 和 mex -setup,最后再运行 install_emd.m

评分

1

查看全部评分

发表于 2007-4-14 11:02 | 显示全部楼层

回复 #2 eight 的帖子

为什么我在运行mbuild -setup 和 mex -setup时很顺利,但是在运行install_emd.m时就出现了不正常呢?
>> install_emd.m
??? The function, script, or class install_emd
cannot be indexed using {} or . indexing.
发表于 2007-4-14 11:12 | 显示全部楼层
原帖由 bingbing1110 于 2007-4-14 11:02 发表
为什么我在运行mbuild -setup 和 mex -setup时很顺利,但是在运行install_emd.m时就出现了不正常呢?
>> install_emd.m
??? The function, script, or class install_emd
cannot be indexed using {}  ...


请阅读matlab基础书,看看m文件是如何运行的(事实上很简单,把.m去掉)

注意运行 mbuild 和 install 是为了把你机子上安装的C++ 关联到matlab的编译器中,所以不能选择 LCC 那个,否则结果跟你一楼的情形一样

[ 本帖最后由 eight 于 2007-4-14 11:14 编辑 ]
发表于 2008-7-17 09:18 | 显示全部楼层
还是不行啊,大虾能不能详细点?是不是之前还要个vc++啊?
发表于 2008-7-17 10:08 | 显示全部楼层
当然要先安装VC++ 6.0了,然后再试试。
不过我是这样操作的但是好像是缺少 一个属性为dll的文件 失败了
具体怎么解决,请搞定的回答
发表于 2008-7-17 10:47 | 显示全部楼层
肯定有搞定的同志啊,在这个地方就卡住了,很打击菜鸟的激情啊。大虾说说啊。
发表于 2008-8-4 21:53 | 显示全部楼层
在安装mex -setup时,有个warning,不太知道什么意思,我刚开始学matlab,还请高手赐教
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-8-5 10:31 | 显示全部楼层
>> 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-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2008a\sys\lcc
[2] Microsoft Visual C++ 6.0 in D:\Program Files\Microsoft Visual Studio C++\MSDev98

[0] None

Compiler: 2

Please verify your choices:

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

Are these correct [y]/n? y
Warning: MBUILD requires that the Microsoft Visual C++ 6.0
directories "VC98" and "Common" be located within the same parent directory.
(Expected to find these directories in 'D:\Program Files\Microsoft Visual Studio C++\MSDev98'.)
Trying to update options file: C:\Documents and Settings\zzj\Application Data\MathWorks\MATLAB\R2008a\compopts.bat
From template:              C:\PROGRA~1\MATLAB\R2008a\bin\win32\mbuildopts\msvc60compp.bat

Done . . .

>>  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-win32 C 2.4.1 in C:\PROGRA~1\MATLAB\R2008a\sys\lcc\bin
[2] Microsoft Visual C++ 6.0 in D:\Program Files\Microsoft Visual Studio C++\MSDev98

[0] None

Compiler: 2

Please verify your choices:

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

Are these correct [y]/n? y
Warning: MEX requires that the Microsoft Visual C++ 6.0
directories "VC98" and "Common" be located within the same parent directory.
(Expected to find these directories in 'D:\Program Files\Microsoft Visual Studio C++\MSDev98'.)
Trying to update options file: C:\Documents and Settings\zzj\Application Data\MathWorks\MATLAB\R2008a\mexopts.bat
From template:              C:\PROGRA~1\MATLAB\R2008a\bin\win32\mexopts\msvc60opts.bat

Done . . .

**************************************************************************
  Warning: The MATLAB C and Fortran API has changed to support MATLAB
           variables with more than 2^32-1 elements.  In the near future
           you will be required to update your code to utilize the new
           API. You can find more information about this at:
           http://www.mathworks.com/support/solutions/data/1-5C27B9.html?solution=1-5C27B9
           Building with the -largeArrayDims option enables the new API.
**************************************************************************

>>  install_emd
cemdc.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cemdc.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc.c' failed.

cemdc.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cio.c(121) : warning C4018: '!=' : signed/unsigned mismatch
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\clocal_mean.c(58) : error C2065: 'M_PI' : undeclared identifier

  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc.c' failed.

cemdc_fix.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cemdc_fix.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc_fix.c' failed.

cemdc_fix.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cio_fix.c(104) : warning C4018: '!=' : signed/unsigned mismatch
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\clocal_mean.c(58) : error C2065: 'M_PI' : undeclared identifier

  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc_fix.c' failed.

cemdc2.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cemdc2.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc2.c' failed.

cemdc2.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cio.c(121) : warning C4018: '!=' : signed/unsigned mismatch
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\clocal_mean2.c(62) : error C2065: 'M_PI' : undeclared identifier

  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc2.c' failed.

cemdc2_fix.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cemdc2_fix.c(19) : fatal error C1083: Cannot open include file: 'complex.h': No such file or directory

  C:\PROGRA~1\MATLAB\R2008A\BIN\MEX.PL: Error: Compile of 'cemdc2_fix.c' failed.

cemdc2_fix.c
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\cio_fix.c(104) : warning C4018: '!=' : signed/unsigned mismatch
C:\Program Files\MATLAB\R2008a\toolbox\package_emd\EMDs\src\clocal_mean2.c(62) : error C2065: 'M_PI' : undeclared identifier

  C:\PROGRA~1\MATLAB\R2008A\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
Some errors occurred during compilation. See details above.
Installation complete. Run index_emd for a list of functions.
IMPORTANT: After running INSTALL_EMD you must run the "savepath" command to save the installation
but be careful that if you previously removed parts of the path (using e.g. the "rmpath" command)
these will be permanently removed after you run "savepath"
>>
回复 支持 2 反对 0

使用道具 举报

发表于 2008-8-5 10:33 | 显示全部楼层
我是新手,安装EMD过程出现一下情况,请高手帮忙指导,谢谢,:@) 建议建一个EMD的QQ交流群,方便及时交流
发表于 2008-8-5 10:34 | 显示全部楼层

回复 4楼 的帖子

我用的matlab7.6版本,vc++都装了,在运行mbuild -setup 和 mex -setup时都有错:MEX.PL: Error: No file names given. 说没有mex.pl 文件。
发表于 2008-8-6 14:03 | 显示全部楼层
看来问题真的很多,难道就没有安装成功的朋友出来说话吗:@o
发表于 2008-8-6 14:23 | 显示全部楼层
不知道EMD学习的QQ群多少,加在一起交流一下啊:@(
发表于 2009-3-14 16:05 | 显示全部楼层
安装就是9楼的方法啊  没错的 我就安上了  仔细看看是其中选项  按不上的再好好试试
发表于 2009-3-22 16:20 | 显示全部楼层
:@) 我也按上了 ,按照九楼的方法,但电脑上得先装C/C++
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-11-17 19:29 , Processed in 0.061596 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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