Difference between revisions of "ApCoCoA-1:HowTo:Compile ApCoCoALib on Windows"
KHiddemann (talk | contribs) |
m (Bot: Replacing category HowTo with HowTo Old) |
||
(17 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | This page is outdated, please see [[ApCoCoALib:CompilationInstructions]] | |
− | = | + | =Introduction= |
− | + | *This site is set up to collect all necessary bits and pieces to compile the ApCoCoALib on Windows. | |
+ | *This description is made for compiling the ApCoCoALib with MSVC 2003/2005. | ||
− | = | + | =Preparation= |
− | + | Before compiling the ApCoCoALib you need to install the following files/libraries: | |
− | + | *CoCoALib: The ApCoCoALib is based on and extends the functionalities of the CoCoALib. You need to compile the CoCoALib prior to the ApCoCoALib. | |
− | * | + | **Find a description on how to install the CoCoALib on Windows [http://www.apcocoa.org/wiki/HowTo:Compile_CoCoALib_on_Windows here]. |
− | + | **This description is based on CoCoALib 0.99.30. | |
− | * | ||
− | * | ||
− | + | *Boost Library: You will need this library to enable a few features in the ApCoCoALib. You can [http://www.boostpro.com/download download] precompiled libs for windows. Ensure to install the Libs Date-Time and Thread in order to use the ApCoCoALib for the MatlabToolbox. | |
− | |||
− | + | *Blas and Lapack Library: You will need those libraries to enable a few features in the ApCoCoALib. The current Repository version of the ApCoCoALib needs you to have one of the following programms installed: | |
− | + | ** Matlab | |
+ | ** Intel MKL | ||
− | + | =Download Instructions= | |
− | + | Get your prefered ApCoCoALib version (stable or developer) from the [[ApCoCoA:SourceCodeManagement|subversion repository]]. General information on the ApCoCoALib source code management can be found [http://www.apcocoa.org/wiki/ApCoCoA:SourceCodeManagement here]. | |
− | |||
− | |||
− | = | + | =Compilation Instructions= |
− | |||
− | == | + | ==Config File== |
− | + | Prior to compilation you have to adjust the configuration file. Open the file makefile.vc.conf in the configuration subfolder. | |
+ | Set the pathes accordingly. To use the Intel MKL uncomment line 11 and 14 by removing the # and comment line 09 and 13 by adding a #. | ||
+ | <pre>#------------------------------------------------------------------------------- | ||
+ | # Adjust the following names and pathes | ||
+ | #------------------------------------------------------------------------------- | ||
+ | _COCOALIB_INCLUDE = ..\..\..\CoCoALib-0.9918\include | ||
+ | _GMP_INCLUDE= C:\Programme\gmp-4.2.2\build.vc8\lib\Win32\Release | ||
+ | _BOOST_INCLUDE= C:\Programme\boost\boost_1_38 | ||
+ | # Use the LAPACK/BLAS Libs provided with | ||
+ | #Matlab | ||
+ | _LB_INCLUDE = C:\Programme\MATLAB\R2007b\extern\include | ||
+ | #or Intel MKL | ||
+ | #_LB_INCLUDE = C:\Programme\Intel\MKL\9.0\include | ||
+ | #------------------------------------------------------------------------------- | ||
+ | ... | ||
+ | -DUSEMatlab -D__MSVC__ | ||
+ | # -DUSEIntelMKL -D__MSVC__ | ||
+ | </pre> | ||
− | + | Note: All pathes shown here are relative pathes to the ApCoCoALib folder. | |
− | + | ==Compilation== | |
+ | Open a Visual Studio command prompt and change to your local ApCoCoALib folder. Use the nmake command to compile the ApCoCoALib: | ||
+ | <pre>nmake -f Makefile.vc ApCoCoALib</pre> | ||
+ | To show all available targets call | ||
+ | <pre>nmake -f Makefile.vc</pre> | ||
− | == | + | ==Problems== |
− | + | If you encounter problems check out the forum: [http://www.apcocoa.org/forum/ ApCoCoA Forum] | |
− | + | [[Category:HowTo Old]] | |
− | + | [[Category:ApCoCoALib]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[Category:HowTo]][[Category:ApCoCoALib]] |
Latest revision as of 09:41, 29 October 2020
This page is outdated, please see ApCoCoALib:CompilationInstructions
Introduction
- This site is set up to collect all necessary bits and pieces to compile the ApCoCoALib on Windows.
- This description is made for compiling the ApCoCoALib with MSVC 2003/2005.
Preparation
Before compiling the ApCoCoALib you need to install the following files/libraries:
- CoCoALib: The ApCoCoALib is based on and extends the functionalities of the CoCoALib. You need to compile the CoCoALib prior to the ApCoCoALib.
- Find a description on how to install the CoCoALib on Windows here.
- This description is based on CoCoALib 0.99.30.
- Boost Library: You will need this library to enable a few features in the ApCoCoALib. You can download precompiled libs for windows. Ensure to install the Libs Date-Time and Thread in order to use the ApCoCoALib for the MatlabToolbox.
- Blas and Lapack Library: You will need those libraries to enable a few features in the ApCoCoALib. The current Repository version of the ApCoCoALib needs you to have one of the following programms installed:
- Matlab
- Intel MKL
Download Instructions
Get your prefered ApCoCoALib version (stable or developer) from the subversion repository. General information on the ApCoCoALib source code management can be found here.
Compilation Instructions
Config File
Prior to compilation you have to adjust the configuration file. Open the file makefile.vc.conf in the configuration subfolder. Set the pathes accordingly. To use the Intel MKL uncomment line 11 and 14 by removing the # and comment line 09 and 13 by adding a #.
#------------------------------------------------------------------------------- # Adjust the following names and pathes #------------------------------------------------------------------------------- _COCOALIB_INCLUDE = ..\..\..\CoCoALib-0.9918\include _GMP_INCLUDE= C:\Programme\gmp-4.2.2\build.vc8\lib\Win32\Release _BOOST_INCLUDE= C:\Programme\boost\boost_1_38 # Use the LAPACK/BLAS Libs provided with #Matlab _LB_INCLUDE = C:\Programme\MATLAB\R2007b\extern\include #or Intel MKL #_LB_INCLUDE = C:\Programme\Intel\MKL\9.0\include #------------------------------------------------------------------------------- ... -DUSEMatlab -D__MSVC__ # -DUSEIntelMKL -D__MSVC__
Note: All pathes shown here are relative pathes to the ApCoCoALib folder.
Compilation
Open a Visual Studio command prompt and change to your local ApCoCoALib folder. Use the nmake command to compile the ApCoCoALib:
nmake -f Makefile.vc ApCoCoALib
To show all available targets call
nmake -f Makefile.vc
Problems
If you encounter problems check out the forum: ApCoCoA Forum