Bug #4956

make sure matlab works with installed version of kepler 2.0

Added by Chad Berkley almost 10 years ago. Updated over 9 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


need to get matlab demo workflows working. (189 KB) jianwu jianwu, 05/13/2010 04:34 PM

Related issues

Blocked by Kepler - Bug #4943: RC5 Installer Tracking BugResolved04/19/2010


#1 Updated by jianwu jianwu over 9 years ago

Daniel and I are updating to make it work with Mac 64 bit. It will be done in one or two days. We will test it in Windows, Linux and Mac, 32 bit and 64 bit. After that, we should be able to get new matlab libraries.

Chad, do you want to wait a few days to test new libs after we get them?

#2 Updated by Chad Berkley over 9 years ago

Yeah, I'll wait for your changes. Let me know as soon as you get it working.

#3 Updated by jianwu jianwu over 9 years ago

Dan and I updated the in ptolemy module, created the libs for Mac (32 and 64 bit), Windows (32 and 64 bit), Linux (32 bit). We also updated the Matlab demo workflow explaining how to use run it in 64 bit environment.

The libs for windows bit and 64 bit can not be merged like Mac. To use in windows 64, users have to rename lib ptmatlab64.dll to ptmatlab.dll bit by themselves.

All the changes have been checked into both 2.0 branch and trunk.

The only thing left is to generate lib for Linux 64 bit. It probably will get a separate lib like the one for windows 64 bit. We do not have Linux 64 bit installed, so we didn't do it.

Chad, you can go ahead to test these libs now.

#4 Updated by jianwu jianwu over 9 years ago

I made a wiki page ( at kepler web site about how to build Matlab libraries on their own environments.

Feel free to update it.

#5 Updated by jianwu jianwu over 9 years ago

re-assign to Jianwu

#6 Updated by Daniel Crawl over 9 years ago

works for me on 32 bit mac and windows with RC2

#7 Updated by jianwu jianwu over 9 years ago

works for me on 32 bit linux. closing the bug.

#8 Updated by Christopher Brooks over 9 years ago

This bug is closed, but I just thought I'd update the situation.

I was able to build a 32 bit ptmatlab.dll using Mingw.
I updated

with details.

I also created a Mingw zip file and added it to the ptII8.0 web page

I also updated the Ptolemy demos and the matlab.Expression actor with
better instructions.

I removed ptolemy/jni from the devel trunk and the 8.0 branch.
ptolemy/jni was only necessary because it had ptolemy/jni/launcher which
created an executable that would invoke Ptolemy via JNI. This was necessary
for running Java with JNI under Cygwin. It is no longer necessary, so
it is gone.

The one remaining issue in Ptolemy is to deal with 32 vs. 64 bit.
However, this can wait as I do not have access to a 64 bit machine.

#10 Updated by jianwu jianwu over 9 years ago

Hi Christopher, thanks a lot for your update.
I tried it on 64 bit mac and 64 bit windows. As I expected, it works on 64 bit mac, but not on 64 bit windows.

So I updated the wiki page trying to explain how to build lib for 64 bit windows. You can have a check.

One issue I met is the javah can not be set by ./configure on 64 bit windows, since we do not have mingw32-gcc in 64 bit windows. javah is required to generate ptmatlab.h. So I have to change a little bit to generate matlab lib. I attached the I modified, you can see the changes.

#11 Updated by Christopher Brooks over 9 years ago

Thanks, I merged in that updated version of and configure
into the trunk and the 8.0 release branch.

I'd like to fix this for 64-bit Windows, but I need a machine.

#12 Updated by jianwu jianwu over 9 years ago

thanks. Fixing this for 64-bit Windows needs to get script 64 bit windows and update The work amount may be more than rebuilding matlab actor using JNA. :)

#13 Updated by Redmine Admin almost 7 years ago

Original Bugzilla ID was 4956

Also available in: Atom PDF