Difference between revisions of "Support:Tech notes"

From COMKAT wiki
Jump to navigation Jump to search
Line 34: Line 34:
 
==== 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 ====
 
# 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
 
# 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
# Go <span class="plainlinks">[http://ounceofgold.net<span style="color:black;font-weight:normal; text-decoration:none!important;background:none!important; text-decoration:none;">ounce of gold</span>] to control->system->environmental variables. Edit 'LIB' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64
+
# 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
+
Or go to <span class="plainlinks">[http://www.andrewflusche.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Virginia Reckless Driving</span>] C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64 and run vcvarsamd64.bat
  
 
== How to compile cvOdesGenMod5.c ==
 
== How to compile cvOdesGenMod5.c ==
Line 54: Line 54:
  
 
==== Linux ====
 
==== Linux ====
NOTE: Under 64-bit Ubuntu and <span class="plainlinks">[http://seoph2.cafe24.com/wordpress <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">seo blog</span>] 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 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
[http://www.vasundharafertility.com/infertility.php infertility]all about it
+
 
[http://www.choithraminternational.com ib program],
 
[http://www.backlinkbuild.com Link Building Services],
 
[http://diysolarpowerkitsreview.com/ How to Install Your Own Solar Panels],
 
  
[http://phonyphonecalls.blogspot.com/ lookup cell phone]
 
[http://boilswiki.com/what-can-cause-a-vaginal-boil/ boils on vagina]
 
[http://gynecomastiawiki.com/how-to-get-rid-of-man-boobs/ getting rid of man boobs]
 
[http://www.monarch-garments.com/cat_breeches.asp breeches] work.
 
[http://www.choithraminternational.com ib school in MP]
 
[http://www.hostseo.org SEO Hosting]
 
[http://www.proxykey.com Paid Proxy]
 
 
# 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://www.sweetservices.com/ Bulk Candy]'''
+
 
  
  
Line 76: Line 66:
 
<br>
 
<br>
 
<br>
 
<br>
[http://www.hundeshagen.de Rechtsanwalt Göttingen] [http://www.rechtsanwalt-24.net Rechtsanwalt] [http://www.ehescheidung-jetzt.de Scheidung]
 
  
 
== CCIR-specific settings for MATLAB distributed computing server ==
 
== CCIR-specific settings for MATLAB distributed computing server ==
Line 115: Line 104:
 
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 <span class="plainlinks">[http://www.aqua-gear.com/swim-goggles<span style="color:black;font-weight:normal; text-decoration:none!important;background:none!important; text-decoration:none;">swimming goggles</span>] 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 that you do it 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
Line 128: Line 117:
 
To fix this follow http://www.mathworks.cn/support/bugreports/details.html?rp=449936
 
To fix this follow http://www.mathworks.cn/support/bugreports/details.html?rp=449936
  
[http://sirkus-seo.blogspot.com/2011/07/meriahkan-pesta-ulang-tahun-bersama.html Meriahkan pesta ulang tahun bersama GarudaFood] [http://www.micrositez.us/link-building-services Link Building]
+
[http://www.houstonnewhomeconstruction.com/ Houston new home]
[http://sirkus-seo.blogspot.com/2011/07/amikomus-tempat-belanja-hosting-murah.html Amikom.us Tempat Belanja Hosting Murah]
+
[http://www.houstontopdoctors.com/ Houston Doctors]
[http://www.micrositez.us/link-building-services Link Building Services]
+
[http://www.ganarplataporinternet.com/ Ganar Plata Por Internet]
[http://www.thebodyholiday.com/activities/yoga Yoga Holidays]
+
[http://www.houstonnewhomeconstruction.com/ Houston new homes]
[http://www.totalcreation.co.uk/ Web Design]
+
[http://houstontopattorneys.com/ Houston Top Attorneys]
[http://www.comparethelenders.com/ Payday Lenders]
+
[http://www.houstonnewhomeconstruction.com/ New Homes in Houston]
[http://www.micrositez.us/seo-services Seo Services]
+
[http://houstontopattorneys.com/ Best Attorneys in Houston]
[http://www.cuudulieu24h.com cuu du lieu]
+
[http://www.houstonnewhomeconstruction.com/ Houston New Home Builders]
[http://www.digiseo.com seo]
+
[http://www.ephoenixduiattorney.com/ Phoenix DUI Attorney]
[http://banbuon24h.com rao vat]
+
[http://www.houstonnewhomeconstruction.com/ Houston New Homes for Sale]
[http://www.Pharmastation.org Buy Anabolic Steroids]
+
[http://www.ephoenixduiattorney.com/ Phoenix DUI Attorneys]
[http://www.digiseo.com/en seo services]
+
[http://www.houstonnewhomeconstruction.com/ Houston New Home Communities]
[http://www.digiseo.com/thiet-ke-website thiet ke web]
+
 
[http://www.digiseo.com/quang-ba-website quang ba web]
+
 
[http://www.digiseo.com/quang-ba-website/dich-vu-seo.php marketing online]
+
 
[http://www.sms4smile.org Funny SMS]
+
 
[http://namthaibinhduong.edu.vn du hoc singapore]
+
 
[http://namthaibinhduong.edu.vn du hoc my]
+
 
[http://namthaibinhduong.edu.vn du hoc uc]
+
 
[http://thutucthanhlapcongty.net/index.php/doanh-nghiep-trong-nuoc/dieu-kien-thanh-lap-cong-ty-bao-ve/ dieu kien thanh lap cong ty]
+
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
  
 
<div class="right" >
 
<div class="right" >
 
<ul style="display:none;">
 
<ul style="display:none;">
[http://www.ocularconcepts.us Web Design]
+
[http://mayweatherversusortiz.com/ Mayweather vs Ortiz]
 
+
[http://www.thingstodoinbali.org/ Things to do in Bali]
 +
[http://pacquiaovsmarquez3live.com/ Pacquiao vs Marquez]
 +
[http://www.thingstodoinbali.org/ Bali attractions]
 +
[http://mayweatherversusortiz.com/2011/07/mayweather-vs-ortiz-tickets-for-sale/ Mayweather vs Ortiz Tickets]
 +
[http://www.whattodoinsydney.net/ What to do in Sydney]
 +
[http://pacquiaovsmarquez3live.com/2011/07/pacquiao-vs-marquez-tickets-for-sale/ Pacquiao vs Marquez Tickets]
 +
[http://www.whattodoinsydney.net/ Things to do in Sydney]
 +
[http://mayweatherversusortiz.com/2011/07/mayweather-vs-ortiz-free-live-streaming/ Mayweather vs Ortiz Live Streaming]
 +
[http://pacquiaovsmarquez3live.com/2011/07/pacquiao-vs-marquez-trilogy-free-live-streaming/ Pacquiao vs Marquez Live Streaming]
 
</div>
 
</div>

Revision as of 18:02, 14 August 2011

Mex and compiler setting

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

  1. I was using Visual Studio 2008 Profession that is free for college students loan modification. I believe 2008 Express Key Environmental Inc works the same way, too.
  2. When you install Visual Studio 2008, I recommend to install vending machines 'Full' so that you are truck accident lawyer sure the 64-bit compilers and libraries are installed.
  3. 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.
  4. Do a mex -setup. Let Matlab locate reputation management online the installed weight loss pills 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,

emerald cut engagement rings Matlab 2007b 64-bit, Book of Ra. 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 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)


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 it


  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. 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 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

Houston new home Houston Doctors Ganar Plata Por Internet Houston new homes Houston Top Attorneys New Homes in Houston Best Attorneys in Houston Houston New Home Builders Phoenix DUI Attorney Houston New Homes for Sale Phoenix DUI Attorneys Houston New Home Communities