声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1019|回复: 0

[混合编程] 求助:下面这个关于混编的问题怎么解决

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

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

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

x
本帖最后由 ChaChing 于 2010-9-7 14:57 编辑

在matlab里调用vc时,总是出错。我 已经设置了编译器。但运行时总是出现错误。
>> 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\R2009b\sys\lcc
[2] Microsoft Visual C++ 2005 SP1 in C:\Program Files\Microsoft Visual Studio 8
[3] Microsoft Visual C++ 6.0 in C:\Program Files\Microsoft Visual Studio

[0] None

Compiler: 3

Please verify your choices:

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

Are these correct [y]/n? y

Trying to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R2009b\mexopts.bat
From template:              C:\PROGRA~1\MATLAB\R2009b\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:
           
           Building with the -largeArrayDims option enables the new API.
**************************************************************************
运行时就出现:'h264encoder' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
该命令处是:str_cmd = ['!h264encoder -d h264enc.cfg -p InputFile=',fin,' -p FramesToBeEncoded=',str_fnum,' -p QPISlice=',str_qp];
eval(str_cmd);
h264encoder是可执行文件。
都快一个月了,还没找到原因,电脑系统重装了两次,中间又一次正确了。可后面怎么也不正确,请求大家给予帮助。谢谢啦!

有没有知道的,请帮个忙。如果这个问题解决不了,没法继续后面的学习。希望大家多多帮助一下!
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-5-13 14:21 , Processed in 0.063836 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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