Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Cannot make CGAL examples in Cygwin

Subject: CGAL users discussion list

List archive

[cgal-discuss] Cannot make CGAL examples in Cygwin


Chronological Thread 
  • From: "Anzel, Phil - NRCS, Fort Collins, CO" <>
  • To: "" <>
  • Cc: "Anzel, Phil - NRCS, Fort Collins, CO" <>
  • Subject: [cgal-discuss] Cannot make CGAL examples in Cygwin
  • Date: Thu, 22 Dec 2016 01:06:59 +0000
  • Accept-language: en-US
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
  • Ironport-phdr: 9a23:lNsNcBAKX7+Xn/YoJEb5UyQJP3N1i/DPJgcQr6AfoPdwSP74p8bcNUDSrc9gkEXOFd2CrakV0KyG6Ou7BCRAuc/H6y9SNsQUFlcssoY/oU8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0IufrymUt2as8Pineu98pmWbwRTjyemeptzKg+3pEPfrINe1YBtI6J0xhrSqWZTYMxXw3lpLBSdhUCvyN23+csp2iJCtvZlv/ZAUKGyOuwed5djSHwINHoprObssR3CSxDLrlA7GC1CqhpJB07s6gP3Wr//riC8q/Fx0W+VOtOgHuN8Yiir86o+EEygsywALTNsqGw=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hello,

 

I am unable to build some of the CGAL examples under Cygwin. All of the failing examples share similar error messages.

 

Any guidance would be most appreciated.

 

Following are the steps that I followed and a sample error from a "make".

 

Cygwin (x64) installed under Windows 7 to d:\cygwin64.

 

CGAL source downloaded from  https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.9/CGAL-4.9.zip

and unzipped to D:\cygwin64\usr\CGAL-4.9

 

All libraries supposedly needed for CGAL were installed via the Cygwin x64 setup.

 

Initial cmake:

    cd /usr/CGAL-4.9

    cmake -DCMAKE_LEGACY_CYGWIN_WIN32=1 -DWITH_CGAL_Qt5=OFF -DWITH_examples=ON  .

 

Some examples could not be configured, these included the *mesh* and Scale_space_reconstruction_3 examples.

    cd /usr/CGAL-4.9

    make

    make examples

 

The first few examples were created successfully. For example,

    PATH=/usr/local/bin:/usr/bin:/bin:/lib:/usr/CGAL-4.9/bin:/usr/CGAL-4.9/lib

    cd /usr/CGAL-4.9/examples/AABB_tree

    ./AABB_triangle_3_example.exe

    3 intersections(s) with ray query

    closest point is: 0.333333 0.333333 0.333333

    squared distance: 8.33333

 

A later example demonstrates a nagging problem that shows up in a number of the examples:

    cd /usr/CGAL-4.9/examples/Snap_rounding_2/

    cmake -DCGAL_DIR=/usr/CGAL-4.9 .

    make

 

Scanning dependencies of target snap_rounding

[ 16%] Building CXX object CMakeFiles/snap_rounding.dir/snap_rounding.cpp.o

In file included from /usr/CGAL-4.9/include/CGAL/CORE/CoreDefs.h:41:0,

                 from /usr/CGAL-4.9/include/CGAL/CORE/BigFloatRep.h:40,

                 from /usr/CGAL-4.9/include/CGAL/CORE/BigFloat.h:38,

                 from /usr/CGAL-4.9/include/CGAL/CORE_BigFloat.h:27,

                 from /usr/CGAL-4.9/include/CGAL/CORE_arithmetic_kernel.h:39,

                 from /usr/CGAL-4.9/include/CGAL/Arithmetic_kernel.h:51,

                 from /usr/CGAL-4.9/include/CGAL/Arr_rational_function_traits_2.h:28,

                 from /usr/CGAL-4.9/include/CGAL/Sweep_line_2_algorithms.h:37,

                 from /usr/CGAL-4.9/include/CGAL/Snap_rounding_2.h:28,

                 from /usr/CGAL-4.9/examples/Snap_rounding_2/snap_rounding.cpp: :

/usr/CGAL-4.9/include/CGAL/CORE/extLong.h:171:8: warning: ‘CORE::extLong::extLong(int)’ redeclared without dllimport attribute after being referenced with dll linkage

inline extLong::extLong(int i) : val(i), flag(0) {

        ^

/usr/CGAL-4.9/include/CGAL/CORE/extLong.h:292:13: warning: ‘bool CORE::extLong::isNaN() const’ redeclared without dllimport attribute after being referenced with dll linkage

inline bool extLong::isNaN() const {

 

There are a number of similar errors that have been omitted here.

 

This same issue has been submitted as http://stackoverflow.com/questions/41274230/cannot-make-cgal-examples-in-cygwin.

 

Thanks!!!

 

Phil Anzel

Senior Developer

Work: 970-295-5440  |

2150 Centre Ave, Bldg A, Fort Collins, CO 80526

USDA/NRCS Contractor - Team ASRC Federal Vistronix | Customer-Focused. Operationally Excellent.

 

This electronic message contains information generated by the USDA solely for the intended recipients.  Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties.  If you believe you have received this message in error, please notify the sender and delete the email immediately.

 




Archive powered by MHonArc 2.6.18.

Top of Page