Error Cannot Find Ctf Archive
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help Trial software MathWorks Support Team (view profile) 13,593 questions 13,593 answers 13,592 accepted answers Reputation: 2,575 Vote0 Why can't I start my MATLAB Compiler generated executable from a different directory using relative paths? Asked by MathWorks Support Team MathWorks Support Team (view profile) 13,593 questions 13,593 answers 13,592 accepted answers Reputation: 2,575 on 27 Jun 2009 Accepted Answer by MathWorks Support Team MathWorks Support Team (view profile) 13,593 questions 13,593 answers 13,592 accepted answers Reputation: 2,575 29 views (last 30 days) 29 views (last 30 days) I have used MATLAB Compiler to generate a stand-alone application. However, I am unable to run the executable unless I call it from the same directory in which it resides. For example, I might try the following code in MATLAB, where “compiled” is a subdirectory of D:\Applications\MATLABR14\work\temp:mcc -d compiled -m tempfile !D:\Applications\MATLABR14\work\temp\compiled\tempfile.exe However, this results in the following error: Cannot find the directory containing the 'tempfile' component, which is required by this application. Make sure the directory containing 'tempfile.ctf' is on your dynamic load library path (PATH on Windows, or LD_LIBRARY_PATH on Linux, for example), or your application search path (PATH on both Windows and Linux). Error initializing CTF Archive 0 Comments Show all comments Tags ctffailurefailfoundcurrentworking Products MATLAB Compiler Related Content 1 Answer MathWorks Support Team (view profile) 13,593 questions 13,593 answers 13,592 accepted answers Reputation: 2,575 Vote0 Link Direct link to this answer: https://www.mathworks.com/matlabcentral/answers/92619#answer_101969 Answer by MathWorks Support Team MathWorks Support Team (view profile) 13,593 questions 13,593 answers 13,592 accepted answers Reputation: 2,575 on 27 Jun 2009 Accepted answer This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous rele
Planck Institute, Leipzig Next message: [Freesurfer] Mri_glmfit-sim hemisphere correction Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Search archives: Thanks ! Cheers, Pierre On Jul 8, 2016 1:14 PM, "Iglesias, Eugenio"
sorted by: [ date ] [ thread ] [ subject ] [ author ] Search archives: Thanks Matt. Did you somehow get it to work https://mail.nmr.mgh.harvard.edu/pipermail//freesurfer/2016-June/046120.html or recognize the file without the ctf extension? Thanks Jonathan http://stackoverflow.com/questions/18967594/why-do-i-get-an-error-with-fopen-when-using-matlabs-mcc ________________________________________ From: freesurfer-bounces at nmr.mgh.harvard.edu [freesurfer-bounces at nmr.mgh.harvard.edu] on behalf of Hibert, Matthew Louis [MHIBERT at mgh.harvard.edu] Sent: Thursday, June 16, 2016 11:10 AM To: Freesurfer support list Subject: Re: [Freesurfer] Hippocampal subfields error I've also gotten this error recently, with T1, error cannot T2, and combined T1+T2 hippocampal segmentations. It looks like the files exist at /autofs/cluster/freesurfer/centos6_x86_64/dev/bin/segmentSubjectT1_autoEstimateAlveusML.ctf exist, they just don't have the ".ctf" file extension. Matt ________________________________________ From: freesurfer-bounces at nmr.mgh.harvard.edu [freesurfer-bounces at nmr.mgh.harvard.edu] on behalf of Greenberg, Jonathan [JGREENBERG5 at mgh.harvard.edu] Sent: Thursday, June 16, 2016 10:29 AM To: freesurfer at nmr.mgh.harvard.edu Subject: error cannot find [Freesurfer] Hippocampal subfields error Hi all I ran recon-all on data from about 60 participants pre and post an intervention, with the hippocampal subfields flag (e.g. "recon-all -all -subjid SPS01-1910_pre_lazar -hippocampal-subfields-T1"). The recon-all.log file states that the process finished without errors. However, the hippocampal-subfieldsT1.log indicated the following: "Error:Cannot find CTF archive /autofs/cluster/freesurfer/centos6_x86_64/dev/bin/segmentSubjectT1_autoEstimateAlveusML.ctf" (see below for the full content of hippocampal-subfieldsT1.log). I tried to run only the hippocampal subfield recon-all again (e.g. "recon-all -s recon-all -all -subjid SPS01-1910_pre_lazar hippocampal-subfields-T1") and received the same error message. I tried to look in the indicated folder ("/autofs/cluster/freesurfer/centos6_x86_64/dev/bin") and found a file named segmentSubjectT1_autoEstimateAlveusML (without the ctf extension). I do not know if this is the source of the problem. My FREESURFER_HOME directory is /autofs/cluster/freesurfer/centos6_x86_64/stable6/. My SUBJECTS_DIR is /autofs/cluster/lazar/Projects/jonathan-miracle/unpacking-dicoms/SUBJECTS_DIR/. Any suggestions? (full hippocampal-subfieldsT1.log below) Thank you! Jonathan hippocampal-subfieldsT1.log content: #-------------------------------------------- #@# Hippocampal Subfields processing (T1 only) left Thu Jun 16 09:58:23 EDT 2016 ------------------------------------------ Setting up environment variables --- LD_LI
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why do I get an error with fopen when using matlab's mcc? up vote 1 down vote favorite Setup: Windows 7 Enterprise. Matlab 7.10.0 (R2010a). mcc compiler: Microsoft Visual C++ 2008 Express. What's happening: My project runs fine when running it through Matlab, but when trying to run the .exe through the command prompt after using mcc to compile, the command prompt generates an error. The mcc command I issue is: mcc -m -v STARTUP1.m -o EXE_REDUC The error I receive in the command prompt is: ??? Error using ==> textscan Invalid file identifier. Use fopen to generate a valid file identifier. I have a file called LoadXLS.m that loads and reads a .csv file using: fid = fopen(file,'r'); temp_data = textscan(fid,...args...); And then I process temp_data. The csv file I'm trying to load is called spec.csv. It is located two directories down from where I have STARTUP1.m stored. The location of STARTUP1.m is also the place that the mcc generated files are stored to. I have used the pathtool to "Add with subfolders" this location, but am aware that those locations are not transferred to mbuild when compiling. What I've Tried: I have gone in and added print statements to print the value of fid to make sure it is valid. When I run it in Matlab, it has a valid value, however when I run in the command prompt it always returns an invalid value of -1. I have removed all addpath() calls, I have tried adding the STARTUP1.m directory to the mcc ctf archive using: mcc -m -v -a 'C:\Users\...path...\STARTUP1.m_location' STARTUP1.m -o EXE_REDUC; However when I do this, I get a different error when running in the command prompt: Cannot open CTF archive file 'C:\...path...\AppData\Local\Temp\mathworks_tmp_7532_28296' or 'C:\...path...\AppData\Local\Temp\mathworks_tmp_7532_28296.zip' ??? Undefined function or variable 'matlabrc'. To fix this, I've tried adding the pragma %#function matlabrc to the top of STARTUP1.m to try and enforce its inclusion, but had no success. I also copied th