Difference between revisions of "Support:Tech notes"

From COMKAT wiki
Jump to navigation Jump to search
(Reverted edits by Thomasdelange (talk) to last revision by Bucks)
 
(47 intermediate revisions by 23 users not shown)
Line 1: Line 1:
 
== Mex and compiler setting ==
 
== Mex and compiler setting ==
==== How to set up mex compiler on a 64-bit Matlab using Visual Studio 2008 Professional ====
+
==== How to set up mex compiler on a 64-bit Matlab using Visual Studio 2008 Professional ====
# I was using Visual Studio 2008 Profession that is free for college students <span class="plainlinks">[http://www.mycaal.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">loan modification</span>]. I believe 2008 Express works the same way, too.
+
# I was using Visual Studio 2008 Profession that is free for college students. I believe 2008 Express works the same way, too.
# When you install Visual Studio 2008, I recommend to install <span class="plainlinks">[http://www.gumball-machine.com/vending-machines.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">vending machines</span>]  'Full' so that you are sure the 64-bit compilers and libraries are installed.  
+
# When you install Visual Studio 2008, I recommend to install 'Full' so that you are sure the 64-bit compilers and libraries are installed.  
# Go to http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=18508&objectType=file. Download, uncompress and copy the x64 mex option files under the MATLABROOT\bin\win64\mexopts.
+
# Go to Download, uncompress and copy the x64 mex option files under the MATLABROOT\bin\win64\mexopts.
# Do a mex -setup. Let Matlab locate the installed [http://www.bestpills4weightloss.com weight loss pills] compiler. Select "Microsoft Visual C++ 2008".
+
# Do a mex -setup. Let Matlab locate the installed compiler. Select "Microsoft Visual C++ 2008".
# Add your site to [http://www.gurcan.com web directory] in it's related category.
+
# Use mex command to compile a simple file. You get the following error
# Use mex command to[http://www.boyacibadanaustasi.com boyaci] compile a simple file. You get the following error
 
 
<pre>
 
<pre>
 
C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL:   
 
C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL:   
Line 23: Line 22:
 
## Line 34: set LIBLOC=%MATLAB%\extern\lib\win'''64'''\microsoft
 
## Line 34: set LIBLOC=%MATLAB%\extern\lib\win'''64'''\microsoft
 
## Line 36: /MACHINE:'''X64'''
 
