<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https:///api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joncrookston</id>
	<title>TexGen - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https:///api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Joncrookston"/>
	<link rel="alternate" type="text/html" href=""/>
	<updated>2026-04-12T11:06:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2008-09-12T12:35:34Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: /* Integrating TexGen with ABAQUS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows (Microsoft Visual Studio C++, recommended method) ==&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://www.microsoft.com/express/ Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum]. Brief instructions on how to install the various 3rd party libraries under windows are given below. Note that you do not need to install all of these in order to perform the minimal build. Only CMake is absolutely required.&lt;br /&gt;
&lt;br /&gt;
==== CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and install, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
==== TortoiseSVN ====&lt;br /&gt;
&lt;br /&gt;
[http://tortoisesvn.net/downloads Download TortoiseSVN] and install it.&lt;br /&gt;
&lt;br /&gt;
==== SWIG ====&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/ Download] the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31).&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
&lt;br /&gt;
[http://www.python.org/ Download Python] and install.&lt;br /&gt;
&lt;br /&gt;
==== OpenCascade ====&lt;br /&gt;
&lt;br /&gt;
[http://www.opencascade.org/getocc/download/ Download OpenCascade] and install; this extracts the files to a directory. If the installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; file located the directory where the files where extracted (read &amp;#039;readme.htm&amp;#039; file in the same directory for more information).  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
==== VTK ====&lt;br /&gt;
&lt;br /&gt;
[http://www.vtk.org/get-software.php Download] the latest source files and extract them. Follow the instructions in &amp;#039;README.html&amp;#039; found in the extracted directory to compile VTK using CMake. The following CMake settings should be set:&lt;br /&gt;
&lt;br /&gt;
 BUILD_EXAMPLES           OFF&lt;br /&gt;
 BUILD_SHARED_LIBS        OFF&lt;br /&gt;
 VTK_USE_MPEG2_ENCODER    OFF&lt;br /&gt;
 VTK_USE_PARALLEL         OFF&lt;br /&gt;
 VTK_USE_RENDERING        ON&lt;br /&gt;
 VTK_WRAP_JAVA            OFF&lt;br /&gt;
 VTK_WRAP_PYTHON          OFF&lt;br /&gt;
 VTK_WRAP_TCL             OFF&lt;br /&gt;
&lt;br /&gt;
You may be able to get things working with different settings, however these are the settings I use and are known to work.&lt;br /&gt;
&lt;br /&gt;
==== wxWidgets ====&lt;br /&gt;
&lt;br /&gt;
[http://www.wxwidgets.org/downloads/ Download] and install the windows version of wxWidgets (wxMSW). It is then necessary to compile wxWidgets from source, detailed instructions on how to do this can be found in &amp;#039;install.txt&amp;#039; located in the &amp;#039;docs\msw&amp;#039; subfolder. The main steps are to open &amp;#039;wx.dsw&amp;#039; with MSVC located in the &amp;#039;build\msw&amp;#039; subfolder and compile both Release and Debug configurations (The configuration can be selected from the drop down box on the main toolbar in Visual Studio. Universal, Unicode and DLL versions need not be compiled).&lt;br /&gt;
&lt;br /&gt;
=== Checkout TexGen source code from subversion server ===&lt;br /&gt;
Create a directory where you would like to store the TexGen source code in Windows Explorer. Right click on this folder and select &amp;quot;SVN Checkout...&amp;quot; from the context menu that appears. In the dialog box which follows, enter &amp;quot;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;quot; in the URL field. The Checkout directory field should have been filled in automatically. Click on OK to start downloading the TexGen source code. In future the latest version of the source code can be obtained simply by right clicking on the folder and selecting &amp;quot;SVN Update&amp;quot; from the context menu.&lt;br /&gt;
&lt;br /&gt;
=== Configuring the build system with CMake ===&lt;br /&gt;
Run CMake from its shortcut on the Start menu. There are some general instructions on using CMake on the [http://www.cmake.org/HTML/RunningCMake.html CMake website] which are worth reading. You will need to fill in the source code location, this should point to where you checkout out the latest TexGen SVN code or where you extracted the source code from the zip file. Also set where to place the binary files once they are compiled, this can be the same as the source directory, a subdirectory within the source directory or any other location.&lt;br /&gt;
&lt;br /&gt;
Once that is entered click &amp;#039;Configure&amp;#039; and choose the Visual Studio version which you have installed and click ok. You will initially get a number of error messages such as:&lt;br /&gt;
&lt;br /&gt;
 CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
 CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
&lt;br /&gt;
This is normal, in order to get rid of the errors you will need to tell CMake where the various libraries you have installed can be found. This is done in the Cache Values sections.&lt;br /&gt;
&lt;br /&gt;
It is recommended to begin with a minimal build, this is achieved by setting the cache values as follows:&lt;br /&gt;
&lt;br /&gt;
 BUILD_CASCADE_EXPORT           OFF&lt;br /&gt;
 BUILD_DOCUMENTATION            OFF&lt;br /&gt;
 BUILD_EXAMPLES                 OFF&lt;br /&gt;
 BUILD_GUI                      OFF&lt;br /&gt;
 BUILD_PYTHON_INTERFACE         OFF&lt;br /&gt;
 BUILD_RENDERER                 OFF&lt;br /&gt;
 BUILD_SHARED                   ON&lt;br /&gt;
 BUILD_UNIT_TESTS               OFF&lt;br /&gt;
&lt;br /&gt;
Once these are set press configure again and you shouldn&amp;#039;t have any more errors/warnings. Press &amp;#039;OK&amp;#039; to generate the MSVC solution and project files. Configuring the various optional modules is explained in [[#Configuring optional modules]].&lt;br /&gt;
&lt;br /&gt;
=== Configuring optional modules ===&lt;br /&gt;
&lt;br /&gt;
Once the minimal build is working you may want to switch on the optional modules. To do this open up CMake again and switch the modules you want to ON in the Cache Values then click Configure. You will most likely see some errors telling you it is unable to automatically find certain directories. You will need to specify these manually. An explanation of the different locations is listed below:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039;&amp;#039;&amp;#039; - This should be the folder where the TexGen python modules will be placed. Usually located in &amp;#039;C:\Python25\Lib\site-packages&amp;#039;, but this will depend on the version of Python installed and where you decided to install it.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SWIG_DIR&amp;#039;&amp;#039;&amp;#039; -  This is the location where you extracted the SWIG executable. e.g. &amp;#039;C:\Program Files\swigwin-1.3.35&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SWIG_EXECUTABLE&amp;#039;&amp;#039;&amp;#039; - Same as root directory followed by &amp;#039;swig.exe&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;wxWidgets_ROOT_DIR&amp;#039;&amp;#039;&amp;#039; - Location where you install wxWidgets. e.g. &amp;#039;C:/wxWidgets-2.8.7&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;wxWidgets_LIB_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the wxWidgets libraries were compiled to, should be the same as the root directory followed by &amp;#039;lib\vc_lib&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;OPENCASCADE_INCLUDE_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the OpenCascade header files are located. e.g. &amp;#039;C:/OpenCASCADE6.1.0/ros/inc&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;OPENCASCADE_LIBRARY_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the OpenCascade libraries are located. e.g. &amp;#039;C:/OpenCASCADE6.1.0/ros/win32/lib&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the OpenCascade debug libraries are located. e.g. &amp;#039;C:/OpenCASCADE6.1.0/ros/win32/libd&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;VTK_DIR&amp;#039;&amp;#039;&amp;#039; - Location of the VTK binary directory (note: not the source directory).&lt;br /&gt;
&lt;br /&gt;
After setting the directories manually, click on configure again. You may need to go through several iterations of changing parameters then pressing configure. Once you have finished changing parameters and have successfully pressed configure without error messages you can press the OK button to generate the build. Note: you can always come back to this at a later time to make changes.&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
Find &amp;#039;TexGen.sln&amp;#039; which should be located in the directory where you told CMake to output the binary files to and open it with Microsoft Visual Studio.&lt;br /&gt;
&lt;br /&gt;
Set the configuration to &amp;#039;Release&amp;#039; and build the solution. Hopefully the project will have been compiled without errors.&lt;br /&gt;
&lt;br /&gt;
If you want to compile and execute the Graphical User Interface you will need to install it, you will not be able to execute it directly from the build directory. This is done by right click on the &amp;#039;INSTALL&amp;#039; project in the Solution Explorer and selecting Build. This will copy the Python modules into the Python site-packages directory so that they can be imported into scripts, and it will copy the executable along with other necessary files into &amp;#039;C:\Program Files\TexGen\&amp;#039; by default (this can be changed with the CMAKE_INSTALL_PREFIX cache value in CMake). TexGenGUI.exe should then be run from the installed location, if you attempt to run it directly from where it was compiled you will get some errors on launch.&lt;br /&gt;
&lt;br /&gt;
=== Building the documentation ===&lt;br /&gt;
&lt;br /&gt;
To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Open a command prompt in the &amp;#039;Docs&amp;#039; subdirectory of the source code and run &amp;#039;doxygen&amp;#039;. If the doxygen directory is not in your path, you must add it, or give the full path on the command line.&lt;br /&gt;
&lt;br /&gt;
=== Integrating TexGen with ABAQUS ===&lt;br /&gt;
&lt;br /&gt;
If you are using ABAQUS and wish to use TexGen Python scripting from within the ABAQUS/CAE environment, there are a few extra steps to perform. This is because ABAQUS comes packaged with its own version of Python, so any modules added to your standalone python installation will not be accessible by ABAQUS. You must compile the TexGen Python modules with the same version of Python as ABAQUS uses. The following table shows which version of Python is used in specific ABAQUS versions:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! ABAQUS Version !! Python Version&lt;br /&gt;
|-&lt;br /&gt;
| 6.6-1 || 2.3.3&lt;br /&gt;
|- &lt;br /&gt;
| 6.7-1 || 2.4.3 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If your version of ABAQUS is not listed in the table above you can type &amp;#039;abaqus python -V&amp;#039; to check what version of Python is used (then please edit this page to update the table). You can obtain specific versions of Python from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.&lt;br /&gt;
&lt;br /&gt;
Additionally you will need to place the TexGen python modules inside ABAQUS&amp;#039; version of python. There are a few ways to accomplish this, the easiest is perhaps to set the CMake cache variable &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; point to the ABAQUS&amp;#039; python directory, e.g.:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR     C:\Abaqus\6.7-1\Python\Lib\&lt;br /&gt;
&lt;br /&gt;
Then when you build the INSTALL project in MSVC++ it will automatically copy the TexGen python modules to the ABAQUS&amp;#039; Python. Alternatively you can simply copy the files manually or modify Python&amp;#039;s search path to include the TexGen python modules, e.g. In python:&lt;br /&gt;
&lt;br /&gt;
 import sys&lt;br /&gt;
 sys.path.append(&amp;#039;C:/Python24/Lib/site-packages/&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
There may also be a need to modify the file [source code location]/Installer/texgen.nsi.  The original version, lines 1-3 are:&lt;br /&gt;
&lt;br /&gt;
 !define VERSION &amp;quot;3.3.0&amp;quot;&lt;br /&gt;
 !define PYTHONDLL python25.dll&lt;br /&gt;
 !define PYTHONVER &amp;quot;2.5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
while on Jon&amp;#039;s version they are:&lt;br /&gt;
&lt;br /&gt;
 !define VERSION &amp;quot;3.3.0&amp;quot;&lt;br /&gt;
 !define PYTHONDLL python24.dll&lt;br /&gt;
 !define PYTHONVER &amp;quot;2.4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when compiling:&lt;br /&gt;
 fatal error LNK1104: cannot open file &amp;#039;python25_d.lib&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; The windows installation of Python doesn&amp;#039;t come with the debug library (&amp;#039;python25_d.lib&amp;#039;, the _d part means debug). You should be able to compile in release mode however. If you really want to compile in debug mode you will need to compile Python from source and link to that. Or you can try to link to the release library &amp;#039;python25.lib&amp;#039; instead, easiest way to do that is to copy &amp;#039;python25.lib&amp;#039; to &amp;#039;python25_d.lib&amp;#039; but this may cause problems during linking or execution.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when compiling:&lt;br /&gt;
 fatal error C1083: Cannot open include file: &amp;#039;wx/wxprec.h&amp;#039;: No such file or directory&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Make sure that you have compiled wxWidgets and that the wxWidgets_XXX cache variables are set correctly in CMake.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I do not have a &amp;#039;libd&amp;#039; folder in &amp;#039;ros/win32&amp;#039; for OpenCASCADE.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; If you do not compile OpenCASCADE yourself then this folder does not exist. However it can be ignored if you are only interested in building the release version of TexGen. If you really want to compile the debug version please refer to the OpenCASCADE documentation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; Why do I get the error message: &amp;quot;The parameter is incorrect.&amp;quot; when launching TexGenGUI.exe?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; This appears to only happen when compiling TexGen with MSVC 2005 or later. I have still not been able to track down the cause of the error as it is particularly cryptic and it will not even allow me to debug the program. For now you must compile with MSVC 2003 or avoid using the GUI until this issue can be resolved.&lt;br /&gt;
&lt;br /&gt;
== Windows (Cygwin and gcc, alternate method) ==&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
=== Download cygwin and install packages ===&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Install TexGen from source ===&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2008-09-12T12:21:42Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: /* Integrating TexGen with ABAQUS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows (Microsoft Visual Studio C++, recommended method) ==&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://www.microsoft.com/express/ Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum]. Brief instructions on how to install the various 3rd party libraries under windows are given below. Note that you do not need to install all of these in order to perform the minimal build. Only CMake is absolutely required.&lt;br /&gt;
&lt;br /&gt;
==== CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and install, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
==== TortoiseSVN ====&lt;br /&gt;
&lt;br /&gt;
[http://tortoisesvn.net/downloads Download TortoiseSVN] and install it.&lt;br /&gt;
&lt;br /&gt;
==== SWIG ====&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/ Download] the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31).&lt;br /&gt;
&lt;br /&gt;
==== Python ====&lt;br /&gt;
&lt;br /&gt;
[http://www.python.org/ Download Python] and install.&lt;br /&gt;
&lt;br /&gt;
==== OpenCascade ====&lt;br /&gt;
&lt;br /&gt;
[http://www.opencascade.org/getocc/download/ Download OpenCascade] and install; this extracts the files to a directory. If the installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; file located the directory where the files where extracted (read &amp;#039;readme.htm&amp;#039; file in the same directory for more information).  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
==== VTK ====&lt;br /&gt;
&lt;br /&gt;
[http://www.vtk.org/get-software.php Download] the latest source files and extract them. Follow the instructions in &amp;#039;README.html&amp;#039; found in the extracted directory to compile VTK using CMake. The following CMake settings should be set:&lt;br /&gt;
&lt;br /&gt;
 BUILD_EXAMPLES           OFF&lt;br /&gt;
 BUILD_SHARED_LIBS        OFF&lt;br /&gt;
 VTK_USE_MPEG2_ENCODER    OFF&lt;br /&gt;
 VTK_USE_PARALLEL         OFF&lt;br /&gt;
 VTK_USE_RENDERING        ON&lt;br /&gt;
 VTK_WRAP_JAVA            OFF&lt;br /&gt;
 VTK_WRAP_PYTHON          OFF&lt;br /&gt;
 VTK_WRAP_TCL             OFF&lt;br /&gt;
&lt;br /&gt;
You may be able to get things working with different settings, however these are the settings I use and are known to work.&lt;br /&gt;
&lt;br /&gt;
==== wxWidgets ====&lt;br /&gt;
&lt;br /&gt;
[http://www.wxwidgets.org/downloads/ Download] and install the windows version of wxWidgets (wxMSW). It is then necessary to compile wxWidgets from source, detailed instructions on how to do this can be found in &amp;#039;install.txt&amp;#039; located in the &amp;#039;docs\msw&amp;#039; subfolder. The main steps are to open &amp;#039;wx.dsw&amp;#039; with MSVC located in the &amp;#039;build\msw&amp;#039; subfolder and compile both Release and Debug configurations (The configuration can be selected from the drop down box on the main toolbar in Visual Studio. Universal, Unicode and DLL versions need not be compiled).&lt;br /&gt;
&lt;br /&gt;
=== Checkout TexGen source code from subversion server ===&lt;br /&gt;
Create a directory where you would like to store the TexGen source code in Windows Explorer. Right click on this folder and select &amp;quot;SVN Checkout...&amp;quot; from the context menu that appears. In the dialog box which follows, enter &amp;quot;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;quot; in the URL field. The Checkout directory field should have been filled in automatically. Click on OK to start downloading the TexGen source code. In future the latest version of the source code can be obtained simply by right clicking on the folder and selecting &amp;quot;SVN Update&amp;quot; from the context menu.&lt;br /&gt;
&lt;br /&gt;
=== Configuring the build system with CMake ===&lt;br /&gt;
Run CMake from its shortcut on the Start menu. There are some general instructions on using CMake on the [http://www.cmake.org/HTML/RunningCMake.html CMake website] which are worth reading. You will need to fill in the source code location, this should point to where you checkout out the latest TexGen SVN code or where you extracted the source code from the zip file. Also set where to place the binary files once they are compiled, this can be the same as the source directory, a subdirectory within the source directory or any other location.&lt;br /&gt;
&lt;br /&gt;
Once that is entered click &amp;#039;Configure&amp;#039; and choose the Visual Studio version which you have installed and click ok. You will initially get a number of error messages such as:&lt;br /&gt;
&lt;br /&gt;
 CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
 CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
&lt;br /&gt;
This is normal, in order to get rid of the errors you will need to tell CMake where the various libraries you have installed can be found. This is done in the Cache Values sections.&lt;br /&gt;
&lt;br /&gt;
It is recommended to begin with a minimal build, this is achieved by setting the cache values as follows:&lt;br /&gt;
&lt;br /&gt;
 BUILD_CASCADE_EXPORT           OFF&lt;br /&gt;
 BUILD_DOCUMENTATION            OFF&lt;br /&gt;
 BUILD_EXAMPLES                 OFF&lt;br /&gt;
 BUILD_GUI                      OFF&lt;br /&gt;
 BUILD_PYTHON_INTERFACE         OFF&lt;br /&gt;
 BUILD_RENDERER                 OFF&lt;br /&gt;
 BUILD_SHARED                   ON&lt;br /&gt;
 BUILD_UNIT_TESTS               OFF&lt;br /&gt;
&lt;br /&gt;
Once these are set press configure again and you shouldn&amp;#039;t have any more errors/warnings. Press &amp;#039;OK&amp;#039; to generate the MSVC solution and project files. Configuring the various optional modules is explained in [[#Configuring optional modules]].&lt;br /&gt;
&lt;br /&gt;
=== Configuring optional modules ===&lt;br /&gt;
&lt;br /&gt;
Once the minimal build is working you may want to switch on the optional modules. To do this open up CMake again and switch the modules you want to ON in the Cache Values then click Configure. You will most likely see some errors telling you it is unable to automatically find certain directories. You will need to specify these manually. An explanation of the different locations is listed below:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039;&amp;#039;&amp;#039; - This should be the folder where the TexGen python modules will be placed. Usually located in &amp;#039;C:\Python25\Lib\site-packages&amp;#039;, but this will depend on the version of Python installed and where you decided to install it.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SWIG_DIR&amp;#039;&amp;#039;&amp;#039; -  This is the location where you extracted the SWIG executable. e.g. &amp;#039;C:\Program Files\swigwin-1.3.35&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SWIG_EXECUTABLE&amp;#039;&amp;#039;&amp;#039; - Same as root directory followed by &amp;#039;swig.exe&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;wxWidgets_ROOT_DIR&amp;#039;&amp;#039;&amp;#039; - Location where you install wxWidgets. e.g. &amp;#039;C:/wxWidgets-2.8.7&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;wxWidgets_LIB_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the wxWidgets libraries were compiled to, should be the same as the root directory followed by &amp;#039;lib\vc_lib&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;OPENCASCADE_INCLUDE_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the OpenCascade header files are located. e.g. &amp;#039;C:/OpenCASCADE6.1.0/ros/inc&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;OPENCASCADE_LIBRARY_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the OpenCascade libraries are located. e.g. &amp;#039;C:/OpenCASCADE6.1.0/ros/win32/lib&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR&amp;#039;&amp;#039;&amp;#039; - Location where the OpenCascade debug libraries are located. e.g. &amp;#039;C:/OpenCASCADE6.1.0/ros/win32/libd&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;VTK_DIR&amp;#039;&amp;#039;&amp;#039; - Location of the VTK binary directory (note: not the source directory).&lt;br /&gt;
&lt;br /&gt;
After setting the directories manually, click on configure again. You may need to go through several iterations of changing parameters then pressing configure. Once you have finished changing parameters and have successfully pressed configure without error messages you can press the OK button to generate the build. Note: you can always come back to this at a later time to make changes.&lt;br /&gt;
&lt;br /&gt;
=== Compiling ===&lt;br /&gt;
&lt;br /&gt;
Find &amp;#039;TexGen.sln&amp;#039; which should be located in the directory where you told CMake to output the binary files to and open it with Microsoft Visual Studio.&lt;br /&gt;
&lt;br /&gt;
Set the configuration to &amp;#039;Release&amp;#039; and build the solution. Hopefully the project will have been compiled without errors.&lt;br /&gt;
&lt;br /&gt;
If you want to compile and execute the Graphical User Interface you will need to install it, you will not be able to execute it directly from the build directory. This is done by right click on the &amp;#039;INSTALL&amp;#039; project in the Solution Explorer and selecting Build. This will copy the Python modules into the Python site-packages directory so that they can be imported into scripts, and it will copy the executable along with other necessary files into &amp;#039;C:\Program Files\TexGen\&amp;#039; by default (this can be changed with the CMAKE_INSTALL_PREFIX cache value in CMake). TexGenGUI.exe should then be run from the installed location, if you attempt to run it directly from where it was compiled you will get some errors on launch.&lt;br /&gt;
&lt;br /&gt;
=== Building the documentation ===&lt;br /&gt;
&lt;br /&gt;
To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Open a command prompt in the &amp;#039;Docs&amp;#039; subdirectory of the source code and run &amp;#039;doxygen&amp;#039;. If the doxygen directory is not in your path, you must add it, or give the full path on the command line.&lt;br /&gt;
&lt;br /&gt;
=== Integrating TexGen with ABAQUS ===&lt;br /&gt;
&lt;br /&gt;
If you are using ABAQUS and wish to use TexGen Python scripting from within the ABAQUS/CAE environment, there are a few extra steps to perform. This is because ABAQUS comes packaged with its own version of Python, so any modules added to your standalone python installation will not be accessible by ABAQUS. You must compile the TexGen Python modules with the same version of Python as ABAQUS uses. The following table shows which version of Python is used in specific ABAQUS versions:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align:center&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! ABAQUS Version !! Python Version&lt;br /&gt;
|-&lt;br /&gt;
| 6.6-1 || 2.3.3&lt;br /&gt;
|- &lt;br /&gt;
| 6.7-1 || 2.4.3 &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If your version of ABAQUS is not listed in the table above you can type &amp;#039;abaqus python -V&amp;#039; to check what version of Python is used (then please edit this page to update the table). You can obtain specific versions of Python from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.&lt;br /&gt;
&lt;br /&gt;
Additionally you will need to place the TexGen python modules inside ABAQUS&amp;#039; version of python. There are a few ways to accomplish this, the easiest is perhaps to set the CMake cache variable &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; point to the ABAQUS&amp;#039; python directory, e.g.:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR     C:\Abaqus\6.7-1\Python\Lib\&lt;br /&gt;
&lt;br /&gt;
Then when you build the INSTALL project in MSVC++ it will automatically copy the TexGen python modules to the ABAQUS&amp;#039; Python. Alternatively you can simply copy the files manually or modify Python&amp;#039;s search path to include the TexGen python modules, e.g. In python:&lt;br /&gt;
&lt;br /&gt;
 import sys&lt;br /&gt;
 sys.path.append(&amp;#039;C:/Python24/Lib/site-packages/&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
There may also be a need to modify the file texgen.nsi.  The original version, lines 1-3 are:&lt;br /&gt;
&lt;br /&gt;
 !define VERSION &amp;quot;3.3.0&amp;quot;&lt;br /&gt;
 !define PYTHONDLL python25.dll&lt;br /&gt;
 !define PYTHONVER &amp;quot;2.5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
while on Jon&amp;#039;s version they are:&lt;br /&gt;
&lt;br /&gt;
 !define VERSION &amp;quot;3.3.0&amp;quot;&lt;br /&gt;
 !define PYTHONDLL python24.dll&lt;br /&gt;
 !define PYTHONVER &amp;quot;2.4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when compiling:&lt;br /&gt;
 fatal error LNK1104: cannot open file &amp;#039;python25_d.lib&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; The windows installation of Python doesn&amp;#039;t come with the debug library (&amp;#039;python25_d.lib&amp;#039;, the _d part means debug). You should be able to compile in release mode however. If you really want to compile in debug mode you will need to compile Python from source and link to that. Or you can try to link to the release library &amp;#039;python25.lib&amp;#039; instead, easiest way to do that is to copy &amp;#039;python25.lib&amp;#039; to &amp;#039;python25_d.lib&amp;#039; but this may cause problems during linking or execution.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when compiling:&lt;br /&gt;
 fatal error C1083: Cannot open include file: &amp;#039;wx/wxprec.h&amp;#039;: No such file or directory&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Make sure that you have compiled wxWidgets and that the wxWidgets_XXX cache variables are set correctly in CMake.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I do not have a &amp;#039;libd&amp;#039; folder in &amp;#039;ros/win32&amp;#039; for OpenCASCADE.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; If you do not compile OpenCASCADE yourself then this folder does not exist. However it can be ignored if you are only interested in building the release version of TexGen. If you really want to compile the debug version please refer to the OpenCASCADE documentation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; Why do I get the error message: &amp;quot;The parameter is incorrect.&amp;quot; when launching TexGenGUI.exe?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; This appears to only happen when compiling TexGen with MSVC 2005 or later. I have still not been able to track down the cause of the error as it is particularly cryptic and it will not even allow me to debug the program. For now you must compile with MSVC 2003 or avoid using the GUI until this issue can be resolved.&lt;br /&gt;
&lt;br /&gt;
== Windows (Cygwin and gcc, alternate method) ==&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
=== Download cygwin and install packages ===&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
=== Install TexGen from source ===&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2008-08-18T14:44:03Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2008-08-13T08:39:44Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>TG3 File Format</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2008-08-13T08:39:12Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
The file format for storing TexGen data has the extension TG3 which stands for TexGen v3. It is an XML file where each element usually corresponds to a class within TexGen core. When a TG3 file is saved, there is an option as to how much data is saved:&lt;br /&gt;
&lt;br /&gt;
* [[#Minimal|Minimal]]&lt;br /&gt;
* [[#Standard|Standard]]&lt;br /&gt;
* [[#Full|Full]]&lt;br /&gt;
&lt;br /&gt;
No matter which of the options is chosen TexGen is able to read the data and recreate the exact some model as was originally saved provided files are saved and loaded by the same version of TexGen. Results may vary when loading a file from a different version of TexGen depending on the output type. For example, if the class to represent a specific textile (e.g. CTextileWeave2D) is modified so that the geometry is created in a different way. Files saved with an old version with minimal output will have the new geometry whereas files saved with standard or full output will retain the old geometry.&lt;br /&gt;
&lt;br /&gt;
===Minimal===&lt;br /&gt;
When minimal output is selected only the information within the Textile derived class is saved. For example, if a textile was created with the CTextileWeave2D class then only the weave pattern, fabric thickness, yarn heights, widths and spacings will be saved. From this the yarn path can be reconstructed. If the textile being saved is not a derived class then it will save as Standard instead.&lt;br /&gt;
&lt;br /&gt;
===Standard===&lt;br /&gt;
When standard output is selected then the information about the yarns will be saved as well. This includes yarn master nodes, interpolation function, yarn section, repeats, etc...&lt;br /&gt;
&lt;br /&gt;
===Full===&lt;br /&gt;
When full output is selected then everything that TexGen stores in memory is saved to file. This includes information such as the actual points lying on the surface of a yarn. These files tend to be very large and should not be used unless it is absolutely necessary.&lt;br /&gt;
&lt;br /&gt;
==Structure==&lt;br /&gt;
The file follows the XML conventions and as such is human readable. Here is an example file saved with [[#Standard|Standard]] output:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;&lt;br /&gt;
 &amp;lt;TexGenModel version=&amp;quot;3.0.0&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;Textile name=&amp;quot;2DWeave(W:2,H:2)&amp;quot; type=&amp;quot;CTextileWeave2D&amp;quot; NeedsBuilding=&amp;quot;0&amp;quot; NumXYarns=&amp;quot;2&amp;quot; NumYYarns=&amp;quot;2&amp;quot; GapSize=&amp;quot;0&amp;quot; FabricThickness=&amp;quot;0.4&amp;quot; Refine=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;Domain type=&amp;quot;CDomainPlanes&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;Plane Normal=&amp;quot;1, 0, 0&amp;quot; d=&amp;quot;-0.5&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Plane Normal=&amp;quot;-1, 0, 0&amp;quot; d=&amp;quot;-1.5&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Plane Normal=&amp;quot;0, 1, 0&amp;quot; d=&amp;quot;-0.5&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Plane Normal=&amp;quot;0, -1, 0&amp;quot; d=&amp;quot;-1.5&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Plane Normal=&amp;quot;0, 0, 1&amp;quot; d=&amp;quot;-0.02&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Plane Normal=&amp;quot;0, 0, -1&amp;quot; d=&amp;quot;-0.42&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/Domain&amp;gt;&lt;br /&gt;
         &amp;lt;Yarn index=&amp;quot;0&amp;quot; NumSlaveNodes=&amp;quot;25&amp;quot; NumSectionPoints=&amp;quot;20&amp;quot; NeedsBuilding=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;Interpolation Periodic=&amp;quot;1&amp;quot; type=&amp;quot;CInterpolationBezier&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;YarnSection type=&amp;quot;CYarnSectionConstant&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;SectionList index=&amp;quot;0&amp;quot; type=&amp;quot;CSectionEllipse&amp;quot; NeedsMeshing=&amp;quot;1&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/YarnSection&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;2, 0, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;0, 2, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;0&amp;quot; Position=&amp;quot;0, 0, 0.1&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;1&amp;quot; Position=&amp;quot;1, 0, 0.3&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;2&amp;quot; Position=&amp;quot;2, 0, 0.1&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/Yarn&amp;gt;&lt;br /&gt;
         &amp;lt;Yarn index=&amp;quot;1&amp;quot; NumSlaveNodes=&amp;quot;25&amp;quot; NumSectionPoints=&amp;quot;20&amp;quot; NeedsBuilding=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;Interpolation Periodic=&amp;quot;1&amp;quot; type=&amp;quot;CInterpolationBezier&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;YarnSection type=&amp;quot;CYarnSectionConstant&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;SectionList index=&amp;quot;0&amp;quot; type=&amp;quot;CSectionEllipse&amp;quot; NeedsMeshing=&amp;quot;1&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/YarnSection&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;2, 0, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;0, 2, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;0&amp;quot; Position=&amp;quot;0, 1, 0.3&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;1&amp;quot; Position=&amp;quot;1, 1, 0.1&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;2&amp;quot; Position=&amp;quot;2, 1, 0.3&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/Yarn&amp;gt;&lt;br /&gt;
         &amp;lt;Yarn index=&amp;quot;2&amp;quot; NumSlaveNodes=&amp;quot;25&amp;quot; NumSectionPoints=&amp;quot;20&amp;quot; NeedsBuilding=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;Interpolation Periodic=&amp;quot;1&amp;quot; type=&amp;quot;CInterpolationBezier&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;YarnSection type=&amp;quot;CYarnSectionConstant&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;SectionList index=&amp;quot;0&amp;quot; type=&amp;quot;CSectionEllipse&amp;quot; NeedsMeshing=&amp;quot;1&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/YarnSection&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;2, 0, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;0, 2, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;0&amp;quot; Position=&amp;quot;0, 0, 0.3&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;1&amp;quot; Position=&amp;quot;0, 1, 0.1&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;2&amp;quot; Position=&amp;quot;0, 2, 0.3&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/Yarn&amp;gt;&lt;br /&gt;
         &amp;lt;Yarn index=&amp;quot;3&amp;quot; NumSlaveNodes=&amp;quot;25&amp;quot; NumSectionPoints=&amp;quot;20&amp;quot; NeedsBuilding=&amp;quot;7&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;Interpolation Periodic=&amp;quot;1&amp;quot; type=&amp;quot;CInterpolationBezier&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;YarnSection type=&amp;quot;CYarnSectionConstant&amp;quot;&amp;gt;&lt;br /&gt;
                 &amp;lt;SectionList index=&amp;quot;0&amp;quot; type=&amp;quot;CSectionEllipse&amp;quot; NeedsMeshing=&amp;quot;1&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;/YarnSection&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;2, 0, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;Repeat value=&amp;quot;0, 2, 0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;0&amp;quot; Position=&amp;quot;1, 0, 0.1&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;1&amp;quot; Position=&amp;quot;1, 1, 0.3&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;MasterNode index=&amp;quot;2&amp;quot; Position=&amp;quot;1, 2, 0.1&amp;quot; Tangent=&amp;quot;0, 0, 0&amp;quot; Up=&amp;quot;0, 0, 1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/Yarn&amp;gt;&lt;br /&gt;
         &amp;lt;PatternCell x=&amp;quot;0&amp;quot; y=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/PatternCell&amp;gt;&lt;br /&gt;
         &amp;lt;PatternCell x=&amp;quot;1&amp;quot; y=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/PatternCell&amp;gt;&lt;br /&gt;
         &amp;lt;PatternCell x=&amp;quot;0&amp;quot; y=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/PatternCell&amp;gt;&lt;br /&gt;
         &amp;lt;PatternCell x=&amp;quot;1&amp;quot; y=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
             &amp;lt;PatternElement value=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/PatternCell&amp;gt;&lt;br /&gt;
         &amp;lt;XYarnData index=&amp;quot;0&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; Spacing=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;XYarnData index=&amp;quot;1&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; Spacing=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;YYarnData index=&amp;quot;0&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; Spacing=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;YYarnData index=&amp;quot;1&amp;quot; Width=&amp;quot;0.8&amp;quot; Height=&amp;quot;0.2&amp;quot; Spacing=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;XYarns index=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;XYarn yarnindex=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/XYarns&amp;gt;&lt;br /&gt;
         &amp;lt;XYarns index=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;XYarn yarnindex=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/XYarns&amp;gt;&lt;br /&gt;
         &amp;lt;YYarns index=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;YYarn yarnindex=&amp;quot;2&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/YYarns&amp;gt;&lt;br /&gt;
         &amp;lt;YYarns index=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
             &amp;lt;YYarn yarnindex=&amp;quot;3&amp;quot; /&amp;gt;&lt;br /&gt;
         &amp;lt;/YYarns&amp;gt;&lt;br /&gt;
     &amp;lt;/Textile&amp;gt;&lt;br /&gt;
 &amp;lt;/TexGenModel&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Elements====&lt;br /&gt;
&lt;br /&gt;
Elements have the following format: &amp;lt;NAME&amp;gt; ... &amp;lt;/NAME&amp;gt;. Everything between the tags is part of the element. All XML files have a single root element, the root element in this case is named &amp;quot;TexGenModel&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
====Attributes====&lt;br /&gt;
&lt;br /&gt;
Elements can contain attributes which come after the name of the element. For example the element &amp;quot;TexGenModel&amp;quot; has an attribute named &amp;quot;version&amp;quot; which specifies what version of TexGen the file was saved by (&amp;quot;3.0.0&amp;quot; in this example). All variables that can be expressed as a single string are stored as attributes (i.e. All the integral data types and small structs like XYZ and XY). The attribute name usually corresponds to the variable name without the Hungarian notation.&lt;br /&gt;
&lt;br /&gt;
====Child Elements====&lt;br /&gt;
&lt;br /&gt;
Variables that cannot be expressed as a single string are stored as child elements. For example the &amp;quot;Textile&amp;quot; element which is an instance of CTextile cannot be expressed as a single string. Hence &amp;quot;Textile&amp;quot; is a child element of &amp;quot;TexGenModel&amp;quot;. The element name usually corresponds to the variable name without the Hungarian notation.&lt;br /&gt;
&lt;br /&gt;
====Collection Classes====&lt;br /&gt;
&lt;br /&gt;
When a variable is a collection class (i.e. vector, list or map) a child element is created for each item in the collection. For example, CTextile contains a vector of yarns, for this model the number of yarns within the vector is 4. Thus the &amp;quot;Textile&amp;quot; element contains 4 child &amp;quot;Yarn&amp;quot; elements. Sometimes the index of the element is given as an &amp;quot;index&amp;quot; attribute. This value is provided only for human readability, when TexGen reads the file this number is ignored. The true index is obtained simply by the order in which the elements appear.&lt;br /&gt;
&lt;br /&gt;
====Subclasses====&lt;br /&gt;
&lt;br /&gt;
In some cases a variable may be a pointer to a base class. It may represent any of the subclasses of the base class. In these cases an additional attribute is added to the element which represents it. The name of the attribute is &amp;quot;type&amp;quot; and its value corresponds to the name of the subclass. For example the &amp;quot;Textile&amp;quot; element in this example is an instance of the &amp;quot;CTextileWeave2D&amp;quot; class.&lt;br /&gt;
&lt;br /&gt;
====API====&lt;br /&gt;
&lt;br /&gt;
Please refer to the [http://texgen.sourceforge.net/api/ API] for information on what the elements and attributes represent.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-02T16:14:22Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the TortoiseSVN installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.  This program is used to obtain the latest version of the TexGen source code.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run.&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.  It is necessary to compile wxWidgets.  Do this by opening the Visual Studio project file (C:\Program Files\wxWidgets-2.8.6\build\msw\wx.dsw) and building both Release and Debug configurations (select the appropriate configuration from the drop down box on the main toolbar in Visual Studio).&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31).&lt;br /&gt;
&lt;br /&gt;
==== Set up a subversion repository and download the TexGen source code ====&lt;br /&gt;
Create a directory where you would like to store the TexGen source code, e.g. C:\SVN\TexGen&lt;br /&gt;
In Windows Explorer, right click on this folder.  In the context menu which appears, choose &amp;#039;SVN Checkout...&amp;#039;.&lt;br /&gt;
In the dialogue which follows, in the URL field enter &amp;#039;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;#039;.  The Checkout directory field should be the name of the directory where you plan to keep the code (c:\SVN\TexGen).  Make sure that &amp;#039;HEAD revision&amp;#039; is selected and click OK.  The code will now be downloaded.  From now on, the code in this folder can be updated using the &amp;#039;SVN Update&amp;#039; context menu option.&lt;br /&gt;
&lt;br /&gt;
==== Configure the project ====&lt;br /&gt;
First of all, copy the file &amp;#039;FindwxWidgets.cmake&amp;#039; from &amp;#039;C:\SVN\TexGen\GUI&amp;#039; to &amp;#039;C:\Program Files\CMake 2.4\share\cmake-2.4\Modules&amp;#039;.  This is necessary to help cmake find all of the wxWidgets modules.&lt;br /&gt;
&lt;br /&gt;
Run CMake from its shortcut on the Start menu.&lt;br /&gt;
&lt;br /&gt;
In the dialogue box, fill in the fields giving the location of the source code (C:\SVN\TexGen) and the destination (e.g. C:\Program Files\TexGen3.2.0), then click &amp;#039;Configure&amp;#039;.  Choose the Visual Studio version which you have installed and click &amp;#039;OK&amp;#039;.  Various amendments will be required, depending on your exact system configuration, hopefully most of them will be covered below:&lt;br /&gt;
&lt;br /&gt;
CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
&lt;br /&gt;
CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
&lt;br /&gt;
Now look at the &amp;#039;Cache Values&amp;#039; in the CMake window.  This is where we tell the computer which modules to build, by setting the values of the fields such as &amp;#039;BUILD_GUI&amp;#039; etc.  These simply toggle between OFF and ON.&lt;br /&gt;
&lt;br /&gt;
There may be problems listed; in my test installation, the problems were with &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; and &amp;#039;SWIG_DIR&amp;#039; - their values both said &amp;#039;NOTFOUND&amp;#039;.  Click on the values and click the &amp;#039;...&amp;#039; button which appears to browse for the folders.  The exact locations will depend on where Swig and Python were installed.  In my case the values were &amp;#039;C:\Program Files\Python24\Lib\site-packages&amp;#039; and &amp;#039;C:\Program Files\swigwin-1.3.31&amp;#039; respectively.  Set these and choose &amp;#039;Configure&amp;#039; again.&lt;br /&gt;
&lt;br /&gt;
CMake Error: wxWidgets required, please specify its location (click OK)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;wxWidgets_LIB_DIR&amp;#039; needs to be found and set.  In my case it was &amp;#039;C:\Program Files\wxWidgets-2.8.6\lib\vc_lib&amp;#039;. Click &amp;#039;Configure&amp;#039; once again and, with any luck, there will be a message at the bottom to say &amp;#039;Configuring done&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
In my case, &amp;#039;BUILD_CASCADE_EXPORT&amp;#039; was set to &amp;#039;OFF&amp;#039;.  I changed it to &amp;#039;ON&amp;#039; and &amp;#039;Configure&amp;#039;d again.  This results in:&lt;br /&gt;
&lt;br /&gt;
CMake Error: This project required some variables to be set, and cmake can not find them. Please set the following variables: &lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR (click OK)&lt;br /&gt;
&lt;br /&gt;
Looking at the Cache Values again, there are also a couple of other variables which must be set.  They should be something like:&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\inc&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_LIBRARY_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\win32\lib&lt;br /&gt;
&lt;br /&gt;
It is safe to ignore &amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR-NOTFOUND&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If you wish, switch on &amp;#039;BUILD_EXAMPLES&amp;#039; and &amp;#039;Configure&amp;#039; again.  Once configuring is done, click OK to generate the Visual Studio project files.&lt;br /&gt;
&lt;br /&gt;
==== Compile ====&lt;br /&gt;
&lt;br /&gt;
Now, using Windows Explorer, navigate to the TexGen build directory (C:\Program Files\TexGen3.2.0) and launch Visual Studio by double-clicking on the file TexGen.sln.&lt;br /&gt;
&lt;br /&gt;
Set the configuration to &amp;#039;Release&amp;#039;, and in the Solution Explorer, select the &amp;#039;INSTALL&amp;#039; project.  Choose Build-&amp;gt;Build Solution (or press F7).  This will take a few minutes to compile the code.  When the compiler has finished, the installation process will copy the Python modules into the Python site-packages directory so that they can be imported into scripts, and it will copy the executables into C:\Program Files\TexGen\.  The TexGen GUI executable file can be found under C:\Program Files\TexGen\TexGenGUI.exe.&lt;br /&gt;
&lt;br /&gt;
To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Open a command prompt in the directory C:\SVN\TexGen\Docs and run &amp;#039;doxygen&amp;#039;.  If the doxygen directory is not in your path, you must add it, or give the full path on the command line, e.g.: &amp;quot;C:\Program Files\Doxygen\Bin\Doxygen.exe&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you plan to use TexGen from within Abaqus/CAE, it is necessary to copy the TexGen directory from C:\Program Files\Python24\Lib\site-packages\ to C:\Abaqus\6.7-1\Python\Lib\, or (preferably) to make your Python script look in the right place like this:&lt;br /&gt;
 import sys&lt;br /&gt;
 sys.path.append(&amp;#039;C:/Program Files/Python24/Lib/site-packages/&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-02T15:47:57Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.  It is necessary to compile wxWidgets.  Do this by opening the Visual Studio project file (C:\Program Files\wxWidgets-2.8.6\build\msw\wx.dsw) and building both Release and Debug configurations (select the appropriate configuration from the drop down box on the main toolbar in Visual Studio).&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31). (Does this now need to be installed?)&lt;br /&gt;
&lt;br /&gt;
==== Set up a subversion repository and download the TexGen source code ====&lt;br /&gt;
Create a directory where you would like to store the TexGen source code, e.g. C:\SVN\TexGen&lt;br /&gt;
In Windows Explorer, right click on this folder.  In the context menu which appears, choose &amp;#039;SVN Checkout...&amp;#039;.&lt;br /&gt;
In the dialogue which follows, in the URL field enter &amp;#039;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;#039;.  The Checkout directory field should be the name of the directory where you plan to keep the code (c:\SVN\TexGen).  Make sure that &amp;#039;HEAD revision&amp;#039; is selected and click OK.  The code will now be downloaded.  From now on, the code in this folder can be updated using the &amp;#039;SVN Update&amp;#039; context menu option.&lt;br /&gt;
&lt;br /&gt;
==== Start compiling ====&lt;br /&gt;
First of all, copy the file &amp;#039;FindwxWidgets.cmake&amp;#039; from &amp;#039;C:\SVN\TexGen\GUI&amp;#039; to &amp;#039;C:\Program Files\CMake 2.4\share\cmake-2.4\Modules&amp;#039;.  This is necessary to help cmake find all of the wxWidgets modules.&lt;br /&gt;
&lt;br /&gt;
Run CMake from its shortcut on the Start menu.&lt;br /&gt;
&lt;br /&gt;
In the dialogue box, fill in the fields giving the location of the source code (C:\SVN\TexGen) and the destination (e.g. C:\Program Files\TexGen3.2.0), then click &amp;#039;Configure&amp;#039;.  Choose the Visual Studio version which you have installed and click &amp;#039;OK&amp;#039;.  Various amendments will be required, depending on your exact system configuration, hopefully most of them will be covered below:&lt;br /&gt;
&lt;br /&gt;
CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
&lt;br /&gt;
CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
&lt;br /&gt;
Now look at the &amp;#039;Cache Values&amp;#039; in the CMake window.  This is where we tell the computer which modules to build, by setting the values of the fields such as &amp;#039;BUILD_GUI&amp;#039; etc.  These simply toggle between OFF and ON.&lt;br /&gt;
&lt;br /&gt;
There may be problems listed; in my test installation, the problems were with &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; and &amp;#039;SWIG_DIR&amp;#039; - their values both said &amp;#039;NOTFOUND&amp;#039;.  Click on the values and click the &amp;#039;...&amp;#039; button which appears to browse for the folders.  The exact locations will depend on where Swig and Python were installed.  In my case the values were &amp;#039;C:\Program Files\Python24\Lib\site-packages&amp;#039; and &amp;#039;C:\Program Files\swigwin-1.3.31&amp;#039; respectively.  Set these and choose &amp;#039;Configure&amp;#039; again.&lt;br /&gt;
&lt;br /&gt;
CMake Error: wxWidgets required, please specify its location (click OK)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;wxWidgets_LIB_DIR&amp;#039; needs to be found and set.  In my case it was &amp;#039;C:\Program Files\wxWidgets-2.8.6\lib\vc_lib&amp;#039;. Click &amp;#039;Configure&amp;#039; once again and, with any luck, there will be a message at the bottom to say &amp;#039;Configuring done&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
In my case, &amp;#039;BUILD_CASCADE_EXPORT&amp;#039; was set to &amp;#039;OFF&amp;#039;.  I changed it to &amp;#039;ON&amp;#039; and &amp;#039;Configure&amp;#039;d again.  This results in:&lt;br /&gt;
&lt;br /&gt;
CMake Error: This project required some variables to be set, and cmake can not find them. Please set the following variables: &lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR (click OK)&lt;br /&gt;
&lt;br /&gt;
Looking at the Cache Values again, there are also a couple of other variables which must be set.  They should be something like:&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\inc&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_LIBRARY_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\win32\lib&lt;br /&gt;
&lt;br /&gt;
It is safe to ignore &amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR-NOTFOUND&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If you wish, switch on &amp;#039;BUILD_DOCUMENTATION&amp;#039; and &amp;#039;BUILD_EXAMPLES&amp;#039; and &amp;#039;Configure&amp;#039; again.  To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Once configuring is done, click OK to generate the Visual Studio project files.&lt;br /&gt;
&lt;br /&gt;
Now, using Windows Explorer, navigate to the TexGen build directory (C:\Program Files\TexGen3.2.0) and launch Visual Studio by double-clicking on the file TexGen.sln.  Set the configuration to &amp;#039;Release&amp;#039;, and in the Solution Explorer, select the &amp;#039;INSTALL&amp;#039; project.  Choose Build-&amp;gt;Build Solution (or press F7).  This will take a few minutes to compile the code.  When the compiler has finished, the TexGen GUI executable file can be found under C:\Program Files\texgen3.2.0\release\TexGenGUI.exe.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-02T15:22:48Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.  It is necessary to compile wxWidgets.  Do this by opening the Visual Studio project file (C:\Program Files\wxWidgets-2.8.6\build\msw\wx.dsw) and building both Release and Debug configurations (select the appropriate configuration from the drop down box on the main toolbar in Visual Studio).&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31). (Does this now need to be installed?)&lt;br /&gt;
&lt;br /&gt;
==== Set up a subversion repository and download the TexGen source code ====&lt;br /&gt;
Create a directory where you would like to store the TexGen source code, e.g. C:\SVN\TexGen&lt;br /&gt;
In Windows Explorer, right click on this folder.  In the context menu which appears, choose &amp;#039;SVN Checkout...&amp;#039;.&lt;br /&gt;
In the dialogue which follows, in the URL field enter &amp;#039;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;#039;.  The Checkout directory field should be the name of the directory where you plan to keep the code (c:\SVN\TexGen).  Make sure that &amp;#039;HEAD revision&amp;#039; is selected and click OK.  The code will now be downloaded.  From now on, the code in this folder can be updated using the &amp;#039;SVN Update&amp;#039; context menu option.&lt;br /&gt;
&lt;br /&gt;
==== Start compiling ====&lt;br /&gt;
First of all, copy the file &amp;#039;FindwxWidgets.cmake&amp;#039; from &amp;#039;C:\SVN\TexGen\GUI&amp;#039; to &amp;#039;C:\Program Files\CMake 2.4\share\cmake-2.4\Modules&amp;#039;.  This is necessary to help cmake find all of the wxWidgets modules.&lt;br /&gt;
&lt;br /&gt;
Run CMake from its shortcut on the Start menu.&lt;br /&gt;
&lt;br /&gt;
In the dialogue box, fill in the fields giving the location of the source code (C:\SVN\TexGen) and the destination (e.g. C:\Program Files\TexGen3.2.0), then click &amp;#039;Configure&amp;#039;.  Choose the Visual Studio version which you have installed and click &amp;#039;OK&amp;#039;.  Various amendments will be required, depending on your exact system configuration, hopefully most of them will be covered below:&lt;br /&gt;
&lt;br /&gt;
CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
&lt;br /&gt;
CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
&lt;br /&gt;
Now look at the &amp;#039;Cache Values&amp;#039; in the CMake window.  This is where we tell the computer which modules to build, by setting the values of the fields such as &amp;#039;BUILD_GUI&amp;#039; etc.  These simply toggle between OFF and ON.&lt;br /&gt;
&lt;br /&gt;
There may be problems listed; in my test installation, the problems were with &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; and &amp;#039;SWIG_DIR&amp;#039; - their values both said &amp;#039;NOTFOUND&amp;#039;.  Click on the values and click the &amp;#039;...&amp;#039; button which appears to browse for the folders.  The exact locations will depend on where Swig and Python were installed.  In my case the values were &amp;#039;C:\Program Files\Python24\Lib\site-packages&amp;#039; and &amp;#039;C:\Program Files\swigwin-1.3.31&amp;#039; respectively.  Set these and choose &amp;#039;Configure&amp;#039; again.&lt;br /&gt;
&lt;br /&gt;
CMake Error: wxWidgets required, please specify its location (click OK)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;wxWidgets_LIB_DIR&amp;#039; needs to be found and set.  In my case it was &amp;#039;C:\Program Files\wxWidgets-2.8.6\lib\vc_lib&amp;#039;. Click &amp;#039;Configure&amp;#039; once again and, with any luck, there will be a message at the bottom to say &amp;#039;Configuring done&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
In my case, &amp;#039;BUILD_CASCADE_EXPORT&amp;#039; was set to &amp;#039;OFF&amp;#039;.  I changed it to &amp;#039;ON&amp;#039; and &amp;#039;Configure&amp;#039;d again.  This results in:&lt;br /&gt;
&lt;br /&gt;
CMake Error: This project required some variables to be set, and cmake can not find them. Please set the following variables: &lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR (click OK)&lt;br /&gt;
&lt;br /&gt;
Looking at the Cache Values again, there are also a couple of other variables which must be set.  They should be something like:&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\inc&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_LIBRARY_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\win32\lib&lt;br /&gt;
&lt;br /&gt;
It is safe to ignore &amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR-NOTFOUND&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If you wish, switch on &amp;#039;BUILD_DOCUMENTATION&amp;#039; and &amp;#039;BUILD_EXAMPLES&amp;#039; and &amp;#039;Configure&amp;#039; again.  To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Once configuring is done, click OK to generate the Visual Studio project files.&lt;br /&gt;
&lt;br /&gt;
Now, using Windows Explorer, navigate to the TexGen build directory (C:\Program Files\TexGen3.2.0) and launch Visual Studio by double-clicking on the file TexGen.sln.  Set the configuration to &amp;#039;Release&amp;#039; and choose Build-&amp;gt;Build Solution (or press F7).  This will take a few minutes to compile the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-02T15:21:42Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.  It is necessary to compile wxWidgets.  Do this by opening the Visual Studio project file (C:\Program Files\wxWidgets-2.8.6\build\msw\wx.dsw) and building both Release and Debug configurations (select the appropriate configuration from the drop down box on the main toolbar in Visual Studio).&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31). (Does this now need to be installed?)&lt;br /&gt;
&lt;br /&gt;
==== Set up a subversion repository and download the TexGen source code ====&lt;br /&gt;
Create a directory where you would like to store the TexGen source code, e.g. C:\SVN\TexGen&lt;br /&gt;
In Windows Explorer, right click on this folder.  In the context menu which appears, choose &amp;#039;SVN Checkout...&amp;#039;.&lt;br /&gt;
In the dialogue which follows, in the URL field enter &amp;#039;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;#039;.  The Checkout directory field should be the name of the directory where you plan to keep the code (c:\SVN\TexGen).  Make sure that &amp;#039;HEAD revision&amp;#039; is selected and click OK.  The code will now be downloaded.  From now on, the code in this folder can be updated using the &amp;#039;SVN Update&amp;#039; context menu option.&lt;br /&gt;
&lt;br /&gt;
==== Start compiling ====&lt;br /&gt;
First of all, copy the file &amp;#039;FindwxWidgets.cmake&amp;#039; from &amp;#039;C:\SVN\TexGen\GUI&amp;#039; to &amp;#039;C:\Program Files\CMake 2.4\share\cmake-2.4\Modules&amp;#039;.  This is necessary to help cmake find all of the wxWidgets modules.&lt;br /&gt;
&lt;br /&gt;
Run CMake from its shortcut on the Start menu.&lt;br /&gt;
&lt;br /&gt;
In the dialogue box, fill in the fields giving the location of the source code (C:\SVN\TexGen) and the destination (e.g. C:\Program Files\TexGen3.2.0), then click &amp;#039;Configure&amp;#039;.  Choose the Visual Studio version which you have installed and click &amp;#039;OK&amp;#039;.  Various amendments will be required, depending on your exact system configuration, hopefully most of them will be covered below:&lt;br /&gt;
&lt;br /&gt;
CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
&lt;br /&gt;
CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
&lt;br /&gt;
Now look at the &amp;#039;Cache Values&amp;#039; in the CMake window.  This is where we tell the computer which modules to build, by setting the values of the fields such as &amp;#039;BUILD_GUI&amp;#039; etc.  These simply toggle between OFF and ON.&lt;br /&gt;
&lt;br /&gt;
There may be problems listed; in my test installation, the problems were with &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; and &amp;#039;SWIG_DIR&amp;#039; - their values both said &amp;#039;NOTFOUND&amp;#039;.  Click on the values and click the &amp;#039;...&amp;#039; button which appears to browse for the folders.  The exact locations will depend on where Swig and Python were installed.  In my case the values were &amp;#039;C:\Program Files\Python24\Lib\site-packages&amp;#039; and &amp;#039;C:\Program Files\swigwin-1.3.31&amp;#039; respectively.  Set these and choose &amp;#039;Configure&amp;#039; again.&lt;br /&gt;
&lt;br /&gt;
CMake Error: wxWidgets required, please specify its location (click OK)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;wxWidgets_LIB_DIR&amp;#039; needs to be found and set.  In my case it was &amp;#039;C:\Program Files\wxWidgets-2.8.6\lib\vc_lib&amp;#039;. Click &amp;#039;Configure&amp;#039; once again and, with any luck, there will be a message at the bottom to say &amp;#039;Configuring done&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
In my case, &amp;#039;BUILD_CASCADE_EXPORT&amp;#039; was set to &amp;#039;OFF&amp;#039;.  I changed it to &amp;#039;ON&amp;#039; and &amp;#039;Configure&amp;#039;d again.  This results in:&lt;br /&gt;
&lt;br /&gt;
CMake Error: This project required some variables to be set, and cmake can not find them. Please set the following variables: &lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR (click OK)&lt;br /&gt;
&lt;br /&gt;
Looking at the Cache Values again, there are also a couple of other variables which must be set.  They should be something like:&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\inc&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_LIBRARY_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\win32\lib&lt;br /&gt;
&lt;br /&gt;
It is safe to ignore &amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR-NOTFOUND&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If you wish, switch on &amp;#039;BUILD_DOCUMENTATION&amp;#039; and &amp;#039;BUILD_EXAMPLES&amp;#039; and &amp;#039;Configure&amp;#039; again.  To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Once configuring is done, click OK to generate the Visual Studio project files.&lt;br /&gt;
&lt;br /&gt;
Now, using Windows Explorer, navigate to the TexGen build directory (C:\Program Files\TexGen3.2.0) and launch Visual Studio by double-clicking on the file TexGen.sln.  Choose Build-&amp;gt;Build Solution (or press F7).  This will take a few minutes to compile the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-02T14:33:30Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31). (Does this now need to be installed?)&lt;br /&gt;
&lt;br /&gt;
==== Set up a subversion repository and download the TexGen source code ====&lt;br /&gt;
Create a directory where you would like to store the TexGen source code, e.g. C:\SVN\TexGen&lt;br /&gt;
In Windows Explorer, right click on this folder.  In the context menu which appears, choose &amp;#039;SVN Checkout...&amp;#039;.&lt;br /&gt;
In the dialogue which follows, in the URL field enter &amp;#039;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;#039;.  The Checkout directory field should be the name of the directory where you plan to keep the code (c:\SVN\TexGen).  Make sure that &amp;#039;HEAD revision&amp;#039; is selected and click OK.  The code will now be downloaded.  From now on, the code in this folder can be updated using the &amp;#039;SVN Update&amp;#039; context menu option.&lt;br /&gt;
&lt;br /&gt;
==== Start compiling ====&lt;br /&gt;
Run CMake from its shortcut on the Start menu.&lt;br /&gt;
In the dialogue box, fill in the fields giving the location of the source code (C:\SVN\TexGen) and the destination (e.g. C:\Program Files\TexGen3.2.0), then click &amp;#039;Configure&amp;#039;.  Choose the Visual Studio version which you have installed and click &amp;#039;OK&amp;#039;.  Various amendments will be required, depending on your exact system configuration, hopefully most of them will be covered below:&lt;br /&gt;
&lt;br /&gt;
CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
&lt;br /&gt;
CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
&lt;br /&gt;
Now look at the &amp;#039;Cache Values&amp;#039; in the CMake window.  This is where we tell the computer which modules to build, by setting the values of the fields such as &amp;#039;BUILD_GUI&amp;#039; etc.  These simply toggle between OFF and ON.&lt;br /&gt;
&lt;br /&gt;
There may be problems listed; in my test installation, the problems were with &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; and &amp;#039;SWIG_DIR&amp;#039; - their values both said &amp;#039;NOTFOUND&amp;#039;.  Click on the values and click the &amp;#039;...&amp;#039; button which appears to browse for the folders.  The exact locations will depend on where Swig and Python were installed.  In my case the values were &amp;#039;C:\Program Files\Python24\Lib\site-packages&amp;#039; and &amp;#039;C:\Program Files\swigwin-1.3.31&amp;#039; respectively.  Set these and choose &amp;#039;Configure&amp;#039; again.&lt;br /&gt;
&lt;br /&gt;
CMake Error: wxWidgets required, please specify its location (click OK)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;wxWidgets_LIB_DIR&amp;#039; needs to be found and set.  In my case it was &amp;#039;C:\Program Files\wxWidgets-2.6.3\lib\vc_lib\msw\wx\msw&amp;#039;. Click &amp;#039;Configure&amp;#039; once again and, with any luck, there will be a message at the bottom to say &amp;#039;Configuring done&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
In my case, &amp;#039;BUILD_CASCADE_EXPORT&amp;#039; was set to &amp;#039;OFF&amp;#039;.  I changed it to &amp;#039;ON&amp;#039; and &amp;#039;Configure&amp;#039;d again.  This results in:&lt;br /&gt;
&lt;br /&gt;
CMake Error: This project required some variables to be set, and cmake can not find them. Please set the following variables: &lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR (click OK)&lt;br /&gt;
&lt;br /&gt;
Looking at the Cache Values again, there are also a couple of other variables which must be set.  They should be something like:&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\inc&lt;br /&gt;
&lt;br /&gt;
OPENCASCADE_LIBRARY_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\win32\lib&lt;br /&gt;
&lt;br /&gt;
It is safe to ignore &amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR-NOTFOUND&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
If you wish, switch on &amp;#039;BUILD_DOCUMENTATION&amp;#039; and &amp;#039;BUILD_EXAMPLES&amp;#039; and &amp;#039;Configure&amp;#039; again.  To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Once configuring is done, click OK to generate the Visual Studio project files.&lt;br /&gt;
&lt;br /&gt;
Now, using Windows Explorer, navigate to the TexGen build directory (C:\Program Files\TexGen3.2.0) and launch Visual Studio by double-clicking on the file TexGen.sln.  Choose Build-&amp;gt;Build Solution (or press F7).  This will take a few minutes to compile the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-02T14:32:03Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31). (Does this now need to be installed?)&lt;br /&gt;
&lt;br /&gt;
==== Set up a subversion repository and download the TexGen source code ====&lt;br /&gt;
Create a directory where you would like to store the TexGen source code, e.g. C:\SVN\TexGen&lt;br /&gt;
In Windows Explorer, right click on this folder.  In the context menu which appears, choose &amp;#039;SVN Checkout...&amp;#039;.&lt;br /&gt;
In the dialogue which follows, in the URL field enter &amp;#039;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;#039;.  The Checkout directory field should be the name of the directory where you plan to keep the code (c:\SVN\TexGen).  Make sure that &amp;#039;HEAD revision&amp;#039; is selected and click OK.  The code will now be downloaded.  From now on, the code in this folder can be updated using the &amp;#039;SVN Update&amp;#039; context menu option.&lt;br /&gt;
&lt;br /&gt;
==== Start compiling ====&lt;br /&gt;
Run CMake from its shortcut on the Start menu.&lt;br /&gt;
In the dialogue box, fill in the fields giving the location of the source code (C:\SVN\TexGen) and the destination (e.g. C:\Program Files\TexGen3.2.0), then click &amp;#039;Configure&amp;#039;.  Choose the Visual Studio version which you have installed and click &amp;#039;OK&amp;#039;.  Various amendments will be required, depending on your exact system configuration, hopefully most of them will be covered below:&lt;br /&gt;
CMake Error: Swig was not found on the system. Please specify the location of Swig. (click OK)&lt;br /&gt;
CMake Error: Error in configuration process, project files may be invalid. (click OK)&lt;br /&gt;
Now look at the &amp;#039;Cache Values&amp;#039; in the CMake window.  This is where we tell the computer which modules to build, by setting the values of the fields such as &amp;#039;BUILD_GUI&amp;#039; etc.  These simply toggle between OFF and ON.&lt;br /&gt;
There may be problems listed; in my test installation, the problems were with &amp;#039;PYTHON_SITEPACKAGES_DIR&amp;#039; and &amp;#039;SWIG_DIR&amp;#039; - their values both said &amp;#039;NOTFOUND&amp;#039;.  Click on the values and click the &amp;#039;...&amp;#039; button which appears to browse for the folders.  The exact locations will depend on where Swig and Python were installed.  In my case the values were &amp;#039;C:\Program Files\Python24\Lib\site-packages&amp;#039; and &amp;#039;C:\Program Files\swigwin-1.3.31&amp;#039; respectively.  Set these and choose &amp;#039;Configure&amp;#039; again.&lt;br /&gt;
CMake Error: wxWidgets required, please specify its location (click OK)&lt;br /&gt;
&amp;#039;wxWidgets_LIB_DIR&amp;#039; needs to be found and set.  In my case it was &amp;#039;C:\Program Files\wxWidgets-2.6.3\lib\vc_lib\msw\wx\msw&amp;#039;. Click &amp;#039;Configure&amp;#039; once again and, with any luck, there will be a message at the bottom to say &amp;#039;Configuring done&amp;#039;.&lt;br /&gt;
In my case, &amp;#039;BUILD_CASCADE_EXPORT&amp;#039; was set to &amp;#039;OFF&amp;#039;.  I changed it to &amp;#039;ON&amp;#039; and &amp;#039;Configure&amp;#039;d again.  This results in:&lt;br /&gt;
CMake Error: This project required some variables to be set, and cmake can not find them. Please set the following variables: OPENCASCADE_INCLUDE_DIR (click OK)&lt;br /&gt;
Looking at the Cache Values again, there are also a couple of other variables which must be set.  They should be something like:&lt;br /&gt;
OPENCASCADE_INCLUDE_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\inc&lt;br /&gt;
OPENCASCADE_LIBRARY_DIR - C:\Program Files\OpenCASCADE6.2.0\ros\win32\lib&lt;br /&gt;
It is safe to ignore &amp;#039;OPENCASCADE_DEBUG_LIBRARY_DIR-NOTFOUND&amp;#039;.&lt;br /&gt;
If you wish, switch on &amp;#039;BUILD_DOCUMENTATION&amp;#039; and &amp;#039;BUILD_EXAMPLES&amp;#039; and &amp;#039;Configure&amp;#039; again.  To build the documentation, [http://www.stack.nl/~dimitri/doxygen/download.html Doxygen] is required.  Once configuring is done, click OK to generate the Visual Studio project files.&lt;br /&gt;
&lt;br /&gt;
Now, using Windows Explorer, navigate to the TexGen build directory (C:\Program Files\TexGen3.2.0) and launch Visual Studio by double-clicking on the file TexGen.sln.  Choose Build-&amp;gt;Build Solution (or press F7).  This will take a few minutes to compile the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-02T13:54:40Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31). (Does this now need to be installed?)&lt;br /&gt;
&lt;br /&gt;
==== Set up a subversion repository and download the TexGen source code ====&lt;br /&gt;
Create a directory where you would like to store the TexGen source code, e.g. C:\SVN\TexGen&lt;br /&gt;
In Windows Explorer, right click on this folder.  In the context menu which appears, choose &amp;#039;SVN Checkout...&amp;#039;.&lt;br /&gt;
In the dialogue which follows, in the URL field enter &amp;#039;https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/&amp;#039;.  The Checkout directory field should be the name of the directory where you plan to keep the code (c:\SVN\TexGen).  Make sure that &amp;#039;HEAD revision&amp;#039; is selected and click OK.  The code will now be downloaded.  From now on, the code in this folder can be updated using the &amp;#039;SVN Update&amp;#039; context menu option.&lt;br /&gt;
&lt;br /&gt;
==== Start compiling ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-01T17:34:56Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
#* SWIG - a wrapper tool [http://www.swig.org/ (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - Download the windows installer (wxMSW) and run.&lt;br /&gt;
&lt;br /&gt;
SWIG - download the latest release of the windows .zip files and extract to a suitable location (e.g. c:\Program Files\swigwin-1.3.31). (Does this now need to be installed?)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-01T17:24:59Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: /* Windows compile */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module) [http://www.vtk.org/get-software.php (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module) [http://www.wxwidgets.org/downloads/ (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/ where x.y.z represents the version number.)&lt;br /&gt;
&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.  Choose &amp;#039;complete installation&amp;#039; and tick the box to set the environment variables.&lt;br /&gt;
&lt;br /&gt;
VTK - Download the installer and run. (Does this work, or is it necessary to compile VTK from source?)&lt;br /&gt;
&lt;br /&gt;
wxWidgets - &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-11-01T17:15:35Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: /* Windows compile */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
(This section is currently being written)&lt;br /&gt;
==== Download and install Subversion ====&lt;br /&gt;
Download the Subversion installer from [http://tortoisesvn.net/downloads here], and run it.  The installation process is straightforward.&lt;br /&gt;
==== Download and install the other packages required to compile TexGen ====&lt;br /&gt;
It is assumed that Microsoft Visual Studio is already installed.  If it isn&amp;#039;t and you plan to use it, then install it.  It may be possible to use the free [http://msdn2.microsoft.com/en-gb/express/aa700735.aspx Visual Studio Express]; if anyone tries this and finds out one way or the other, please post the information either here or in the [http://texgen.sourceforge.net/phpBB2/index.php forum].&lt;br /&gt;
The other packages required are:&lt;br /&gt;
# Required:&lt;br /&gt;
#* CMake - a tool used for the build process [http://www.cmake.org/HTML/Download.html (download)]&lt;br /&gt;
# Optional, depending on which modules will be built:&lt;br /&gt;
#* Python - used for scripting (required for Python module) [http://www.python.org/download/ (download)]&lt;br /&gt;
#* OpenCascade - used for geometry export (required for Export module) [http://www.opencascade.org/getocc/download/ (download)]&lt;br /&gt;
#* VTK - used for rendering (required for Renderer module)  (download)]&lt;br /&gt;
#* wxWidgets - used for handling the GUI (required for GUI module)  (download)]&lt;br /&gt;
(Note that the GUI module requires the Python, Renderer and Export modules.)&lt;br /&gt;
Notes:&lt;br /&gt;
CMake - download the installer and run, selecting &amp;#039;Add CMake to the system PATH for all users&amp;#039; (select current user if this is not permissible on your system).&lt;br /&gt;
Python - if you wish to use TexGen Python scripting from within the Abaqus/CAE computer aided engineering environment, you must install the appropriate version of Python.  Abaqus 6.6-1 uses Python 2.3.3; Abaqus 6.7-1 uses Python 2.4.3 (you can check this for your Abaqus installation by typing &amp;#039;abaqus python -V&amp;#039;).  If you don&amp;#039;t require this type of functionality, the latest stable Python release is recommended. (Hint: specific releases can be downloaded from http://www.python.org/download/releases/x.y.z/)&lt;br /&gt;
OpenCascade - Download the installer and run it; this extracts the files to a directory.  If installation doesn&amp;#039;t start automatically, run the &amp;#039;install.bat&amp;#039; script which is in this directory, or look at the &amp;#039;readme.htm&amp;#039; file in the same directory for more information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cygwin and gcc ===&lt;br /&gt;
A limited build (without graphics) can be made under cygwin, this is a UNIX emulation environment available at [http://www.cygwin.com www.cygwin.com]. &lt;br /&gt;
This can exist peacefully next to the native windows version. &lt;br /&gt;
Cygwin creates a unix-style file system within your windows installation. If you choose c:/cygwin as your install directory, your HOME will be at c:/cygwin/home/&amp;lt;username&amp;gt;/. &lt;br /&gt;
&lt;br /&gt;
==== Download cygwin and install packages ====&lt;br /&gt;
Install gcc, g++, wget, make and cmake using the setup.exe program from the cygwin website. &lt;br /&gt;
For the mesh generator and python interface to work we currently need VTK and swig. &lt;br /&gt;
&lt;br /&gt;
This downloads and installs swig from source (when starting the cygwin shell you can paste this into the command line, otherwise write it to a file and run it with sh). &lt;br /&gt;
 mkdir progs&lt;br /&gt;
 cd progs &lt;br /&gt;
 SWIG=swig-1.3.31&lt;br /&gt;
 wget -nc http://kent.dl.sourceforge.net/sourceforge/swig/$SWIG.tar.gz&lt;br /&gt;
 tar xzvf $SWIG.tar.gz &lt;br /&gt;
 cd $SWIG&lt;br /&gt;
 ./configure &lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This downloads and installs VTK from source, in the ccmake stage, use the cmake graphical commands to get a working install. &lt;br /&gt;
 VTK=vtk-5.0.3&lt;br /&gt;
 wget -nc http://www.vtk.org/files/release/5.0/$VTK.tar.gz&lt;br /&gt;
 tar xzvf $VTK.tar.gz&lt;br /&gt;
 mkdir vtkbin&lt;br /&gt;
 cd vtkbin&lt;br /&gt;
 ccmake ../VTK&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Install TexGen from source ====&lt;br /&gt;
Now we can proceed to install texgen, as an example we&amp;#039;ll work in ~/temp/texgen&lt;br /&gt;
 cd ~; mkdir temp; cd temp; mkdir texgen; cd texgen&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
 cd .. ; mkdir tbin; cd tbin&lt;br /&gt;
 ccmake ../texgen&lt;br /&gt;
 make &lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
This should result in a working texgen install in ~/temp/texgen/tbin.&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
 PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
 PYTHON_LIBRARY: ~/lib/python2.5/config/libpython2.5.a&lt;br /&gt;
 PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
 SWIG_DIR: ~/bin&lt;br /&gt;
 SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Q:&amp;#039;&amp;#039;&amp;#039; I get the following error when linking _Core.so:&lt;br /&gt;
 libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol&amp;#039;&lt;br /&gt;
 can not be used when making a shared object; recompile with -fPIC&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;A:&amp;#039;&amp;#039;&amp;#039; Try removing libpython2.5.a from the libraries to link to by setting PYTHON_LIBRARY to a bogus path, e.g.:&lt;br /&gt;
&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
&lt;br /&gt;
By doing so you may receive a warning similar to this:&lt;br /&gt;
 Warning: Ignoring path found in link libraries for target: _Core, path is:&lt;br /&gt;
 /home/username. Expected a library name or a full path to a library name.&lt;br /&gt;
This warning may be ignored.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Other applications</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-22T15:45:41Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Surface quality of textile composites==&lt;br /&gt;
[[Image:Shrinkage.jpg|thumb|Topological plot of a 12k, 2x2 twill weave fabric moulded with (above) high shrinkage matrix, (below) low shrinkage matrix]]&lt;br /&gt;
&lt;br /&gt;
Surface quality is an area which has sometimes placed limitations on the use of polymer composite materials, especially in highly visual applications such as automotive and sporting goods. Initial simulations on the surface quality of polymer composite laminates were examined with the aid of TexGen’s geometric modelling capabilities &amp;lt;ref&amp;gt;P.J. Schubel, N.A. Warrior, and C.D. Rudd, &amp;quot;Surface roughness modelling of textile composites using TexGen&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Nottingham, UK.&amp;lt;/ref&amp;gt;. This was based on recent research which had been undertaken to experimentally determine the parameters that affect surface quality for polymer composite materials &amp;lt;ref&amp;gt;P.J. Schubel, N.A. Warrior, K.N. Kendall, and C.D. Rudd, &amp;quot;Characterisation of Thermoset Laminates for Cosmetic Automotive Applications: Part I - Surface Characterisation&amp;quot;, Composites: Part A, 37(10), pp. 1734-1746, 2006.&amp;lt;/ref&amp;gt;. This work has led to the development of guidelines for acceptable ‘Class A’ surface finish. Experimental work based on statistically robust test methods indicated that the surface roughness is a function of textile architecture and matrix shrinkage. Dominant identified features affecting surface quality included tow size, thermal expansion and chemical resin shrinkage during cure.&lt;br /&gt;
&lt;br /&gt;
TexGen software provided the platform for the development of a surface roughness simulation tool which accounted for textile architecture and specific cure kinetics of the matrix. The study focused on the influence of thermal and chemical shrinkage during cure and localised variation in volume fraction across the surface of a unit cell. A one-dimensional analysis was used to determine proportional dimensional changes to the matrix region, with the results stitched together to form a three-dimensional topological plot. The models were analysed with low and high shrink resin properties. Optical microscopy was used to determine accurate tow forms for compacted tows which aided the development of the geometric model. Simulated profiles, topography and surface roughness measures were compared to experimental data which demonstrated the significance of matrix contraction and fabric architecture on the final surface quality. The simulations were shown to represent experimental data typically to within 6%.&lt;br /&gt;
&lt;br /&gt;
==Light transmission through textiles==&lt;br /&gt;
&lt;br /&gt;
[[Image:Plainweave.jpg|thumb|Normal light transmission through a plain weave glass fibre fabric: A - fabric geometry model]]&lt;br /&gt;
[[Image:Transmissiondry.jpg|thumb|B - transmission through dry fabric (scale as C)]]&lt;br /&gt;
[[Image:Transmissionwet.jpg|thumb|C - transmission through wetted fabric]]&lt;br /&gt;
&lt;br /&gt;
Due to the attenuation caused by the reinforcement textile and the exponential decay of the light intensity with the depth of penetration, ultraviolet (UV) curing of laminates with a typical thickness of several millimetres is much more challenging than the cure of thin resin films.  The capability of TexGen to model fabrics with arbitrary architecture geometrically, implying local non-uniformities on meso- and macro-scale, and multi-layer textile structures, can be used to quantify the UV transmission through reinforcement textiles.  The results can be used to predict the UV curing behaviour of laminates incorporating these fabrics.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example of a single layer of a plain weave glass fibre fabric is illustrated in Figure A for a patch of 3×3 unit cells &amp;lt;ref&amp;gt;A. Endruweit, W. Ruijter, M.S. Johnson and A.C. Long, &amp;quot;Transmission of UV light through reinforcement fabrics and its effect on UV curing of composite laminates&amp;quot;, in preparation.&amp;lt;/ref&amp;gt;.  The fabric plane is divided into a two-dimensional grid of 100×100 square elements.  As described by Wong et al. &amp;lt;ref&amp;gt;C.C. Wong, A.C. Long, M. Sherburn, F. Robitaille, P. Harrison and C.D. Rudd, &amp;quot;Comparisons of novel and efficient approaches for permeability prediction based on the fabric architecture&amp;quot;, Composites: Part A, 37, pp. 847-857, 2006.&amp;lt;/ref&amp;gt;, TexGen can be used to determine the thickness of each material component (voids/resin or fibre) along a pre-defined direction for each element.  Projection of the attenuation-weighted local material thickness on the grid along the direction of incident light allows the local transmission to be determined.  In case 1 (Figure B), which represents a dry fabric allowing transmission only through the voids between the fibre bundles, the distribution of the transmitted irradiance is determined by the fabric meso-structure.  In case 2 (Figure C), where the reflection at the wetted fibre bundles is assumed to be zero, the transmission depends on the micro-structure, which determines the local thickness of the fibre bundles, as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T13:11:28Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:voxels.jpg|thumb|Figure 1. A TexGen model of plain weave reinforcement, overlayed with sections through the mesh of hexahedral finite element voxels - colours represent the fraction of yarn present in each element]]&lt;br /&gt;
&lt;br /&gt;
TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:conformal3D.jpg|thumb|Figure 2. Stress distribution in an orthogonal 3D woven composite, modelled using a conformal mesh of tetrahedral elements]]&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus&amp;lt;ref&amp;gt;Abaqus finite element package [http://www.abaqus.com/ http://www.abaqus.com/]&amp;lt;/ref&amp;gt; commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers&amp;lt;ref&amp;gt;libMesh finite element libraries, [http://libmesh.sourceforge.net/ http://libmesh.sourceforge.net/]&amp;lt;/ref&amp;gt;.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;.  Using an appropriate continuum damage model, the technique has also been shown to give good agreement with experimentally determined non-linear stress behaviour &amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.  Figure 1 shows a TexGen model of a unit cell of a plain weave reinforced composite and sections through the corresponding voxel mesh.&lt;br /&gt;
&lt;br /&gt;
For applications where a conformal mesh is required, TexGen&amp;#039;s python interface enables a textile model to be accessible from within the Abaqus/CAE FE preprocessor.  Scripting methods have been developed to reconstruct the textile geometry in native Abaqus/CAE objects, permitting the automated use of advanced functionality within Abaqus.  A typical model generated using this technique is shown in Figure 2.&lt;br /&gt;
&lt;br /&gt;
A fatigue damage model has also been developed for 3D woven composites using a multi scale approach.  Evaluation of fatigue damage due to cyclic loading is considered using meso scale (yarns and resin) and micro scale (fibre and resin) models.  Failure envelopes are generated at the micro scale, initially using a hexagonal-packed representative volume element (RVE), under cyclic loading conditions.  These failure envelopes are used to evaluate the initiation and propagation of fatigue damage in the yarns in the meso scale unit cell model.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T13:09:33Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:voxels.jpg|thumb|Figure 1. A TexGen model of plain weave reinforcement, overlayed with sections from the mesh of hexahedral finite element voxels - colours represent the fraction of yarn present in each element]]&lt;br /&gt;
&lt;br /&gt;
TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:conformal3D.jpg|thumb|Figure 2. Stress distribution in an orthogonal 3D woven composite, modelled using a conformal mesh of tetrahedral elements]]&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus&amp;lt;ref&amp;gt;Abaqus finite element package [http://www.abaqus.com/ http://www.abaqus.com/]&amp;lt;/ref&amp;gt; commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers&amp;lt;ref&amp;gt;libMesh finite element libraries, [http://libmesh.sourceforge.net/ http://libmesh.sourceforge.net/]&amp;lt;/ref&amp;gt;.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;.  Using an appropriate continuum damage model, the technique has also been shown to give good agreement with experimentally determined non-linear stress behaviour &amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.  Figure 1 shows a TexGen model of a unit cell of a plain weave reinforced composite and the corresponding voxel mesh.&lt;br /&gt;
&lt;br /&gt;
For applications where a conformal mesh is required, TexGen&amp;#039;s python interface enables a textile model to be accessible from within the Abaqus/CAE FE preprocessor.  Scripting methods have been developed to reconstruct the textile geometry in native Abaqus/CAE objects, permitting the automated use of advanced functionality within Abaqus.  A typical model generated using this technique is shown in Figure 2.&lt;br /&gt;
&lt;br /&gt;
A fatigue damage model has also been developed for 3D woven composites using a multi scale approach.  Evaluation of fatigue damage due to cyclic loading is considered using meso scale (yarns and resin) and micro scale (fibre and resin) models.  Failure envelopes are generated at the micro scale, initially using a hexagonal-packed representative volume element (RVE), under cyclic loading conditions.  These failure envelopes are used to evaluate the initiation and propagation of fatigue damage in the yarns in the meso scale unit cell model.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T13:01:36Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:voxels.jpg|thumb|Above: TexGen model of plain weave unit cell cut in the bias direction; below: Mesh of hexahedral finite element voxels - colours represent the fraction of yarn present in each element ]]&lt;br /&gt;
&lt;br /&gt;
TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:conformal3D.jpg|thumb|Stress distribution in an orthogonal 3D woven composite, modelled using a conformal mesh of tetrahedral elements]]&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus&amp;lt;ref&amp;gt;Abaqus finite element package [http://www.abaqus.com/ http://www.abaqus.com/]&amp;lt;/ref&amp;gt; commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers&amp;lt;ref&amp;gt;libMesh finite element libraries, [http://libmesh.sourceforge.net/ http://libmesh.sourceforge.net/]&amp;lt;/ref&amp;gt;.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;.  Using an appropriate continuum damage model, the technique has also been shown to give good agreement with experimentally determined non-linear stress behaviour &amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.  Figure 1 shows a TexGen model of a unit cell of a plain weave reinforced composite cut in the bias direction, and the corresponding voxel mesh.&lt;br /&gt;
&lt;br /&gt;
For applications where a conformal mesh is required, TexGen&amp;#039;s python interface enables a textile model to be accessible from within the Abaqus/CAE FE preprocessor.  Scripting methods have been developed to reconstruct the textile geometry in native Abaqus/CAE objects, permitting the automated use of advanced functionality within Abaqus.  A typical model generated using this technique is shown in Figure 2.&lt;br /&gt;
&lt;br /&gt;
A fatigue damage model has also been developed for 3D woven composites using a multi scale approach.  Evaluation of fatigue damage due to cyclic loading is considered using meso scale (yarns and resin) and micro scale (fibre and resin) models.  Failure envelopes are generated at the micro scale, initially using a hexagonal-packed representative volume element (RVE), under cyclic loading conditions.  These failure envelopes are used to evaluate the initiation and propagation of fatigue damage in the yarns in the meso scale unit cell model.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T12:16:09Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:voxels.jpg|thumb|Above: TexGen model of plain weave unit cell cut in the bias direction; below: Mesh of hexahedral finite element voxels - colours represent the fraction of yarn present in each element ]]&lt;br /&gt;
&lt;br /&gt;
TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:conformal3D.jpg|thumb|Stress distribution in an orthogonal 3D woven composite, modelled using a conformal mesh of tetrahedral elements]]&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;.  Using an appropriate continuum damage model, the technique has also been shown to give good agreement with experimentally determined non-linear stress behaviour &amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.  Figure 1 shows a TexGen model of a unit cell of a plain weave reinforced composite cut in the bias direction, and the corresponding voxel mesh.&lt;br /&gt;
&lt;br /&gt;
For applications where a conformal mesh is required, TexGen&amp;#039;s python interface enables a textile model to be accessible from within the Abaqus/CAE FE preprocessor.  Scripting methods have been developed to reconstruct the textile geometry in native Abaqus/CAE objects, permitting the automated use of advanced functionality within Abaqus.  A typical model generated using this technique is shown in Figure 2.&lt;br /&gt;
&lt;br /&gt;
A fatigue damage model has also been developed for 3D woven composites using a multi scale approach.  Evaluation of fatigue damage due to cyclic loading is considered using meso scale (yarns and resin) and micro scale (fibre and resin) models.  Failure envelopes are generated at the micro scale, initially using a hexagonal-packed representative volume element (RVE), under cyclic loading conditions.  These failure envelopes are used to evaluate the initiation and propagation of fatigue damage in the yarns in the meso scale unit cell model.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>File:Conformal3D.jpg</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T12:08:33Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: Stress distribution in a 3D woven composite&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Stress distribution in a 3D woven composite&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T12:07:39Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:voxels.jpg|thumb|Above: TexGen model of plain weave unit cell cut in the bias direction; below: Mesh of hexahedral finite element voxels - colours represent the fraction of yarn present in each element ]]&lt;br /&gt;
&lt;br /&gt;
TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Image:conformal3D.jpg|thumb|Stress distribution in an orthogonal 3D woven composite, modelled using a conformal mesh of tetrahedral elements]]&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.  Figure 1 shows a TexGen model of a unit cell of a plain weave reinforced composite cut in the bias direction, and the corresponding voxel mesh.&lt;br /&gt;
&lt;br /&gt;
For applications where a conformal mesh is required, TexGen&amp;#039;s python interface enables a textile model to be accessible from within the Abaqus/CAE FE preprocessor.  Scripting methods have been developed to reconstruct the textile geometry in native Abaqus/CAE objects, permitting the automated use of advanced functionality within Abaqus.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>File:Voxels.jpg</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T11:59:12Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: A TexGen model of a unit cell and the corresponding voxel mesh&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A TexGen model of a unit cell and the corresponding voxel mesh&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T11:58:32Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.  Figure 1 shows a TexGen model of a unit cell of a plain weave reinforced composite cut in the bias direction, and the corresponding voxel mesh.&lt;br /&gt;
&lt;br /&gt;
[[Image:voxels.jpg|thumb|Above: TexGen model of plain weave unit cell cut in the bias direction; below: Mesh of hexahedral finite element voxels - colours represent the fraction of yarn present in each element ]]&lt;br /&gt;
&lt;br /&gt;
For applications where a conformal mesh is required, TexGen&amp;#039;s python interface enables a textile model to be accessible from within the Abaqus/CAE FE preprocessor.  Scripting methods have been developed to reconstruct the textile geometry in native Abaqus/CAE objects, permitting the automated use of advanced functionality within Abaqus.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-16T11:27:06Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For applications where a conformal mesh is required, TexGen&amp;#039;s python interface enables a textile model to be accessible from within the Abaqus/CAE FE preprocessor.  Scripting methods have been developed to reconstruct the textile geometry in native Abaqus/CAE objects, permitting the automated use of advanced functionality within Abaqus.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite heat transfer</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-13T17:56:32Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TexGen has been used to model steady-state thermal conduction in textile composites. &lt;br /&gt;
&lt;br /&gt;
[[Image:Heatflux.png|thumb|Transverse heat flux in a non-crimp, carbon-reinforced composite]]&lt;br /&gt;
[[Image:Thermalcond.png|thumb|Natural variation of the thermal conductivity resulting from geometric changes, superimposed to the linear trend – results obtained from simulations]]&lt;br /&gt;
&lt;br /&gt;
The objectives of the work are to predict the effect of the finer preform geometry on heat transfer and to offer a quantitative demonstration of the natural variability of physical properties in textile composites. In this case the physical phenomenon that is modelled is simple and the associated mathematical apparatus is well resolved. This allows stronger emphasis on the geometry of the preform and its effects.&lt;br /&gt;
&lt;br /&gt;
Beyond the different textile architectures the exact configuration taken by individual yarns within the dry textiles was prescribed, as opposed to being determined from mechanistic models or through appropriate observation techniques. Precise yarn sections and paths were varied systematically for non-crimp fabrics &amp;lt;ref&amp;gt;S. Hind, D. Raizenne, F. Robitaille. &amp;quot;Prediction of the effective transverse thermal conductivity of carbon based textile composites with varying constituent properties and reinforcement geometry&amp;quot;, Proc. Canada Japan Worshop on Composites, Toronto, Canada, 2006.&amp;lt;/ref&amp;gt; and weaves &amp;lt;ref&amp;gt;S. Hind, F. Robitaille, D. Raizenne. &amp;quot;Parametric unit cell modelling of the effective transverse thermal conductivity of carbon plain weave composites&amp;quot;, Proc. International Conference on Textile Composites (TEXCOMP-8), Nottingham, UK, 2006.&amp;lt;/ref&amp;gt;. Simulation results show the way in which parameters such as the yarn cross section aspect ratio, section shape, yarn thickness, yarn spacing and others affect the thermal conductivity. Furthermore, changes in conductivity were seen within cases of varying yarn fibre volume fraction, where the overall fibre volume fractions was kept constant. As such, the variability in conductivity at constant overall volume fraction could be quantified. &lt;br /&gt;
&lt;br /&gt;
Applications for the work range from carbon composite tooling for aerospace application and NRC/IAR (Ottawa) proprietary Smart Tooling technology, to thermal shielding and aircraft structural repair. Validation is ongoing for coupons using Hukseflux Thasys &amp;amp; Thisys apparatus, and for aircraft structures.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-12T19:13:05Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: /* Python interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
PYTHON_INCLUDE_PATH: ~/include/python2.5 &amp;lt;br&amp;gt;&lt;br /&gt;
PYTHON_LIBRARY: ~/ &amp;lt;br&amp;gt;&lt;br /&gt;
PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages &amp;lt;br&amp;gt;&lt;br /&gt;
SWIG_DIR: ~/bin &amp;lt;br&amp;gt;&lt;br /&gt;
SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.  You may receive this warning: &amp;quot;Warning: Ignoring path found in link libraries for target: _Core, path is: /home/username. Expected a library name or a full path to a library name.&amp;quot;  This warning may be safely ignored.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 Python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-12T19:10:19Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: /* Python interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_LIBRARY, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
PYTHON_LIBRARY: ~/&lt;br /&gt;
PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
SWIG_DIR: ~/bin&lt;br /&gt;
SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.  You may receive this warning: &amp;quot;Warning: Ignoring path found in link libraries for target: _Core, path is: /home/username. Expected a library name or a full path to a library name.&amp;quot;  This warning may be safely ignored.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 Python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-03-12T17:07:24Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: /* Install Subversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In order to compile TexGen and &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; of its modules, the following software is required:&lt;br /&gt;
&lt;br /&gt;
The following programs are needed to build TexGen:&lt;br /&gt;
* [http://www.cmake.org/ CMake]&lt;br /&gt;
* [http://www.swig.org/ SWIG]&lt;br /&gt;
&lt;br /&gt;
The following libraries are needed to link to TexGen:&lt;br /&gt;
* [http://www.vtk.org/ VTK]&lt;br /&gt;
* [http://www.wxwidgets.org/ wxWidgets]&lt;br /&gt;
* [http://www.opencascade.org/ OpenCascade]&lt;br /&gt;
* [http://www.python.org/ Python]&lt;br /&gt;
&lt;br /&gt;
However to perform a minimum build of TexGen with none of the additional modules you only require CMake and a C++ compiler. It is recommended to begin with a minimum build, once that is working try adding modules one at a time. A list of modules along with dependencies is shown below:&lt;br /&gt;
&lt;br /&gt;
* Python interface: Python, SWIG&lt;br /&gt;
* Renderer: VTK&lt;br /&gt;
* Export: OpenCascade&lt;br /&gt;
* GUI: wxWidgets, Renderer, Python interface&lt;br /&gt;
* Unit tests: CPPUnit&lt;br /&gt;
&lt;br /&gt;
A graphical representation of the modules and their dependencies can also be found in the [http://texgen.sourceforge.net/api/ TexGen API].&lt;br /&gt;
&lt;br /&gt;
If you want to get the source code from the Subversion repository you will need to install [http://subversion.tigris.org/ Subversion] by following the instructions below. Note that this is the very latest development source and so may it contain some bugs and unfinished features. However it is very easy to keep up to date with the latest version of TexGen using this method and will allow you to keep any modifications you have made to the source when updating. If you find a bug or implement new features that may be usefull to the rest of the community they can also be submited as patch and incorporated into TexGen following review.&lt;br /&gt;
&lt;br /&gt;
Alternatively the stable source code can be downloaded as a [http://sourceforge.net/project/showfiles.php?group_id=181000 tarball]. Download the latest file release named &amp;#039;&amp;#039;texgen-3.x.x.tar.gz&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Windows compile ==&lt;br /&gt;
=== Microsoft Visual Studio C++ ===&lt;br /&gt;
Todo...&lt;br /&gt;
&lt;br /&gt;
== Unix compile ==&lt;br /&gt;
=== Notes ===&lt;br /&gt;
If you are installing to a system where you don&amp;#039;t have root access (i.e. this computer does not belong to you) you won&amp;#039;t be able to install the software using the default configure script. This is because by default software is installed to the /usr/local directory. If you are not a systems administrator then you will quite rightly not have write access to this folder. All is not lost! You can still install software into your home directory. In order to do this you should always call the configure script with the following parameter: --prefix=$HOME. This goes for all the software to be installed below. All executables will then be placed in ~/bin, libraries in ~/lib, includes in ~/include, etc...&lt;br /&gt;
&lt;br /&gt;
In the guide below the parameter is included in italic. If you do in fact have root access then it is recommended to omit this parameter and install to the default directory so that other users will also have access to the software.&lt;br /&gt;
&lt;br /&gt;
=== Get TexGen from Subversion repository ===&lt;br /&gt;
&lt;br /&gt;
==== Install Subversion ====&lt;br /&gt;
[http://subversion.tigris.org/servlets/ProjectDocumentList?collapseFolder=260&amp;amp;folderID=260 Download Subversion] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure --with-ssl &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* You will need to install Subversion with SSL support since TexGen is hosted on sourceforge which uses SSL. If you don&amp;#039;t configure with the --with-ssl flag you will get an error when trying to checkout TexGen in the next step.&lt;br /&gt;
* If you have trouble installing the latest version of Subversion, try installing version 1.3 as it does not require a seperate dependencies package.&lt;br /&gt;
&lt;br /&gt;
==== Checkout ====&lt;br /&gt;
Open a shell in folder you wish to place TexGen (e.g. ~/):&lt;br /&gt;
 svn checkout https://texgen.svn.sourceforge.net/svnroot/texgen/TexGen/trunk/ TexGen&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
* The first parameter tells SVN to get the files for the first time&lt;br /&gt;
* The second parameter is the location of the TexGen svn repository&lt;br /&gt;
* The final parameter is the subfolder to put the files in&lt;br /&gt;
&lt;br /&gt;
==== Update ====&lt;br /&gt;
The checkout command only needs to performed once. SVN keeps track of where the code was originally obtained and can update to the latest version without having to re-specify the location. In order to do that open a shell in the folder where TexGen was originally checkout (e.g. ~/TexGen) and type:&lt;br /&gt;
 svn update&lt;br /&gt;
or if you are in a hurry you can type the shorter version:&lt;br /&gt;
 svn up&lt;br /&gt;
&lt;br /&gt;
=== Compile source ===&lt;br /&gt;
&lt;br /&gt;
==== Install CMake ====&lt;br /&gt;
&lt;br /&gt;
[http://www.cmake.org/HTML/Download.html Download CMake] and unpack.&lt;br /&gt;
Open a shell in extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
==== Compile TexGen core ====&lt;br /&gt;
Open a shell in the folder with the TexGen source code (e.g. ~/TexGen):&lt;br /&gt;
 mkdir bin&lt;br /&gt;
 cd bin&lt;br /&gt;
 ccmake ../&lt;br /&gt;
Press &amp;#039;c&amp;#039; to configure. When a warning pops up telling you it can&amp;#039;t find such and such a file press &amp;#039;e&amp;#039; to close it. You will now need to specify which components of TexGen to build and where their dependencies can be found. Use the up and down arrows to move the caret and press enter to modify options. Do this to set BUILD_GUI, BUILD_PYTHON_INTERFACE and BUILD_RENDERER to OFF. You are basically telling CMake not to attempt to build these components, which means that you won&amp;#039;t need to have installed their dependencies.&lt;br /&gt;
&lt;br /&gt;
Similarly to the --prefix=$HOME parameter to the configure script, you can tell CMake to install TexGen to your home directory by changing CMAKE_INSTALL_PREFIX to ~/. Note that it won&amp;#039;t actually install anything until you get type make install.&lt;br /&gt;
&lt;br /&gt;
Now press &amp;#039;c&amp;#039; again to update the changes.&lt;br /&gt;
&lt;br /&gt;
Hopefully now that all the additional modules have been switched off no errors will be shown. Press &amp;#039;g&amp;#039; to generate the makefiles and exit. At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Note that at this point you have only built and installed the TexGen Core library which doesn&amp;#039;t actually do anything on its own. If you plan to incorporate TexGen into your own C++ program then this is enough, however if you would like to interface with TexGen from a Python script or Graphical User Interface then follow the steps below.&lt;br /&gt;
&lt;br /&gt;
=== Compiling optional modules ===&lt;br /&gt;
==== Python interface ====&lt;br /&gt;
[http://www.python.org/download/ Download Python] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
[http://www.swig.org/download.html Download SWIG] and unpack.&lt;br /&gt;
Open a shell in the extracted folder and type:&lt;br /&gt;
 ./configure &amp;#039;&amp;#039;--prefix=$HOME&amp;#039;&amp;#039;&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Open a shell in the folder where you called ccmake from for the first time (e.g. ~/TexGen/bin):&lt;br /&gt;
 ccmake ../&lt;br /&gt;
&lt;br /&gt;
Use the up and down arrows to reach BUILD_PYTHON_INTERFACE and press Enter to set it to ON. Then press &amp;#039;c&amp;#039; to configure. You will probably get a warning saying you need to specify the location of SWIG and/or Python, press &amp;#039;e&amp;#039; to close it.&lt;br /&gt;
&lt;br /&gt;
Set the PYTHON_INCLUDE_PATH, PYTHON_SITEPACKAGES_DIR, SWIG_DIR and SWIG_EXECUTABLE parameters correctly where necessary. If you have installed packages to your home directory then they should look something like this:&lt;br /&gt;
&lt;br /&gt;
PYTHON_INCLUDE_PATH: ~/include/python2.5&lt;br /&gt;
PYTHON_SITEPACKAGES_DIR: ~/lib/python2.5/site-packages&lt;br /&gt;
SWIG_DIR: ~/bin&lt;br /&gt;
SWIG_EXECUTABLE: ~/bin/swig&lt;br /&gt;
&lt;br /&gt;
Once that is done press &amp;#039;c&amp;#039; again. You may need perform this process over several iterations. When everything is set correctly press &amp;#039;g&amp;#039; to generate the makefiles.&lt;br /&gt;
&lt;br /&gt;
At the shell type:&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Assuming the build completed without errors you should now be able to access TexGen functions from within Python. In order to check everything worked as planned open Python in interactive mode by typing:&lt;br /&gt;
 Python&lt;br /&gt;
&lt;br /&gt;
Then from within Python type:&lt;br /&gt;
 from TexGen.Core import *&lt;br /&gt;
 CTexGen.GetInstance().GetVersion()&lt;br /&gt;
&lt;br /&gt;
This should display the version of TexGen installed.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Talk:TexGen Applications</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-19T13:52:10Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The applications page naming is rather inconsistent. I suggest the pages should be named as such:&lt;br /&gt;
* Textile composite mechanics&lt;br /&gt;
* Textile fabric mechanics&lt;br /&gt;
* Textile permeability&lt;br /&gt;
* Textile composite heat transfer&lt;br /&gt;
* Textile composite viscous forming&lt;br /&gt;
* Other textile applications&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
* Composite mechanics&lt;br /&gt;
* Fabric mechanics&lt;br /&gt;
* Permeability&lt;br /&gt;
* Composite heat transfer&lt;br /&gt;
* Composite viscous forming&lt;br /&gt;
* Other applications&lt;br /&gt;
&lt;br /&gt;
[[User:WikiSysop|WikiSysop]] 05:18, 19 February 2007 (PST)&lt;br /&gt;
&lt;br /&gt;
I agree - how about (in this order, which I think is logical):&lt;br /&gt;
&lt;br /&gt;
Textile mechanics&lt;br /&gt;
&lt;br /&gt;
Textile permeability&lt;br /&gt;
&lt;br /&gt;
Textile composite mechanics &lt;br /&gt;
&lt;br /&gt;
Textile composite heat transfer &lt;br /&gt;
&lt;br /&gt;
Textile composite viscous forming &lt;br /&gt;
&lt;br /&gt;
Other applications&lt;br /&gt;
&lt;br /&gt;
Jon.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>File:Shrinkage.jpg</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-19T10:18:17Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: Topological plot of a 12k, 2x2 twill weave fabric moulded with (above) high shrinkage matrix, (below) low shrinkage matrix.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Topological plot of a 12k, 2x2 twill weave fabric moulded with (above) high shrinkage matrix, (below) low shrinkage matrix.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>File:Transmissiondry.jpg</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-19T09:58:02Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>File:Transmissionwet.jpg</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-19T09:57:41Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>File:Plainweave.jpg</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-18T22:22:34Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>TexGen Applications</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-15T11:57:23Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Originally developed at the University of Nottingham to describe textile composite reinforcements, TexGen has various applications in modelling dry fabric mechanics, fluid flow through fabrics and mechanics of textile composites.  Further information on published and current research activity will be added to this page soon.  In the mean time, please see the [http://www.textiles.nottingham.ac.uk/ textile composite research pages] at the University of Nottingham for more information.&lt;br /&gt;
&lt;br /&gt;
* [[Textile composite mechanics]]&lt;br /&gt;
&lt;br /&gt;
* [[Dry fabric mechanics]]&lt;br /&gt;
&lt;br /&gt;
* [[Permeability]]&lt;br /&gt;
&lt;br /&gt;
* [[Textile composite heat transfer]]&lt;br /&gt;
&lt;br /&gt;
* [[Textile composite viscous forming]]&lt;br /&gt;
&lt;br /&gt;
* [[Other applications]]&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-09T15:42:27Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-09T14:58:47Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns &amp;lt;ref&amp;gt;J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful &amp;lt;ref&amp;gt;J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&amp;lt;/ref&amp;gt;, but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources &amp;lt;ref&amp;gt;W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Textile composite mechanics</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-05T16:40:06Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TexGen has been used extensively for prediction of textile reinforced composite mechanical properties.  For some time, TexGen has been employed to generate geometric models of textile reinforcements to permit finite element (FE) analysis of the repeating unit cell in order to determine the effective macroscopic properties of the as-manufactured composite.&lt;br /&gt;
&lt;br /&gt;
Initial work considered the effect of various properties (including yarn (tow) cross-sectional shape, yarn spacing, fibre volume fraction (Vf) and material properties) on the transverse tensile behaviour of single yarns [1].&lt;br /&gt;
&lt;br /&gt;
To overcome problems with meshing the complex matrix volume, a voxel method was developed using the Abaqus commercial FE package.  This method divided the unit cell into a regular grid of hexahedral elements, with appropriate local mechanical properties and material orientations defined at the element centroids.  This technique was shown to be useful [2], but to improve its efficiency it was modified to incorporate adaptive mesh refinement (AMR).  In order to implement AMR for this method, it was re-written to use open source FE libraries and solvers.  The use of AMR means that localised mesh refinement occurs around material boundaries and other stress concentrations, leaving coarse meshes in non-critical regions resulting in an automated technique which makes efficient use of computational resources [3,4,5].&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
1.  J.J. Crookston, F. Robitaille, A.C. Long, I.A. Jones &amp;amp; J.W. Ooi  &amp;quot;A systematic study of the mechanical properties of textile composite unit cells based on geometric modelling&amp;quot;, Proceedings of the 14th International Conference on Composite Materials (ICCM 14), 14-18th July 2003, San Diego, USA.&lt;br /&gt;
&lt;br /&gt;
2.  J.J. Crookston, M.N. Sherburn, L.G. Zhao, J.W. Ooi, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Finite element analysis of textile composite unit cells using conventional and novel techniques&amp;quot;, Proceedings of the 15th International Conference on Composite Materials (ICCM 15), 27th June-1st July 2005, Durban, South Africa.&lt;br /&gt;
&lt;br /&gt;
3.  W. Ruijter, J. Crookston, A. Long &amp;amp; A. Jones, &amp;quot;Computational meso-scale analysis of textile composites using adaptive finite element analysis&amp;quot;, Proceedings of the 47th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials (SDM 47) Conference, 1-5th June 2006, Newport, RI, USA.&lt;br /&gt;
&lt;br /&gt;
4.  W. Ruijter, J.J. Crookston, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling of composite materials using FEM and adaptive meshing&amp;quot;, Proceedings of the 12th European Conference on Composite Materials (ECCM 12), 29th August-1st September 2006, Biarritz, France.&lt;br /&gt;
&lt;br /&gt;
5.  J.J. Crookston, W. Ruijter, A.C. Long &amp;amp; I.A. Jones, &amp;quot;Modelling mechanical performance including damage development for textile composites using a grid-based finite element method with adaptive mesh refinement&amp;quot;, Proceedings of the 8th International Conference on Textile Composites (TexComp 8), 16-18th Oct 2006, Paper T09, Nottingham, UK.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>TexGen Applications</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-05T15:11:50Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Originally developed at the University of Nottingham to describe textile composite reinforcements, TexGen has various applications in modelling dry fabric mechanics, fluid flow through fabrics and mechanics of textile composites.  Further information on published and current research activity will be added to this page soon.  In the mean time, please see the [http://www.textiles.nottingham.ac.uk/ textile composite research pages] at the University of Nottingham for more information.&lt;br /&gt;
&lt;br /&gt;
* [[Textile composite mechanics]]&lt;br /&gt;
&lt;br /&gt;
* [[Dry fabric mechanics]]&lt;br /&gt;
&lt;br /&gt;
* [[Permeability]]&lt;br /&gt;
&lt;br /&gt;
* [[Composite surface quality modelling]]&lt;br /&gt;
&lt;br /&gt;
* [[Textile composite heat transfer]]&lt;br /&gt;
&lt;br /&gt;
* [[Thermal comfort of textiles]]&lt;br /&gt;
&lt;br /&gt;
* [[Textile composite viscous forming]]&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>TexGen Applications</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2007-02-05T15:03:26Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Originally developed at the University of Nottingham to describe textile composite reinforcements, TexGen has various applications in modelling dry fabric mechanics, fluid flow through fabrics and mechanics of textile composites.  Further information on published and current research activity will be added to this page soon.  In the mean time, please see the [http://www.textiles.nottingham.ac.uk/ textile composite research pages] at the University of Nottingham for more information.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Textile composite mechanics&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Dry fabric mechanics&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Permeability&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Composite surface quality modelling&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Textile composite heat transfer&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Thermal comfort of textiles&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Textile composite viscous forming&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>TexGen Applications</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2006-12-15T09:50:57Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Originally developed at the University of Nottingham to describe textile composite reinforcements, TexGen has various applications in modelling dry fabric mechanics, fluid flow through fabrics and mechanics of textile composites.  Further information on published and current research activity will be added to this page soon.  In the mean time, please see [http://www.textiles.nottingham.ac.uk/] for more information.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>TexGen Applications</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2006-12-15T09:49:24Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Originally developed at the University of Nottingham to describe textile composite reinforcements, TexGen has various applications in modelling dry fabric mechanics, fluid flow through fabrics and mechanics of textile composites.  Further information on published and current research activity will be added to this page soon.&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
	<entry>
		<id></id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href=""/>
		<updated>2006-12-15T09:46:22Z</updated>

		<summary type="html">&lt;p&gt;Joncrookston: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following documentation is available:&lt;br /&gt;
&lt;br /&gt;
* [[User Guide]] - Guide to GUI and Python scripting Tutorial&lt;br /&gt;
* [http://texgen.sourceforge.net/api/ API Reference Guide] - Reference guide for Python scripting&lt;br /&gt;
* [[TG3 File Format]] - TexGen save file format description&lt;br /&gt;
* [[TexGen Applications]] - Published applications of TexGen&lt;/div&gt;</summary>
		<author><name>Joncrookston</name></author>
	</entry>
</feed>