I've created a deployment project which works rather well and now I want to add it to source control repository for others to use.
The main problem I'm facing is that the .prj
file which deploytool
creates contains absolute paths which will not work on other computers. So far I've tried the following:
- Create the stand alone exe using just
mcc
withoutdeploytool
. This works great but I could find a way to create the final_pkg.exe
which contains everything. mcc doesn't seem to be able to create this file and there doesn't seem to be any other tool which does. Is this really the case? - Edit the
.prj
file to include relative paths instead of absolute paths. This only works partially because the.prj
file contains a section calledMATLABPath
which is always replaced with the currentsetpath
of matlab. anyone which uses this file will have to check it out since it is being changed when used. - Find a way to generate the
.prj
file. the mcc documentation say:Project files created using either mcc or deploytool are eligible to use this option.
suggesting there is a way to create a.prj
file usingmcc
but I wasn't able to find how this can be done.
Is there a solution to this situation?
I personally use Visual Studio 2005 project to maintain my deployment projects and then convert the VCPROJ to PRJ on the fly using build command step http://younsi.blogspot.com/2011/11/matlab-relative-path-issue-in-prj.html