CGAL 4.4/4.3 cygCGAL_Core-10.dll无法工作



我是一个新人。我尝试在Cygwin下使用CGAL。CGAL似乎安装成功,但不能编译任何例子,当我尝试'make .'(成功)-> '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_DIR变量的值。该目录包含文件CGALConfig.cmake,该文件将在安装CGAL后使用。相反,您应该使用/home/JIN/CGAL-4.4作为CGAL_DIR的值。该目录包含CGALConfig.cmake文件,该文件必须用于在不安装的情况下使用CGAL的就地构建树。

相关内容

  • 没有找到相关文章

最新更新