'Problems installing and compiling snopt7 for PyKEP and PyGMO in Windows

I'm working using MagicPython 3.6.6 in VScode and when I try to run the 6th example in PyKEP I get a snopt7 error from PyGMO because I was unable to correctly install it. I would greatly appreciate any help in how to install and correctly compile snopt7 for Windows.

The code I used to run the 6th example:

import pykep as pk
pk.examples.run_example6()

The error:

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    pk.examples.run_example6()
  File "C:\Users\wojci\AppData\Local\Programs\Python\Python36\lib\site-packages\pykep\examples\_ex6.py", line 38, in run_example6
    pop = algo.evolve(pop)
ValueError: 
function: evolve_version
where: C:\projects\pagmo-plugins-nonfree\src\snopt7.cpp, 617
what: 
An error occurred while loading the snopt7_c library at run-time. This is typically caused by one of the following
reasons:

- The file declared to be the snopt7_c library, i.e. /usr/local/lib/libsnopt7_c.so, is not a shared library containing the necessary C interface symbols (is the file path really pointing to
a valid shared library?)
 - The library is found and it does contain the C interface symbols, but it needs linking to some additional libraries that are not found
at run-time.

We report the exact text of the original exception thrown:

 
function: evolve_version
where: C:\projects\pagmo-plugins-nonfree\src\snopt7.cpp, 569
what: The snopt7_c library path was constructed to be: /usr/local/lib/libsnopt7_c.so and it does not appear to be a file

I have the following snoop files:

  1. snopt7.lib
  2. snopt7.exp
  3. snopt7.dll
  4. snopt7_cpp.dll
  5. snopt.h
  6. snopt_cwrap.h
  7. snoptProblem.hpp


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source