snaphu-py icon indicating copy to clipboard operation
snaphu-py copied to clipboard

[ Install Issue ] Could not find C_MATH_LIBRARY using the following names: m

Open Afei027 opened this issue 2 years ago • 4 comments

my os: win11 when i use pycharm to install , error like: 1713333534896 1713333578243

Afei027 avatar Apr 17 '24 05:04 Afei027

The SNAPHU code from Stanford which this repository wraps does not compile on Windows. There have been some efforts to change the C code to make it work (e.g. https://github.com/PCIGeomatics/snaphu) but we haven't tried to incorporate that here.

scottstanie avatar Apr 17 '24 12:04 scottstanie

Yeah, unfortunately the official SNAPHU releases only support Unix-like platforms. The specific build error that you're getting is saying that it can't find the C math library libm (which is typically packaged with your C distribution on Unix systems), but SNAPHU also relies on some POSIX header files that aren't available on Windows (as far as I'm aware).

You might be able to get it working if you trying installing under the WSL. I'd be interested to hear how it goes if you give it a try.

gmgunter avatar Apr 17 '24 18:04 gmgunter

Thank you, I'll give it a try

Yの影子 @.***

 

------------------ 原始邮件 ------------------ 发件人: "isce-framework/snaphu-py" @.>; 发送时间: 2024年4月18日(星期四) 凌晨2:40 @.>; @.@.>; 主题: Re: [isce-framework/snaphu-py] [ Install Issue ] Could not find C_MATH_LIBRARY using the following names: m (Issue #60)

Yeah, the official SNAPHU releases only support Unix-like platforms. The specific build error that you're getting is saying that it can't find the C math library libm (which is typically packaged with your C distribution on Unix systems), but SNAPHU also relies on some POSIX header files that aren't available on Windows (as far as I'm aware).

You might be able to get it working if you trying installing under the WSL. I'd be interested to hear how it goes if you give it a try.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Afei027 avatar Apr 18 '24 01:04 Afei027

Thank you, I'll take a look  

Yの影子 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Scott @.>; 发送时间: 2024年4月17日(星期三) 晚上8:19 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [isce-framework/snaphu-py] [ Install Issue ] Could not find C_MATH_LIBRARY using the following names: m (Issue #60)

The SNAPHU code from Stanford which this repository wraps does not compile on Windows. There have been some efforts to change the C code to make it work (e.g. https://github.com/PCIGeomatics/snaphu) but we haven't tried to incorporate that here.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Afei027 avatar Apr 18 '24 01:04 Afei027