Subject: CGAL users discussion list
List archive
- From: Joachim Reichel <>
- To:
- Subject: Re: [cgal-discuss] compile stand-alone program
- Date: Fri, 28 Mar 2008 16:51:53 +0100
Hi,
> Because I am not a superuser for my office machine, I can not
> install all the libraries (tens of them). I would like to compile a
> stand-alone version of the mesh-simplification binary and run
> it on all i386 compatible Linux. I am wondering if there an option
> that I can compile the code with static linking only, or other
> better ways of making it stand-alone?
There is no option, but you can do it manually. Have a look at the link
command. First of all, try to reduce to set of passed libraries. In this
case, all of them except -lCGAL can be dropped. Now replace -lCGAL by
-Wl,-Bstatic -lCGAL -Wl,-Bdynamic
to tell the linker to use the static library of CGAL. There will be some
dependencies on dynamic libraries left, but most probably they will be
present on the target system. You could also use
-Wl,-Bstatic -lCGAL -lstdc++ -Wl,-Bdynamic
to link the C++ library statically as well.
Joachim
- compile stand-alone program, Qianqian Fang, 03/28/2008
- Re: [cgal-discuss] compile stand-alone program, Joachim Reichel, 03/28/2008
- Re: [cgal-discuss] compile stand-alone program, Qianqian Fang, 03/28/2008
- Re: [cgal-discuss] compile stand-alone program, Joachim Reichel, 03/28/2008
Archive powered by MHonArc 2.6.16.