Welcome, Guest. Please Login.
OpenDX User Forum
05/23/13 at 06:57:08


Pages: 1
opendx with matlab (Read 1563 times)
buddy
Forum Newbie
*


Got Viz?

Posts: 11
opendx with matlab
05/17/11 at 02:13:03
 
  I use "dx -builder" to make a new module ,named matlab .In this new module,I try to call matlab to draw some pictures .In matlab.make file,I add " -I /usr/local/matlab/extern/include/  -L /usr/local/matlab/bin/glnx86/ -leng " ,so that module can compile successfully . I can use the module in opendx without any problem .But in the  webdx,  there is  a problem when I use this module . Error is that : MDF file:Invalid data:cannot load file 'matlab',libeng.so:cannot open shared object file:No such file or directory /module matlab
    cry,I don't know why I can use the module in opendx ,but in webdx there is a problem .  
   Joelr ,do you have any ideas ?
Back to top
 
 
Email   IP Logged
joelr
OpenDX Forum Administrator
*****


Got Viz?

Posts: 388
Re: opendx with matlab
Reply #1 - 05/17/11 at 03:55:25
 

First thing is to make sure it's finding your MDF file ok when running webdx.
In the config xml file for your app, add the following property:
 
<property  
           name="mdf"
           type="cmd-arg"
           value="-mdf FILE" />
 
where FILE is the full path to your .mdf file.  
 
If you still have problems, in your mdf, try giving the complete path
to your .so file.
 
Joel
Back to top
 
 
Email   IP Logged
buddy
Forum Newbie
*


Got Viz?

Posts: 11
Re: opendx with matlab
Reply #2 - 05/17/11 at 19:49:51
 
 I'm sure that it's finding my MDF file ok .So this problem is caused by .so file.
  I try many methods to give the complete path to .so file,but non of them are ok , problem still exists.
  Joelr,please give me some details on give the complete path to .so file in MDF file.
Back to top
 
 
Email   IP Logged
joelr
OpenDX Forum Administrator
*****


Got Viz?

Posts: 388
Re: opendx with matlab
Reply #3 - 05/18/11 at 04:06:14
 

All I mean is to give the path starting at the top, e.g., /usr/local/lib...
 
Would you post the MDF entry for your module?
 
Back to top
 
 
Email   IP Logged
buddy
Forum Newbie
*


Got Viz?

Posts: 11
Re: opendx with matlab
Reply #4 - 05/19/11 at 07:11:09
 
  I know that what the problem is,because of environment variables .
   I set  environment variables about matlab in .bashrc file ,but  I start webdx service with root permission .
   So I set environment variables  in /etc/profile file ,everything is ok!
   thank you ,joelr!
Back to top
 
 
Email   IP Logged
Pages: 1