-1

I'm trying to get pfstools (as well as pfstmo and pfscalibration) working under Windows. These are basically an open source series of command line tools for High Dynamic Range (HDR) imaging.

They were developed for Linux, so the documentation says that in Windows they need to be compiled and run in Cygwin, which is not a big deal except that I can't get them to compile following the instructions.

Does anyone here have any experience using these in Windows? The project home page is here. Thanks.

4

1 回答 1

1

我不能肯定地给你答案,但我也很难让他们在 cygwin 中构建。它看起来像一个缺少符号的问题。这是它失败的第一个地方,当它找不到符号 __int64 时。我不太明白这一点,因为这都是 Linux 代码,我认为 __int64 是 Microsoft VC++ 唯一的符号。无论如何,我已经尝试在各个地方为它贴上一个“long long”的 def 并且它没有占用。我能想到的最好的结果是 ImageMagick 的库旨在与 Visual C++ 以及 Linux 一起使用,然后当看到 WINDOWS 定义时,他们尝试使用 VC++ 特定符号(谁知道还有什么),即使我们不是实际上是用 VC++ 和 KABOOM 编译的!

$ make
make  all-recursive
make[1]: Entering directory `/home/Ben/pfstools-1.8.2'
Making all in src
make[2]: Entering directory `/home/Ben/pfstools-1.8.2/src'
Making all in pfs
make[3]: Entering directory `/home/Ben/pfstools-1.8.2/src/pfs'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/Ben/pfstools-1.8.2/src/pfs'
Making all in fileformat
make[3]: Entering directory `/home/Ben/pfstools-1.8.2/src/fileformat'
g++ -DHAVE_CONFIG_H -I. -I../.. -I./../pfs   -fopenmp -I/usr/include/ImageMagick
      -O3    -MT pfsinimgmagick.o -MD -MP -MF .deps/pfsinimgmagick.Tpo -c -o pfs
inimgmagick.o pfsinimgmagick.cpp
In file included from /usr/include/ImageMagick/magick/MagickCore.h:147,
                 from /usr/include/ImageMagick/Magick++/Include.h:47,
                 from /usr/include/ImageMagick/Magick++/Image.h:11,
                 from /usr/include/ImageMagick/Magick++.h:9,
                 from pfsinimgmagick.cpp:29:
/usr/include/ImageMagick/magick/magick-type.h:129: error: `__int64' does not nam
e a type
[and so on]
于 2010-08-24T22:53:13.970 回答