Assuming you have just downloaded the source code following the instructions given, see Download PyGMO code, you will have created a directory pagmo in your current directory, move there:
You will now need to create a build directory where to build the source code, so:
You can now move there:
and have ccmake help you select the options that are most suitable for you:
After pressing c once, a typical ccmake screen will look like
note that the PyGMO option is selcted as well as other options requiring external libraries ....
At this point (after pressing c again) in case all required system libraries are found you should be seeing something like this on the screen:
You can now press ‘g’ to generate a make file and exit ccmake utility. You are back to the prompt where you can now type:
sudo make install
Watch carefully the message in the terminal where the installation path is given to check that the correct python dist-packages or site-packages directory has been located
Here is a typical example of the output obtained (gentoo system):
We here outline the procedure we followed when providing the Windows Binaries. In our system, we had CMake 2.8.6, Python 2.7, Boost 1.47.0 and MinGW with Msys 1.0.11 (all installed in C:)
- the pagmo library (libpagmo.dll)
- the boost date-time library
- the boost serialization library
- the boost python library
- the boost thread library
You need to place the minGW ibraries libgfortran-3.dll, libquadmath-0.dll and pthreadGC2 in the core directory.
a) libgslcblas.a b) libgsl.a c) the include dir of gsl. We have compiled gsl-1.15 using msys 1.0.11 configure make install (it first required to define “#define HAVE_DECL_ISNAN 1” and ” #define HAVE_DECL_FINITE 1” in config.h of the gsl downloaded distribution). The static libs are then created in cblas/.lib and /lib. We have pointed CMake to those files and to msys local/include for the include files. One could also link to the dynamic .dll files that are created in the local/lib directry of msys after make install. In this case remember to put those libraries (libgsl-0.dll and libgslcblas-0.dll) in the folder System32 too.
If the option Ipopt is activated you need to tell CMake explicitly where to find Ipopt, in particular a) libcoinblas.a b) libcoinlapack.a c) libcoinmumps.a d) libipopt.a e) The include dir of ipopt. We have compiled Ipopt 3.10.1 using msys 1.0.11 and the usual config make install procedure ..... (MUMPS is used as linear solver) and later linked to the static libraries created in lib/.
If the option NLOPT is activated you need to tell CMake explicitly where to find NLOPT and in particular a) nlopt-0.dll b) nlopt.h and nlopt.hhp. We downloaded the already available Windows binaries for NLOPT 2.2.3