Difference between revisions of "Support:Tech notes"

From COMKAT wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
## C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
 
## C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
 
## C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
 
## C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
# Go to control->system->environmental variables. Edit 'include' and add the following dir:
+
# Go to control->system->environmental variables. Edit 'INCLUDE' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include
+
# Go to control->system->environmental variables. Edit 'LIB' and add the following dir: C:\Program Files\MATLAB\R2007b\extern\lib\win64\microsoft
 +
 
  
 
==== How to set up the C compiler from MinGW on a 64-bit Windows system ====
 
==== How to set up the C compiler from MinGW on a 64-bit Windows system ====
Line 21: Line 22:
 
<pre>cl /c /I..\include /I..\..\shared\include *.c
 
<pre>cl /c /I..\include /I..\..\shared\include *.c
 
lib /out:cvodes.lib *.obj</pre>
 
lib /out:cvodes.lib *.obj</pre>
 +
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:
 +
<pre>cl /c /I..\include  *.c
 +
lib /out:sundials.lib *.obj</pre>
 +
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
 +
<pre>cl /c /I..\shared\include  *.c
 +
lib /out:nvec_ser.lib *.obj</pre>
 +
Copy nvec_ser.lib to the COMKATROOT\lib\win64 folder (change win64 according to your system)
 +
4.

Revision as of 01:52, 27 February 2008

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 MinGW

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:
    1. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools
    2. C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin
    3. C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE
  2. Go to control->system->environmental variables. Edit 'INCLUDE' and add the following dir: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include
  3. Go to control->system->environmental variables. Edit 'LIB' and add the following dir: C:\Program Files\MATLAB\R2007b\extern\lib\win64\microsoft


How to set up the C compiler from MinGW on a 64-bit Windows system

== 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) 4.