spams tool for image processing -- compiling error

Hello
I am muthana from Iraq. I have some questions about a spams tool that calls a c++ lib from MATLAB.
MATLAB does not execute to the end of the compile program. Why not?

回答 (2 件)

Walter Roberson
Walter Roberson 2018 年 1 月 5 日

1 投票

For whatever reason it is expecting a file or directory named "Files" inside your current directory, but is not finding it. We cannot tell from the screenshot whether you have such a file or directory name.
I suspect that you have a directory that starts with 'Files' and then has a space in it, and that the command that was given to mex failed to put quote marks around the directory name. mex normally considers spaces to be the end of the option or file name.

14 件のコメント

muthana naeem
muthana naeem 2018 年 1 月 6 日
please tell me what do you mean by (files) ican not find it
Walter Roberson
Walter Roberson 2018 年 1 月 6 日
You see the first error message in red? It talks about D:\projectresearch2\matlabworks\spamlibrary\spammatlab\Files not found. Your title line shows that you have D:\projectresearch2\matlabworks\spamlibrary\spammatlab as your current directory, so it is looking for something named Files within your current directory and it is not finding it.
I cannot tell from the screenshot what command you gave to MATLAB.
As I look at the source code at https://github.com/AllenXL/Image_Video_Processing-Matlab/blob/master/My-Matlab-Toolbox/spams-matlab-v2.3-svn2013-06-20/spams-matlab/compile.m I see a potential bug. I also notice that is not the version you are using (the line numbers do not match), which leads me to notice that you are not using the latest version. The latest version is at https://gitlab.inria.fr/thoth/spams-devel and it would probably be better for you to load in that version.
muthana naeem
muthana naeem 2018 年 1 月 6 日
please i run your version but sill not work and the same message error above
Walter Roberson
Walter Roberson 2018 年 1 月 6 日
Please attach a copy of the compile.m script with any changes you have made to it.
Image Analyst
Image Analyst 2018 年 1 月 6 日
What is this? What does a spams tool have to do with image processing?
Walter Roberson
Walter Roberson 2018 年 1 月 6 日
SPAMS is "Sparse Modeling". The code that appears to be in use seems to be a fork from that called the THOTH project, http://thoth.inrialpes.fr/ "Modeling visual knowledge from large-scale data "
muthana naeem
muthana naeem 2018 年 1 月 7 日
hello iam happy to your comment i hope to solve this by your idea the compiler are in the attachment thannnnnnnnnnnnnnx
Walter Roberson
Walter Roberson 2018 年 1 月 7 日
You have configured gcc. The Windows portion of the compile.m says,
% example when compiler='gcc' for Windows+cygwin: (the script does not
% work at the moment in this configuration
so they are not expecting the code to work for some reason.
muthana naeem
muthana naeem 2018 年 1 月 7 日
please tell me what i must do ?how can you help me ?
muthana naeem
muthana naeem 2018 年 1 月 7 日
can help me on how can change 'gcc' to other compiler
muthana naeem
muthana naeem 2018 年 1 月 7 日
my email is muthana.naeem.derasat@gmail.com can i get your email ?
Walter Roberson
Walter Roberson 2018 年 1 月 7 日
If you have visual studios installed, edit the line
compiler='gcc';
to
compiler='vs';
I would not be surprised if you continue to have the same problem, though. I can see what is probably happening, but when I look at the function I do not see quite why it is happening.
muthana naeem
muthana naeem 2018 年 1 月 12 日
very thanks to you but you tell me that not working on windows it ia working on linux are you sure?? i will convert my system to linux is the same matlab version on windows will work on linux ???
muthana naeem
muthana naeem 2018 年 1 月 12 日
ohhh my god all problems are solved in windows i change the gcc to vs it is work on compilation succesfuly but i need help to get more information aboout the result please help me

サインインしてコメントする。

muthana naeem
muthana naeem 2018 年 1 月 12 日

0 投票

i have this problem in the end of compile but it start successfully how can solve this

1 件のコメント

Walter Roberson
Walter Roberson 2018 年 1 月 12 日
編集済み: Walter Roberson 2018 年 2 月 10 日
This turns out to be involved with a messy inconsistency between C and C++. See https://trac.osgeo.org/geos/ticket/34 and http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456
I speculate that compiling with a new enough VS set to -std=c++11 might possibly work, but I am not at all certain. It might call for a small change to the code to
#include <cctype>

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2018 年 1 月 5 日

編集済み:

2018 年 2 月 10 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by