Difference between revisions of "Support:Tech notes"

From COMKAT wiki
Jump to navigation Jump to search
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  
 
==== How to set up mex compiler on a 64-bit Matlab using Visual Studio 2008  
[http://kidney-stones-symptoms.com/ kidney stones symptoms]
+
[http://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]
[http://www.visioncreatorz.com/cheap-copywriting-services/ cheap copy writing service]
 
[http://www.2dplay.com/sniper-games.htm Sniper Games]
 
[http://www.accesshealthcareonline.com/massage-therapy-Chicago-Illinois.aspx Massage Therapy Chicago]
 
[http://www.magnesiumsupplementsblog.com/ Buy Magnesium Supplements]
 
[http://www.iodinesupplementsblog.com/ Buy Iodine Supplements]
 
[http://www.michelinltxms2.com/ Michelin ltx m s2]
 
[http://www.givenchyhandbags.net/ Givenchy Handbags]
 
[http://www.dupageattorneys.com/ law firm Chicago]
 
[http://www.onlinework4all.com/ How to make money online- Online Work For All]
 
<span class="plainlinks">[http://gallstonessymptoms.org <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">gallstones symptoms</span>]
 
<span class="plainlinks">[http://www.timewing.com.sg/ac_service.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">ac repair</span>]
 
<span class="plainlinks">[http://www.timewing.com.sg/refrg_service.html<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> refrigerator repair</span>] 
 
<span class="plainlinks">[http://jamumassagesingapore.com/services/dejamu/post-natal<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> jamu postnatal massage</span>]
 
<span class="plainlinks">[http://jamumassagesingapore.com<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> massage centres in singapore</span>]
 
<span class="plainlinks">[http://jamumassagesingapore.com/services/pre-natal<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> prenatal massage in singapore</span>]
 
<span class="plainlinks">[http://www.miiny.com<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> deals singapore</span>]
 
<span class="plainlinks">[http://physioactive.sg/services/massage/sports-massage.html<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> sports massage singapore</span>]
 
<span class="plainlinks">[http://ezinearticles.com/?How-Are-Accelerated-Degrees-Viewed-By-Prospective-Employers?&id=6322988<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> Accelerated Degrees</span>]
 
<span class="plainlinks">[http://physioactive.sg/services/sports-therapy.html<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;"> sports injury singapore</span>]
 
[http://www.dupageattorneys.com/services/family-law/ divorce attorney chicago]
 
[http://www.venapro-now.com/ Venapro]
 
[http://www.dupageattorneys.com/services/workers-compensation/ chicago workers compensation lawyer]
 
[http://itsanotherone.com/2010/11/brett-merl-supports-youth-hockey/ <span style="color:black;font-weight:normal; text-decoration:none!important;background:none!important; text-decoration:none;">Brett Merl</span>] Professional ====
 
# I was using Visual Studio 2008 <span class="plainlinks">[http://advertising-pr.dbusinessnews.com/shownews.php?articletitle=Institutions%20like%20ThinkStrategy%20Capital%20Conduct%20Comprehensive%20Hedge%20Fund%20Due%20Diligence;%20Industry%20Procedures%20Upgraded&newsid=239902&type_news=latest&s=sbab <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">ThinkStrategy Capital</span>] Profession that is free for <span class="plainlinks">[http://www.bestpills4weightloss.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">best weight loss pills</span>] 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 <span class="plainlinks">[http://www.bestpenisstretcher.net<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">penis stretcher</span>] 2008 Express <span class="plainlinks">[http://www.keyenvironmentalinc.org <span style="color:black;font-weight:normal; text-decoration:none!important;background:none!important; text-decoration:none;">Key Environmental Inc</span>] works the same way, too <span class="plainlinks">[http://www.thegoldeconomy.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">price of gold</span>].
 
[http://www.LavenderOil.com  Essential lavender oil], [http://makeupbrushkeeper.com/ Professional Makeup Brush Organizer], [http://www.gidjii.com wholesale dropship online marketplace].
 
[http://www.jocurimario.biz" <h1 style="position:absolute;top:-999px;">jocuri mario</h1>]
 
Learn more on your online guide to <span class="plainlinks">[http://www.24-7pressrelease.com/press-release/investment-manager-thinkstrategy-capital-displays-exceptional-generosity-as-fiduciary-214901.php<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">ThinkStrategy Capital</span>] educational.
 
  
 
# When you install Visual Studio 2008, while eating [http://www.gulabjamun.info gulab jamun recipe] I recommend install 'Full' so that you aresure the 64-bit compilers and [http://www.balispeak.com bali guide] libraries  are installed.
 
# When you install Visual Studio 2008, while eating [http://www.gulabjamun.info gulab jamun recipe] I recommend install 'Full' so that you aresure the 64-bit compilers and [http://www.balispeak.com bali guide] libraries  are installed.
Line 41: Line 14:
 
         a compiler for a different architecture .  
 
         a compiler for a different architecture .  
 
         Running  mex -setup may [http://www.sexcam-dude.com/ sexcam dude] resolve this problem.  
 
         Running  mex -setup may [http://www.sexcam-dude.com/ sexcam dude] resolve this problem.  
       
+
[http://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]       
  
 
</pre>
 
</pre>
Line 51: Line 24:
 
## 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://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]
  
  
 +
NOTE: Environment - Windows Vista 64-bit, [http://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]
  
NOTE: Environment - Windows Vista 64-bit,
+
My mexopts.bat file: [[Image:Mexopts.zip]] [http://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]
 
 
My mexopts.bat file: [[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 80: Line 53:
 
Also check [http://www.psychologyarticles.info psychology articles] in order to be relaxed and fresh.
 
Also check [http://www.psychologyarticles.info psychology articles] in order to be relaxed and fresh.
 
==== Linux ====
 
==== Linux ====
NOTE: Under 64-bit Ubuntu and 64-bit Matlab, you have to do thefollowing 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 all about it<span class="plainlinks">[http://phen375-uk.co.uk/buy-phentemine-uk/ <span style="color:white;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">buy phentemine uk</span>]
+
NOTE: Under 64-bit Ubuntu and 64-bit Matlab, you have to do thefollowing 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 all about it<span class="plainlinks">[http://phen375-uk.co.uk/buy-phentemine-uk/ <span style="color:white;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">buy phentemine uk</span>] [http://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]
  
  
Line 89: Line 62:
  
  
== How to prepare a COMKAT release ==
+
== How to prepare a COMKAT release ==[http://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]
 
<br>
 
<br>
 
<br>
 
<br>

Revision as of 03:45, 27 November 2011

Mex and compiler setting

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

  1. When you install Visual Studio 2008, while eating gulab jamun recipe I recommend install 'Full' so that you aresure the 64-bit compilers and bali guide libraries are installed.
  2. 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.
  3. Do a mex -setup. Let Matlab locate reputation management online the installed weight loss pills compiler. Select "Microsoft Visual C++ 2008" lowongan kerja.
  4. Use primaloft mountaineering jacketmex command to Zetaclear compile a simple file. You get vestidos da moda 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 [http://www.sexcam-dude.com/ sexcam dude] resolve this problem. 
[http://www.jocurimario.biz <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;position:absolute;top:-999px;">jocuri mario</span>]        

To fix this error:

  1. Locate your mexopts.bat file. Edit the following email marketing 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

jocuri mario NOTE: Environment - Windows Vista 64-bit, jocuri mario My mexopts.bat file: File:Mexopts.zip jocuri mario

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

  1. Go to daily deals 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 Virginia Reckless Driving 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)

Also check psychology articles in order to be relaxed and fresh.

Linux

NOTE: Under 64-bit Ubuntu and 64-bit Matlab, you have to do thefollowing changes to make the mex link building service compilation all about itbuy phentemine uk jocuri mario


  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 ==jocuri mario

CCIR-specific settings for MATLAB distributed computing server

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 http://www.redfoxmagazine.com

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. Digital Agency Glasgow

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 marc manoff 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... loan modification

uitable errors when deployed

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