Stand Alone exe created on 32 bit machine but for use on 64 bit machine.
Show older comments
Not 100% that this is in fact the problem, but I think its a good chance. I created a stand alone exe on an XP machine (32 bit), but the target machine is a Windows 7 one (64 bit) without MatLab. When I install on the 7 machine with the MCRInstaller and then try to access the application I created I get a failure with no specific error messages as the Command window closes immediately.
Any thoughts would be greatly appreciated.
Answers (3)
Kaustubha Govind
on 20 Mar 2012
0 votes
Could you try running the executable from a command window, instead of simply double-clicking on the icon? Running it manually from a prompt will display the error on the command window. That should help us diagnose the issue better. (Btw, you should be able to run a 32-bit Windows compiled application on 64-bit Windows)
10 Comments
Jordan
on 28 Mar 2012
Jane Jean
on 28 Mar 2012
I am also trying to run a mexw32 on a 64-bit windows. However the error message shows
Undefined function 'geometryMatrix' for input arguments of type 'double'.
I tried to recompile it on 64-bit Matlab but the program crashed. Now I'm checking every line to see what caused the crash but the program is so unstable that it works a few times and doesn't work anymore even if the c code stays the same. What exactly do we need to do to update a 32-bit program to a 64-bit program?
Kaustubha Govind
on 30 Mar 2012
Jane: It seems like yours is a different issue. Could you create a new question for this please?
Kaustubha Govind
on 30 Mar 2012
Jordan: Are you trying to load a MAT-file in your code by any chance? If yes, have you added to the CTF archive by adding it under "Additional/Other Files" in deploytool (or use the -a option if using mcc)?
Also, do you have any figure windows that your application opens up?
Jordan
on 2 Apr 2012
Image Analyst
on 2 Apr 2012
I deploy apps created using GUIDE all the time so that, in itself, is not a problem. Forget about 64 for the moment. If you deploy your app to a 32 bit computer, other than your own, does it run on that 32 bit computer? You'll need to compile on your 32 bit version of MATLAB and re-run msetup to do this if you had been running 64 bit MATLAB. Actually I'm not even sure that is possible - to run 64 bit MATLAB on a 32 bit computer - so you may not have to re-run msetup. When you said "for use on a 64 bit computer" were you compiling under 64 bit MATLAB or 32 bit MATLAB?
Titus Edelhofer
on 2 Apr 2012
Or even one step earlier: did you try to run the executable on your XP machine and does it run there?
Jordan
on 6 Apr 2012
Image Analyst
on 6 Apr 2012
OK forget about YOUR XP machine. Compiled apps will often run on your machine (the one you compiled the app on) but not on end user's machines, so that reveals nothing surprising. Does your app run on an end user's XP machine that is a physically separate machine that yours?
Jordan
on 6 Apr 2012
Yash
on 23 Mar 2012
0 votes
You will need to install the MCR based on the compiler so for example, if the compiler is R2007a 32Bit, then you need the same MCR.
Image Analyst
on 30 Mar 2012
0 votes
1 Comment
Image Analyst
on 6 Apr 2012
OK, now we're getting somewhere. You say in your comment to me in Kaustubha's answer that you can't even get your program to run as a 32 bit app on a 32 bit computer (that's not your own) running 32 bit Windows XP. (I hope this is what you tried because obviously a 64 bit app won't work on 32 bit XP.) So now it's not a 32 bit/64 bit issue, it's just an issue of getting your app to run at all on a different computer. Please look over the list of 7 things to try when you app doesn't run in the FAQ, that I mentioned above, and let me know if all of those are OK and it still doesn't run. I compile stuff all the time and have seen lots of weird things so I might be able to help.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!