Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL 4.1 make error Win7

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL 4.1 make error Win7


Chronological Thread 
  • From: "Laurent Rineau (CGAL/GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL 4.1 make error Win7
  • Date: Mon, 23 Sep 2013 12:24:50 +0200
  • Organization: GeometryFactory

Le dimanche 22 septembre 2013 04:38:48 mytien a écrit :

> Hey,

> I am trying to compile CGAL 4.1 to use it in my applications.

> So far I managed configuration with CMake, I chose MinGW and successfully

> generated a Makefile.

> when trying to build CGAL with make, i receive following output:

>

> Scanning dependencies of target CGAL

> [ 16%] Building CXX object src/CGAL/CMakeFiles/CGAL.dir/all_files.cpp.obj

> [ 33%] Building RC object src/CGAL/CMakeFiles/CGAL.dir/CGAL_verinfo.rc.obj

> Linking CXX shared library ..\..\bin\libCGAL.dll

> ..\..\..\auxiliary\gmp\lib\libmpfr-4.dll: file not recognized: File format

> not recognized

> collect2: ld returned 1 exit status

> make[2]: *** [bin/libCGAL.dll] error 1

> make[1]: *** [src/CGAL/CMakeFiles/CGAL.dir/all] error 2

> make: *** [all] errors 2

>

> Somehow my "bin" folder is empty, also I dont have an "all" file in

> "src/CGAL/CMakeFiles/CGAL.dir/", only a file called "all_files.cpp.obj".

>

> I don't know if this is important but here are my CMakeCache.txt and the

> Makefile generated by CMake:

> Makefile <http://cgal-discuss.949826.n4.nabble.com/file/n4658063/Makefile>

> CMakeCache.txt

> <http://cgal-discuss.949826.n4.nabble.com/file/n4658063/CMakeCache.txt>

>

> Any ideas?

 

In do not know how you ended up with that CMake configuration. Your CMake variables GMP_LIBRARIES and MPFR_LIBRARIES both are the path to .dll files, where they should be .lib files. Once you fix that, the compilation should go on.

 

--

Laurent Rineau, PhD

R&D Engineer at GeometryFactory http://www.geometryfactory.com/

Release Manager of the CGAL Project http://www.cgal.org/

 




Archive powered by MHonArc 2.6.18.

Top of Page