【问题标题】:h5utils not compiling in Cygwin, Win7h5utils 未在 Cygwin、Win7 中编译
【发布时间】:2017-12-03 02:38:45
【问题描述】:

我一直在尝试按照tutorial 在 Win7 上使用 Cygwin 安装 Meep 和 Python-Meep。

我也看过另一个tutorial

这三个似乎都相似,但差异很小。我不确定哪种方法最适合在 Windows 7 平台上安装 Meep。在学习第一个教程时,我没有通过第一个障碍。编译 h5utils 时,结果如下:

make[1]: Entering directory '/cygdrive/c/cygwin/usr/local/h5utils-1.12.1'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -g -O2 -MT writepng.o -MD -MP -MF .deps/writepng.Tpo -c -o writepng.o writepng.c
writepng.c: In function ‘writepng’:
writepng.c:312:24: error: dereferencing pointer to incomplete type ‘png_struct {aka struct png_struct_def}’
if (setjmp(png_ptr->jmpbuf)) {
^
writepng.c:437:19: error: dereferencing pointer to incomplete type ‘png_info {aka struct png_info_def}’
free(info_ptr->palette);
^
make[1]: *** [Makefile:426: writepng.o] Error 1
make[1]: Leaving directory '/cygdrive/c/cygwin/usr/local/h5utils-1.12.1'
make: *** [Makefile:278: all] Error 2

作者驳斥了本教程中 h5utils 的任何错误,称 MatLab 的处理能力更强。但是,似乎由于这个失败 h5topng 没有找到并且无法访问 MatLab,我的输出是无用的。

当尝试从 Meep/examples 文件夹运行“ring.ctl”时,我还得到以下信息:

creating output file "./ring-eps-000000.00.h5"...
Backtrace:
In /pub/devel/guile/yaakov/guile-2.0.14-1.i686/src/guile-2.0.14/module/ice-9/boot-9.scm:
160: 12 [catch #t #<catch-closure 801d0950> ...]
In unknown file:
?: 11 [apply-smob/1 #<catch-closure 801d0950>]
In /pub/devel/guile/yaakov/guile-2.0.14-1.i686/src/guile-2.0.14/module/ice-9/eval.scm:
432: 10 [eval # #]
432: 9 [eval # #]
In unknown file:
?: 8 [primitive-load "ring.ctl"]
In /pub/devel/guile/yaakov/guile-2.0.14-1.i686/src/guile-2.0.14/module/ice-9/eval.scm:
432: 7 [eval # #]
In /pub/devel/guile/yaakov/guile-2.0.14-1.i686/src/guile-2.0.14/module/ice-9/boot-9.scm:
710: 6 Exception thrown while printing backtrace:
ERROR: In procedure delete-meep-volume: Wrong type argument in position 1: #<finalized smob 80447d00>
ERROR: In procedure %run-finalizers:
ERROR: In procedure delete-meep-volume: Wrong type argument in position 1: #<finalized smob 80447ef0>
Some deprecated features have been used. Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information. Set it to "no" to suppress
this message.

任何关于 Meep 可能发生的事情的想法都会非常有帮助。尝试让它在 Windows 和 Ubuntu 上正确安装已经好几天了。

艾玛

【问题讨论】:

    标签: windows-7 cygwin meep


    【解决方案1】:

    这不是 cygwin 问题。 h5utils 似乎期望在 libpng 1.4 之前使用的结构 而cygwin包是1.6版

    libpng 1.5.10 error: dereferencing pointer to incomplete type

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多