Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Makefile confusion
- Date: Fri, 30 Sep 2011 16:36:17 +0200
- Organization: GeometryFactory
On vendredi 30 septembre 2011 16:00:34 damian wrote:
> Hello,
>
> i am new to CGAL and not at all experienced with makefiles. i am running
> ubuntu, use eclipse ganymede and have configured cgal correctly for small
> projects, but projects using more than one file won't work. so maybe i just
> describe how i usually configure my small projects and tell you the error
> code for the big one and hopefully i'll get some suggestions on what to
> change.
>
> with my small projects, i edit and save my main.cpp-file and copy a
> 'CMakeLists.txt'-File from one of the example-folders right next to it.
> Then I adjust the project's name and the source' filename in the txt-file.
> after that i change to that directory and execute (it's quite mystical for
> me) 'cmake -DCGAL_DIR=$HOME/CGAL_3.8' and 'make'. compiling the projects
> in eclipse afterwards gives me an 'error code 2' but nonetheless the
> projects are being built properly.
>
> with a larger project, i get lots of '/usr/bin/ld:
> /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): relocation 16
> has invalid symbol index 14' errors. and i am quite confused, also because
> the manual pages of cgal don't give me a clue what cmake is doing in the
> background.
>
> Can anyone help me with that?
Instead of copy-pasting an existing CMakeLists.txt, you can run the script
$HOME/CGAL_3.8/scripts/cgal_create_cmake_script in your project, to create a
new CMakeLists.txt.
If your project has severall .cpp files used to build a single executable,
you
can put all the .cpp files names in a single macro
'create_single_source_cgal_program' (that macro is not well named). The name
of the executable will be the name of the first .cpp file (without the
extension).
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Makefile confusion, damian, 09/30/2011
- Re: [cgal-discuss] Makefile confusion, Laurent Rineau (GeometryFactory), 09/30/2011
- [cgal-discuss] Re: Makefile confusion, damian, 09/30/2011
- Re: [cgal-discuss] Makefile confusion, Laurent Rineau (GeometryFactory), 09/30/2011
Archive powered by MHonArc 2.6.16.