Cygwin CGAL 4.4/4.3 cygCGAL_Core-10.dll不工作

Cygwin CGAL 4.4/4.3 cygCGAL_Core-10.dll不工作,cygwin,cgal,Cygwin,Cgal,我是一个新手。我尝试在Cygwin下使用CGAL。 CGAL似乎已成功安装,但无法编译任何示例, 当我尝试“cmake”(成功)->“make”(失败) 他们向我扔炸弹 make Scanning dependencies of target delaunay [100%] Building CXX object CMakeFiles/delaunay.dir/delaunay.cpp.o In file included from /home/JIN/CGAL-4.4/examples/Co

我是一个新手。我尝试在Cygwin下使用CGAL。 CGAL似乎已成功安装,但无法编译任何示例, 当我尝试“cmake”(成功)->“make”(失败) 他们向我扔炸弹

 make
Scanning dependencies of target delaunay
[100%] Building CXX object CMakeFiles/delaunay.dir/delaunay.cpp.o
In file included from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/CoreDefs.h:41:0,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/CORE.h:39,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE_coercion_traits.h:33,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE_Expr.h:29,
                 from /home/JIN/CGAL-4.4/examples/Core/delaunay.cpp:2:
/home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/extLong.h:171:8: warning: ‘CORE::extLong::extLong(int)’ redeclared without dllimport attribute after being referenced with dll linkage [enabled by default]
 inline extLong::extLong(int i) : val(i), flag(0) {
        ^
/home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/extLong.h:292:13: warning: ‘bool CORE::extLong::isNaN() const’ redeclared without dllimport attribute after being referenced with dll linkage [enabled by default]
 inline bool extLong::isNaN() const {
             ^
In file included from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/BigFloat.h:38:0,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/RealRep.h:38,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/Real.h:40,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/ExprRep.h:42,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/Expr.h:42,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/CORE.h:68,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE_coercion_traits.h:33,
                 from /home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE_Expr.h:29,
                 from /home/JIN/CGAL-4.4/examples/Core/delaunay.cpp:2:
/home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/BigFloatRep.h:266:8: warning: ‘CORE::BigFloatRep::BigFloatRep(const CORE::BigInt&, long unsigned int, long int)’ redeclared without dllimport attribute after being referenced with dll linkage [enabled by default]
 inline BigFloatRep::BigFloatRep(const BigInt& I, unsigned long er, long ex)
        ^
/home/JIN/CGAL-4.4/examples/Core/../../include/CGAL/CORE/BigFloatRep.h:362:13: warning: ‘bool CORE::BigFloatRep::isZeroIn() const’ redeclared without dllimport attribute after being referenced with dll linkage [enabled by default]
 inline bool BigFloatRep::isZeroIn() const {
             ^
make[2]: *** No rule to make target '/usr/local/lib/cygCGAL_Core-10.dll', needed by 'delaunay.exe'.  Stop.
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/delaunay.dir/all' failed
make[1]: *** [CMakeFiles/delaunay.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2
我完全不知道。
请帮帮我。非常感谢

我不能完全确定我的答案,但是当您在
/home/JIN/CGAL-4.4/examples/Core/
中配置示例时,使用CMake,您已经指定
/home/JIN/CGAL-4.4/config
作为
CGAL\u DIR
变量的值。该目录包含文件
CGALConfig.cmake
,该文件将在安装CGAL后使用。相反,您应该使用
/home/JIN/CGAL-4.4
作为
CGAL\u DIR
的值。该目录包含
CGALConfig.cmake
文件,必须使用该文件才能使用CGAL的就地生成树,而无需安装。

在构建CGAL库时,您的生成目录是什么?它是“/home/JIN/CGAL-4.4/”,对于最新的XCode 5.1,CGAL不起作用,我该怎么办?谢谢你,但问题仍然存在,我已经看到了很多问题的解决方案,由你,谢谢。。。。还有一个问题,我如何在XCode 5.1的MAC上使用CGAL,因为我更新了我的MAC,我不能再使用CGAL了……@ShengyeJin如果这不能解决你的问题,你为什么要接受我的答案?无论如何,谢谢你。XCode 5.1的clang编译器从CGAL-4.4开始就受到支持。如果您对该版本的XCode有任何问题,请在Stackoverflow上填写另一个问题,或发送到CGAL讨论邮件列表。谢谢您,Irineau,实际上我在CGAL讨论上问过,但似乎没有人对我的问题感兴趣。我将尝试CGAL4.4。