## Line 36: /MACHINE:'''X64'''
[http://nailfungustreatmentscure.com/ :)]
 
*[http://tinyurl.com/67l3tla  gamestar]
 
  
 +
NOTE: Environment - Windows Vista 64-bit, Matlab 2007b 64-bit.
  
NOTE: Environment - Windows Vista 64-bit, <span class="plainlinks">[http://emerald-cut-engagement-rings.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">emerald cut engagement rings</span>] Matlab 2007b 64-bit, [http://www.taschen-trends.net/taschen-marken/gola-taschen-redford-quota-oder-doch-lieber-bronson// Gola Taschen].
+
My mexopts.bat file: [[Image:Mexopts.zip]]
 
 
My mexopts.bat file[http://nailfungustreatmentscure.com/ :] [[Image:Mexopts.zip]]  
 
  
 
==== How to set up the C compiler from Visual Studio 2008 on a 64-bit Windows system ====
 
==== How to set up the C compiler from Visual Studio 2008 on a 64-bit Windows system ====
Line 53: Line 49:
  
 
==== Linux ====
 
==== Linux ====
NOTE: Under 64-bit Ubuntu and 64-bit Matlab, you have to do the [http://www.zbsports.com vibram] following changes to make the mex <span class="plainlinks">[http://www.diamondlinks.net/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">link building service</span>] compilation  
+
NOTE: Under 64-bit Ubuntu and 64-bit Matlab, you have to do the following changes to make the mex compilation work.
[http://www.vasundharafertility.com/infertility.php infertility]all about it
 
[http://www.monarch-garments.com/cat_breeches.asp breeches] work.  
 
 
# Edit the mexopts.sh and remove all ''-lstdc++''
 
# Edit the mexopts.sh and remove all ''-lstdc++''
 
# Edit the cvodesGenmod5.c. Find function 'clear' and remove the 'static' declaration.
 
# Edit the cvodesGenmod5.c. Find function 'clear' and remove the 'static' declaration.
 
# When you use gcc to compile, add a flag '-fPIC'.
 
# When you use gcc to compile, add a flag '-fPIC'.
[http://nailfungustreatmentscure.com/ ##]
 
  
 
== How to prepare a COMKAT release ==
 
== How to prepare a COMKAT release ==
Line 86: Line 79:
  
 
== MATLAB Compiler ==
 
== MATLAB Compiler ==
==== Weird behavior of path settings for compiled MATLAB applications ====
+
==== Weird behavior of path settings for compiled MATLAB applications ===
[http://www.xtspy.com/ cell phone spy software]
 
 
__
 
__
 
For example, compiled main_GUI.m under ''c:\comkat\comkat_GUI\'' and set the output directory to be ''c:\compiled_dir\''.
 
For example, compiled main_GUI.m under ''c:\comkat\comkat_GUI\'' and set the output directory to be ''c:\compiled_dir\''.
Line 100: Line 92:
 
Under MATLAB, x will be returned properly; However, under compiled MATLAB application, it returns:
 
Under MATLAB, x will be returned properly; However, under compiled MATLAB application, it returns:
 
<pre> Undefined function or variable 'loadModelTemplate'</pre>
 
<pre> Undefined function or variable 'loadModelTemplate'</pre>
The reason is that, under compiled MATLAB applications, ''fileparts(which('main_GUI'))'' returns the directory of '''c:\compiled_dir\main_GUI_mcr\main_GUI\''' that contains all the encrypted m-files. Once you switch to this folder, although you will find a file called loadModelTemplate, or function won't be able to be called. The command exist('loadModelTemplate') returns  
+
 
 +
The reason is that, under compiled MATLAB applications, ''fileparts(which('main_GUI'))'' returns the directory of '''c:\compiled_dir\main_GUI_mcr\main_GUI\''' that contains all the encrypted m-files. Once you switch to this folder, although you will find a file called loadModelTemplate, or function won't be able to be called. The command exist('loadModelTemplate') returns
 
<pre>0</pre>
 
<pre>0</pre>
 
You would have to exit this folder in order to call this function.  
 
You would have to exit this folder in order to call this function.  
<br>Therefore, if you do use which and cd to find files and enter a certain directory, it is recommended you use a [http://www.customsigns.com Custom Signs] this way:
+
<br>Therefore, if you do use which and cd to find files and enter a certain directory, it is recommended that you do it this way:
 
<pre>if ~isdeployed
 
<pre>if ~isdeployed
 
     cd(fileparts(which('main_GUI')))
 
     cd(fileparts(which('main_GUI')))
 
end</pre>
 
end</pre>
So that you don't run into errors...and get [http://www.acnecaretreatment.com/ get rid of spots]
+
So that you don't run into errors...
 
 
[http://www.imagemaskingservices.com/ Image Masking]  [http://www.clipping-image.com/ Clipping Image]  [http://www.outsourceinfotech.ca/ Photo Retoching]
 
  
 
== uitable errors when deployed ==
 
== uitable errors when deployed ==
 
For MATLAB 2008a and earlier, uitable errors when it is compiled with Matlab Compiler.
 
For MATLAB 2008a and earlier, uitable errors when it is compiled with Matlab Compiler.
 
To fix this follow http://www.mathworks.cn/support/bugreports/details.html?rp=449936
 
<span class="plainlinks">[http://www.linhkienblackberry.net/san-pham/linh-kien-blackberry/man-hinh-blackberry/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Man hinh Blackberry</span>]
 
<span class="plainlinks">[http://www.fxdialogue.com/vi/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">forex</span>]
 
<span class="plainlinks">[http://www.fxdialogue.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">forex</span>]
 
<span class="plainlinks">[http://quatet.vipecom.vn/san-pham/gio-qua-tet/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Gio qua tet</span>]
 
<span class="plainlinks">[http://www.tantudien.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">tu dien dien tu</span>]
 
<span class="plainlinks">[http://www.tantudien.com/san-pham/but-than-ky/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">but cham doc</span>]
 
<span class="plainlinks">[http://www.tantudien.com/san-pham/but-than-ky/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">but than ky</span>]
 
<span class="plainlinks">[http://dantri.com.vn/c7/s7-548103/rang-e-buot-noi-lo-cua-cac-ba-me-sau-sinh.htm <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">buot rang</span>]
 
<span class="plainlinks">[http://dantri.com.vn/c7/s7-548103/rang-e-buot-noi-lo-cua-cac-ba-me-sau-sinh.htm <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">buốt răng</span>]
 
 
<span class="plainlinks">[http://dantri.com.vn/c7/s7-548103/rang-e-buot-noi-lo-cua-cac-ba-me-sau-sinh.htm <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">rang e buot</span>]
 
 
<span class="plainlinks">[http://dantri.com.vn/c7/s7-548103/rang-e-buot-noi-lo-cua-cac-ba-me-sau-sinh.htm <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">răng ê buốt</span>]
 
 
<span class="plainlinks">[http://dantri.com.vn/c7/s7-548103/rang-e-buot-noi-lo-cua-cac-ba-me-sau-sinh.htm <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">ê buốt răng</span>]
 
 
<span class="plainlinks">[http://dantri.com.vn/c7/s7-548103/rang-e-buot-noi-lo-cua-cac-ba-me-sau-sinh.htm <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">e buot rang</span>]
 
 
 
<span class="plainlinks">[http://quatet.vipecom.vn/san-pham/gio-qua-tet/gio-qua-tet-khuyen-mai/gio-qua-tet-2012.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Gio qua tet 2012</span>]
 
<span class="plainlinks">[http://tintuc.vipecom.vn/kenh-giai-tri/tin-tuc-dien-anh/co-be-ban-diem-3d-ban-full-made-in-vietnam.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Co be ban diem 3d</span>]
 
<span class="plainlinks">[http://www.thietkewebsite.n.nu <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Thiet ke website</span>], [http://www.nghenghiepviet.com Viec lam]
 
<span class="plainlinks">[http://360xu.blogspot.com/2011/03/cach-tao-blog.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">cach tao blog</span>]
 
<span class="plainlinks">[http://360xu.blogspot.com/p/download-film.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">download film hd</span>]
 
<span class="plainlinks">[http://augustijncommunity.blogspot.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">free backlinks</span>]
 
<span class="plainlinks">[http://timeshare360xu.blogspot.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">timeshare</span>]
 
<span class="plainlinks">[http://raovat3d.forumvi.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">rao vat</span>]
 
<span class="plainlinks">[<span class="plainlinks">[http://raovat3d.forumvi.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">rao vat</span>] <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">linh kien dien thoai</span>]
 
<span class="plainlinks">[http://saigontechforum.ucoz.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Saigontech forum</span>]
 
[http://www.nghenghiepviet.com Tim viec lam], [http://www.nghenghiepviet.com/tim-viec/viec-lam-Hai-duong/27 Viec lam hai duong], [http://www.nghenghiepviet.com/tim-viec/viec-lam-Can-tho/15 Viec lam can tho], [http://www.nghenghiepviet.com/tim-viec/viec-lam-Hai-phong/28 Viec lam hai phong], [http://www.nghenghiepviet.com/tim-viec/viec-lam-Ba-ria--vung-tau/5 Viec lam vung tau]
 
 
[http://www.specialized-restoration.com/ Mold Damage Repair rochester ny], [http://www.prlog.org/11289974-phone-number-lookup-verizon-phone-number-reverse-lookup-to-get-information-you-need-quickly.html phone number lookup] [http://www.nocostautoglassrepair.com/ Auto glass repair], [http://www.itchyskinbumps.com/ itchy skin bumps], [http://www.pitguru.com Futures Market] [http://www.linkspromotions.com/linkbuilding Professional Link Building Service]
 
*[http://www.tradingadvantage.com/ Learn how to trade], [http://www.pitguru.com/ Futures trading], [http://www.futureswiki.com/ Futures wiki]<span class="plainlinks">[http://diendanseopanda.forumvi.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">dien dan seo</span>]
 
<span class="plainlinks">[http://www.fxdialogue.com/vi/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">forex</span>]
 
<span class="plainlinks">[http://www.baovenucuoivietnam.com/cau-hoi-thuong-gap/1/kem-danh-rang-lam-trang-rang.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">lam trang rang</span>]
 
<span class="plainlinks">[http://www.fxdialogue.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">forex</span>]
 
<span class="plainlinks">[http://baovenucuoivietnam.com/san-pham/4/nuoc-suc-mieng-ps.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Nuoc suc mieng</span>]
 
<span class="plainlinks">[http://www.baovenucuoivietnam.com/san-pham/3/kem-danh-rang-ps.html  <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Kem danh rang</span>]
 
<span class="plainlinks">[http://www.dichvuseo.n.nu/bang-gia-seo <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Bang gia seo</span>]
 
<span class="plainlinks">[http://www.dichvuseo.n.nu/cong-ty-seo <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Cong ty seo</span>]
 
<span class="plainlinks">[http://www.dichvuseo.n.nu/seo-services <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">seo services</span>]
 
<span class="plainlinks">[http://www.dichvuseo.n.nu/cong-cu-seo <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">cong cu seo</span>]
 
<span class="plainlinks">[http://www.thietkewebsite.n.nu <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Thiet ke website</span>]
 
<span class="plainlinks">[http://www.taschenoase.de/gola-taschen/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Taschen von Gola</span>]
 
<span class="plainlinks">[http://360xu.blogspot.com/2011/03/cach-tao-blog.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">cach tao blog</span>]
 
<span class="plainlinks">[http://360xu.blogspot.com/p/download-film.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">download film hd</span>]
 
<span class="plainlinks">[http://augustijncommunity.blogspot.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">free backlinks</span>]
 
<span class="plainlinks">[http://www.linhkieniphone.com.vn/san-pham/giai-ma/iphone/gmate-unlock-iphone-4-version-50-501-goi-dien-cho-iphone-4.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Gmate, Gmate iphone</span>]
 
<span class="plainlinks">[http://timeshare360xu.blogspot.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">timeshare</span>]
 
<span class="plainlinks">[http://raovat3d.forumvi.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">rao vat</span>]
 
<span class="plainlinks">[http://saigontechforum.ucoz.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Saigontech forum</span>]
 
<span class="plainlinks">[http://k2spice.blogspot.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Herbal Incense</span>]
 
<span class="plainlinks">[http://k2spice.blogspot.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Herbal Incense Reviews</span>]
 
<span class="plainlinks">[http://tintuc.vipecom.vn/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Tin trong ngay</span>]
 
<span class="plainlinks">[http://www.laptophelp.ro/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Incarcator Laptop</span>]
 
<span class="plainlinks">[http://www.firestonedestinationle.info <span style="color:white;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;hover:text-decoration:none">Firestone Destination le</span>] [http://www.prlog.org/11289974-phone-number-lookup-verizon-phone-number-reverse-lookup-to-get-information-you-need-quickly.html phone number lookup]
 
<span class="plainlinks">[http://www.firestonedestinationat.info <span style="color:white;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;hover:text-decoration:none">Firestone Destination at</span>]
 
<span class="plainlinks">[http://www.michelinhydroedge.net <span style="color:white;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;hover:text-decoration:none">Michelin Hydroedge</span>]
 
<span class="plainlinks">[http://www.michelinprimacyhp.net <span style="color:white;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;hover:text-decoration:none">Michelin Primacy Hp</span>]
 
 
<div class="right" >
 
<ul style="display:none;">
 
[http://www.ocularconcepts.us/web.php Web Developers in Cleveland]
 
 
</div>
 
 
| [http://www.taschen-blog.de Taschen Blog] | [http://www.m-upload.de Kostenlos Bilder hochladen] | [http://www.7mlivescorex.com Livescore] | [http://www.7mlivescorex.com ผลบอลคืนนี้] | [http://www.iampsp.com Game PSP] [http://www.linkspromotions.com/linkbuilding Professional Link Building Service]
 

Latest revision as of 14:46, 7 September 2012

Mex and compiler setting

How to set up mex compiler on a 64-bit Matlab using Visual Studio 2008 Professional

  1. I was using Visual Studio 2008 Profession that is free for college students. I believe 2008 Express works the same way, too.
  2. When you install Visual Studio 2008, I recommend to install 'Full' so that you are sure the 64-bit compilers and libraries are installed.
  3. Go to Download, uncompress and copy the x64 mex option files under the MATLABROOT\bin\win64\mexopts.
  4. Do a mex -setup. Let Matlab locate the installed compiler. Select "Microsoft Visual C++ 2008".
  5. Use mex command to compile a simple file. You get the following error
C:\PROGRA~1\MATLAB\R2007B\BIN\MEX.PL:  
Error: Using options file: 
         C:\Users\deancool\AppData\Roaming\MathWorks\MATLAB\R2007b\mexopts.bat 
         You cannot use this file with the WIN64 architecture because it enables 
         a compiler for a different architecture. 
         Running mex -setup may resolve this problem. 

To fix this error:

  1. Locate your mexopts.bat file. Edit the following lines:
    1. Line 17 (set PATH): add '\amd64' after set PATH=%VCINSTALLDIR%\BIN\
    2. Line 19 (set LIB): add '\amd64' after set LIB=%VCINSTALLDIR%\ATLMFC\LIB and %VCINSTALLDIR%\LIB. Add '\x64' after C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib
    3. Line 20: set MW_TARGET_ARCH=win64
    4. Line 34: set LIBLOC=%MATLAB%\extern\lib\win64\microsoft
    5. Line 36: /MACHINE:X64

NOTE: Environment - Windows Vista 64-bit, Matlab 2007b 64-bit. My mexopts.bat file: File:Mexopts.zip

How to set up the C compiler from Visual Studio 2008 on a 64-bit Windows system

  1. Go to control->system->environmental variables. Edit 'path' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64
  2. Go to control->system->environmental variables. Edit 'LIB' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64

Or go to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64 and run vcvarsamd64.bat

How to compile cvOdesGenMod5.c

Windows

1. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\cvodes\source. Run:

cl /c /I..\include /I..\..\shared\include *.c
lib /out:cvodes.lib *.obj

Copy cvodes.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system) 2. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\shared\source. Run:

cl /c /I..\include  *.c
lib /out:sundials.lib *.obj

Copy sundials.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system) 3. Enter COMKATROOT\CVODESserial-2.3.0-2005\sundials\nvec_ser. Run

cl /c /I..\shared\include  *.c
lib /out:nvec_ser.lib *.obj

Copy nvec_ser.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system)


Linux

NOTE: Under 64-bit Ubuntu and 64-bit Matlab, you have to do the following changes to make the mex compilation work.

  1. Edit the mexopts.sh and remove all -lstdc++
  2. Edit the cvodesGenmod5.c. Find function 'clear' and remove the 'static' declaration.
  3. When you use gcc to compile, add a flag '-fPIC'.

How to prepare a COMKAT release



CCIR-specific settings for MATLAB distributed computing server

As the server is installed on the 123 subnets, clients on the 125 subnets will not be able to connect to the job manager unless the following modification is made:

1. On the client side, edit the file 'hosts' and add a line

<THE SERVER IP ADDRESS> <SERVER NAME>

such as:

123.456.78.9 HEADNODE

Contact Dean or Dr. Muzic to get the right information.

The 'hosts' file can be found at '/etc/' in Macs and '/Windows/System32/drivers/etc/' in Windows-based PCs.

2. On the server side, edit the 'hosts' file. Do the same thing to add the ip and computer name of the client to this file.

3. Now the findResource command should work without any problem.

MATLAB Compiler

= Weird behavior of path settings for compiled MATLAB applications

__ For example, compiled main_GUI.m under c:\comkat\comkat_GUI\ and set the output directory to be c:\compiled_dir\. Before being compiled, the output to which('main_GUI') returns:

c:\comkat\comkat_GUI\

After being compiled, the same command returns:

c:\compiled_dir\main_GUI_mcr\main_GUI\

You have to be careful because if you are calling another function, for example, loadModelTemplate.m from main_GUI. If the directory is not switched, there should not be a problem. But if you switch to the directory of main_GUI.m, different behavior happens.
The commands executed are:

cd(fileparts(which('main_GUI')))
x = loadModelTemplate

Under MATLAB, x will be returned properly; However, under compiled MATLAB application, it returns:

 Undefined function or variable 'loadModelTemplate'

The reason is that, under compiled MATLAB applications, fileparts(which('main_GUI')) returns the directory of c:\compiled_dir\main_GUI_mcr\main_GUI\ that contains all the encrypted m-files. Once you switch to this folder, although you will find a file called loadModelTemplate, or function won't be able to be called. The command exist('loadModelTemplate') returns

0

You would have to exit this folder in order to call this function.
Therefore, if you do use which and cd to find files and enter a certain directory, it is recommended that you do it this way:

if ~isdeployed
     cd(fileparts(which('main_GUI')))
end

So that you don't run into errors...

uitable errors when deployed

For MATLAB 2008a and earlier, uitable errors when it is compiled with Matlab Compiler.