131 lines
8.3 KiB
HTML
131 lines
8.3 KiB
HTML
<html><head><title>CompileOnCygwin/es</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>CompileOnCygwin/es</h1></div>
|
|
|
|
<div id="mw-content-text" lang="es" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><div id="itsfree" style="text-align:center;color:black;background:#FDE0A8;margin:1em 7em;padding:0.5em 2em;border:2px solid #FF5706;">Warning, the contents of this page may be obsolete. Please help us to keep it updated!</div>
|
|
<p><br />
|
|
</p>
|
|
<div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
|
|
<ul>
|
|
<li class="toclevel-1 tocsection-1"><a href="#How_to_build_and_run_FreeCAD_under_Cygwin"><span class="tocnumber">1</span> <span class="toctext">How to build and run FreeCAD under Cygwin</span></a>
|
|
<ul>
|
|
<li class="toclevel-2 tocsection-2"><a href="#Prerequisites"><span class="tocnumber">1.1</span> <span class="toctext">Prerequisites</span></a>
|
|
<ul>
|
|
<li class="toclevel-3 tocsection-3"><a href="#Note_1"><span class="tocnumber">1.1.1</span> <span class="toctext">Note 1</span></a></li>
|
|
<li class="toclevel-3 tocsection-4"><a href="#Note_2"><span class="tocnumber">1.1.2</span> <span class="toctext">Note 2</span></a></li>
|
|
<li class="toclevel-3 tocsection-5"><a href="#Note_3"><span class="tocnumber">1.1.3</span> <span class="toctext">Note 3</span></a></li>
|
|
<li class="toclevel-3 tocsection-6"><a href="#Note_4"><span class="tocnumber">1.1.4</span> <span class="toctext">Note 4</span></a></li>
|
|
<li class="toclevel-3 tocsection-7"><a href="#Note_5"><span class="tocnumber">1.1.5</span> <span class="toctext">Note 5</span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-2 tocsection-8"><a href="#Configuration"><span class="tocnumber">1.2</span> <span class="toctext">Configuration</span></a>
|
|
<ul>
|
|
<li class="toclevel-3 tocsection-9"><a href="#Note_1_2"><span class="tocnumber">1.2.1</span> <span class="toctext">Note 1</span></a></li>
|
|
<li class="toclevel-3 tocsection-10"><a href="#Note_2_2"><span class="tocnumber">1.2.2</span> <span class="toctext">Note 2</span></a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toclevel-2 tocsection-11"><a href="#Installation"><span class="tocnumber">1.3</span> <span class="toctext">Installation</span></a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<h2><span class="mw-headline" id="How_to_build_and_run_FreeCAD_under_Cygwin">How to build and run FreeCAD under Cygwin</span></h2>
|
|
<h3><span class="mw-headline" id="Prerequisites">Prerequisites</span></h3>
|
|
<p>To compile FreeCAD, you will need, besides functioning Cygwin environment
|
|
and programming tools (like compiler), the following libraries:
|
|
</p>
|
|
<ul><li> Python ( <a rel="nofollow" class="external free" href="http://www.python.org">http://www.python.org</a> ), >= 2.5.x</li>
|
|
<li> Qt ( <a rel="nofollow" class="external free" href="http://www.trolltech.no">http://www.trolltech.no</a> ), >= 4.1.x</li>
|
|
<li> Coin3D ( <a rel="nofollow" class="external free" href="http://www.coin3d.org">http://www.coin3d.org</a> ), >= 2.4.x</li>
|
|
<li> SoQt ( <a rel="nofollow" class="external free" href="http://www.coin3d.org">http://www.coin3d.org</a> ), >= 1.2.x</li>
|
|
<li> Xerces-c ( <a rel="nofollow" class="external free" href="http://xml.apache.org/dist/xerces-c/">http://xml.apache.org/dist/xerces-c/</a> )</li>
|
|
<li> zlib ( <a rel="nofollow" class="external free" href="http://www.zlib.net/">http://www.zlib.net/</a> )</li></ul>
|
|
<p>As far as I know, except of Coin3D and SoQt all libraries are available as prebuilt
|
|
binary packages from one of the Cygwin mirrors. To install them, first download the
|
|
latest version of setup.exe from www.cygwin.com and run it with administrator rights.
|
|
Then follow the instructions of the wizard until the list of all available packages
|
|
appears. Select the devel files of all the required libraries and install them.
|
|
</p><p>Then download the source tarballs of Coin3D and SoQt and unpack them into a directory
|
|
of your choice.
|
|
The Coin library can be built with ./configure --disable-msvc;make; make install.
|
|
</p><p>Building SoQt is a bit tricky and I haven't managed yet to build it in a proper way.
|
|
There are various problems with X11 functions and Windows API functions which I
|
|
don't know how to solve.
|
|
</p><p>And for the Mesh module of FreeCAD the additional libraries
|
|
</p>
|
|
<ul><li> GTS Library ( <a rel="nofollow" class="external free" href="http://gts.sourceforge.net">http://gts.sourceforge.net</a> )</li>
|
|
<li> Wild Magic ( <a rel="nofollow" class="external free" href="http://www.geometrictools.com">http://www.geometrictools.com</a> )</li>
|
|
<li> OpenCASCADE ( <a rel="nofollow" class="external free" href="http://www.opencascade.org">http://www.opencascade.org</a> ), you need >=5.2 here</li></ul>
|
|
<p>are required. OpenCASCADE is also needed by the Part and Raytracing modules.
|
|
</p>
|
|
<h4><span class="mw-headline" id="Note_1">Note 1</span></h4>
|
|
<p>As OpenCASCADE that is also required by the Mesh, Part and Raytracing
|
|
modules is not available for Cygwin it is not possible to build them
|
|
for this platform. It is planned for the future to move all OpenCASCADE
|
|
dependencies of the Mesh module into a separate module so that at least
|
|
this module can be built under Cygwin.
|
|
</p>
|
|
<h4><span class="mw-headline" id="Note_2">Note 2</span></h4>
|
|
<p>All libraries listed above must be built as shared library. Refer to their
|
|
documentation to see how to do.
|
|
</p>
|
|
<h4><span class="mw-headline" id="Note_3">Note 3</span></h4>
|
|
<p>If possible you should enable thread support for the libraries. At least for
|
|
Qt thread support is strongly recommended, otherwise you will run into linker
|
|
errors at build time of FreeCAD.
|
|
</p>
|
|
<h4><span class="mw-headline" id="Note_4">Note 4</span></h4>
|
|
<p>zlib might be already on your system, as this is a library that is used
|
|
from a lot of other libraries.
|
|
</p>
|
|
<h4><span class="mw-headline" id="Note_5">Note 5</span></h4>
|
|
<p>There seems to be various problems with Qt's uic tool of the Cygwin port.
|
|
</p><p>Due to these problems it is not possible to run the GUI under Cygwin at the
|
|
moment. It is only possible to run the commandline version.
|
|
</p>
|
|
<h3><span class="mw-headline" id="Configuration">Configuration</span></h3>
|
|
<p>For the build process of FreeCAD we make use of configure scripts.
|
|
To have an overview of all options type in ./configure --help, first.
|
|
</p><p>If you have installed all libraries above into standard paths you need not any of the
|
|
'--with' options at all. Unless you have installed any library into a non-standard path,
|
|
then make use of the --with-XXX-includes or --with-XXX-libs options.
|
|
(XXX represents the corresponding library.)
|
|
</p>
|
|
<h4><span class="mw-headline" id="Note_1_2">Note 1</span></h4>
|
|
<p>Due to some limitations of the Windows platform it is not possible to build
|
|
libraries with unresolved symbols at link time. Thus it is strongly recommended to run
|
|
./configure with the option LDFLAGS=-no-undefined, otherwise the creation of shared
|
|
libraries fails. For more details see section 11.2.1 Creating Libtool Libraries with
|
|
Automake of the libtool documentation.
|
|
</p>
|
|
<h4><span class="mw-headline" id="Note_2_2">Note 2</span></h4>
|
|
<p>To specify FreeCAD's root directory it is recommended to use only the '--prefix'
|
|
option from the configure script but not the --bindir, --libdir, ... options, because
|
|
at startup FreeCAD makes assumptions where its lib-, doc-, .. directories reside.
|
|
The default root directory is located in ~/FreeCAD.
|
|
</p><p>If you know how to work with GNU autoconf, feel free to contribute improvements
|
|
to our configuration scripts --- that would be great.
|
|
</p><p><br />
|
|
</p>
|
|
<h3><span class="mw-headline" id="Installation">Installation</span></h3>
|
|
<p>Once you have built the sources successfully using 'make' with 'make install' you can
|
|
install FreeCAD onto your machine whereever you want. Go to the directory FreeCAD/bin
|
|
and just type in ./FreeCADCmd.
|
|
FreeCAD's default root directory resides under ~/FreeCAD, so you don't need root privileges
|
|
therefore.
|
|
</p>
|
|
<div style="clear:both"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div><div class="printfooter">
|
|
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=CompileOnCygwin/es&oldid=175105">http://www.freecadweb.org/wiki/index.php?title=CompileOnCygwin/es&oldid=175105</a>"</div>
|
|
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
|
|
</div>
|
|
</div>
|
|
<div id="mw-navigation">
|
|
<h2>Navigation menu</h2>
|
|
|
|
</body></html> |