ESMG / pyroms

Python tools for the Regional Ocean Modeling System (ROMS)
Other
138 stars 88 forks source link

WIN32 problem #16

Open xuelang0722 opened 5 years ago

xuelang0722 commented 5 years ago

Hi, I am struggling to install pyroms with python3.7. I got an error,like : "C:\Users\xuelang\pyroms-python3\bathy_smoother\external\lp_solve_5.5\lp_lib.h(217): fatal error C1083: “dlfcn.h”: No such file or directory"

I have checked lp_lib.h and find :

if (LoadInverseLib == TRUE) || (LoadLanguageLib == TRUE)

ifdef WIN32

#include <windows.h>

else

#include <dlfcn.h>

endif

endif

However, WIN32 actually has been defined in Makefile. I'm confused how does this happen.

WPQ

kshedstrom commented 5 years ago

I'm afraid I am not in a position to support WIN32 systems. Even on the Mac, I choose to put pyroms inside a Linux virtualbox,

braney commented 5 years ago

I haven't tried compiling Pyroms in Windows, but what jumps out at me is that your error message appears to be from a Microsoft compiler. The Makefile in bathy_smoother/external/lp_solve_5.5 is written for gcc, so it probably won't work unless you update it for your compiler.

If you have updated the Makefile, what is the compilation command that generates the error you quoted?

xuelang0722 commented 5 years ago

Thank you. I will try to compile in Linux.