51 | | * Further options of the form '''{{{--enable-...}}}''' and '''{{{with-...}}}''' might be understood by the configuration scripts for specific COIN projects. For example, if you want to tell the Open Solver Interface (OSI) that you want to compile the CPLEX solver interface, you need to specify the {{{--with-clp-lib}}} and {{{--with-clp-incdir}}} options with the appropriate values. If such a value consists of more than one word (e.g., -L/opt/cplex -lcpx), you need to enclose it in quotation marks. |
| 51 | * Further options of the form '''{{{--enable-...}}}''' and '''{{{with-...}}}''' might be understood by the configuration scripts for specific COIN projects. For example, if you want to tell the Open Solver Interface (OSI) that you want to compile the CPLEX solver interface, you need to specify the {{{--with-cplex-lib}}} and {{{--with-cplex-incdir}}} options with the appropriate values. (If such a value consists of more than one word, you need to enclose it in quotation marks.) For example: |
| 52 | |
| 53 | {{{--with-cplex-lib}}}="-L/usr/ilog/cplex90/lib/i86_linux2_glibc2.3_gcc3.2/static_pic -lcplex" |
| 54 | |
| 55 | where assuming that the cplex library (usually named libcplex.a) |
| 56 | is located in /usr/ilog/cplex90/lib/i86_linux2_glibc2.3_gcc3.2/static_pic. |
| 57 | Note that, on some systems, the threading library must be |
| 58 | added for cplex to work. In this case, the string is: |
| 59 | |
| 60 | {{{--with-cplex-lib}}}="-L/usr/ilog/cplex90/lib/i86_linux2_glibc2.3_gcc3.2/static_pic -lcplex -lpthread" |
| 61 | |
| 62 | For the include string: |
| 63 | |
| 64 | {{{--with-cplex-incdir}}}="/usr/ilog/cplex90/include/ilcplex" |
| 65 | |
| 66 | assuming that the header file cplex.h is located in the directory |
| 67 | /usr/ilog/cplex90/include/ilcplex. |
| 68 | |