|
|
relative and absolute path problems
hi,
I simply have no idea how to tackle this (whether it is possible), so any help will be greatly appreciated.
I have got an exe file compiled from a number of m files and mex file using matlab mcc command. When running the exe file it calls mex a couple of times. Mex in turn calls some external, separate files containing required parameters. It all works fine on my machine.
Problems starts when you run the exe kernel in the on a different machine, under a C interface which I believe creates a temp directory for the kernel (someone else designed the interface). The mex file cannot locate the folder with external files anymore and kernel crashes after running from the user interface.
I though I should change the path in mex gateway function (f90) to something else but (perhaps an absolute rather than relative path??) but these are just guesses. I suppose ideally I should make the folder with externel files part of the exe, but then how to point the directory to 'itself'...
cheers
Mat
|
|
0
|
|
|
|
Reply
|
Mateusz
|
11/16/2010 6:44:04 PM |
|
Mat:
What do you mean by "under a C interface"?
What operating system are you using?
Are you using a startup.m file? This gets run when you compile an m-
file and run it.
Try printing out mfilename, pwd, and ctfroot in your opening function
to see what they say.
Have you looked at sections 3.10 and 3.11 of the FAQ?
http://matlab.wikia.com/wiki/FAQ
|
|
0
|
|
|
|
Reply
|
ImageAnalyst
|
11/17/2010 12:32:44 AM
|
|
|
1 Replies
349 Views
(page loaded in 0.023 seconds)
Similiar Articles: Current file - comp.lang.tclHi, I stumlede upon a surprising problem: how do I source I file in a path relative to ... (Note that this path may be absolute or relative depending on the way you ... How to get absolute uri by combining the baseuri and the relative ...For example, the path component must consist of at least one slash ... How to get absolute uri by combining the baseuri and the relative ... How to get absolute uri by ... Opening Word Pro 97 docs with SEND Event script in Windows - comp ...... file using the SEND EVENT script (with the relative path ... be greatly appreciated in resolving this problem. ... Accounts/Account1.doc is used as the absolute path in ... getcwd() - comp.unix.programmer... used doesn't make sense; it gives the maximum relative path ... perhaps there is another way to solve your problem ... Linux man page The getcwd() function copies an absolute ... Help opening url - comp.databases.filemakerThat relieves you of the problem you describe AND allows you to update the help ... Desktop\solution > older\documentation\help.htm > > I would like to use a relative path ... Modelsim crash (code 211) when using library - comp.arch.fpga ...... absolute library path, it would crash, but if I gave it a relative path, it ran. I was later able to get this same testbench running with an absolute library path after ... Help Importing Excel in Script - comp.databases.filemaker ...... of the dialog box with the words "Save relative path only"? If you find this check box, make sure it IS NOT CHECKED. This will tell FileMaker to use an ABSOLUTE PATH to ... fopen with path - comp.soft-sys.matlabGavin, you undoubtedly hit the problem directly; I didn't read the details ... in the same ... directory information if it was fopen()'d with just a relative path ... merge field part missing - comp.databases.filemakerThe problem field when added as a native field displays correctly. Curiously ... Perhaps the reference does not have a 'relative' path and is there fore looking at ... Edit preferences: Working directory - comp.soft-sys.matlab ...It's sounds like you have a path problem. > > Look in the set path dialog by going ... MATLAB work folder:q:\MyDocs\MATLAB Warning: Userpath must be an absolute path and ... Internet Connection, Inc. - Absolute and Relative File PathsTalks about difference between absolute and relative url paths. Discusses problem with SSL and embedding images with absolute paths. Absolute Path Problem in DW: dreamweaver, absolute, pathI've got a problem with absolute paths not working in DreamWeaver. I have ... site root relative and ../global is document root relative. To DW, an absolute path ... 7/26/2012 5:33:08 PM
|
|
|
|
|
|
|
|
|