install on ubuntu 8.04

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
genet
Posts: 3
Joined: Wed Jun 18, 2008 7:56 pm

install on ubuntu 8.04

Post by genet »

Hi all,

Many thanks for your work.

First question: I am trying to install your soft on my UBUNTU. Many problems here: I can not install OpenCascade, the ccmake can not find VTK, etc. Do someone has already done it? Can someone help me? Do you need any information?

Second question: I have tried the soft on Windows, but I have not find the solution for export the middle line of the yarns in a text file. Is it possible?

A billion of thanks,
Martin.
Martin
Project Leader
Posts: 70
Joined: Wed Mar 28, 2007 9:05 am
Location: Nottingham
Contact:

Post by Martin »

There are some docs on building TexGen for linux on the website: http://texgen.sourceforge.net/

You don't need to install OpenCASCADE to get TexGen running, you only need that if you want to export to IGES or STEP files. If you want to do that I'm afraid you're on your own because I haven't done it myself.

>>Second question: I have tried the soft on Windows, but I have not find the solution for export the middle line of the yarns in a text file. Is it possible?

Yes sure, again look at the website. You can use the python interface to do this.
genet
Posts: 3
Joined: Wed Jun 18, 2008 7:56 pm

Post by genet »

Yeah, but when I am trying to turn ON the GUI, I get this:

Code: Select all

CMake Error: VTK not found.  Set the VTK_DIR cmake cache entry to the
 directory containing VTKConfig.cmake.  This is either the root of the build
 tree, or PREFIX/lib/vtk for an installation.  For VTK 4.0, this is the
 location of UseVTK.cmake.  This is either the root of the build tree or
 PREFIX/include/vtk for an installation.
I have tried several directories for VTK_DIR, but I always get this, although VTK-5.0 is installed on my computer.

/usr/lib does not work

/usr/lib/vtk-5.0 does not work

/usr/share/cmake-2.4/Modules does not work because there is no UseVTK.cmake but there is UseVTK40.cmake, so I made a link from UseVTK.cmake to UseVTK40.cmake and other VTK40 files, and I get:

Code: Select all

CMake Error: Error in cmake code at
 /usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake:21:
 LOAD_CACHE Cannot load cache file from
 /usr/share/cmake-2.4/Modules/CMakeCache.txt
 Current CMake stack:
 [3]/usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake
 [2]/usr/share/cmake-2.4/Modules/FindVTK.cmake
 [1]/usr/bin/TexGen/Renderer/CMakeLists.txt

 CMake Error: Error in cmake code at
 /usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake:21:
 LOAD_CACHE Cannot load cache file from
 /usr/share/cmake-2.4/Modules/CMakeCache.txt
 Current CMake stack:
 [3]/usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake
 [2]/usr/share/cmake-2.4/Modules/FindVTK.cmake
 [1]/usr/bin/TexGen/Python/CMakeLists.txt

 CMake Error: Error in cmake code at
 /usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake:21:
 LOAD_CACHE Cannot load cache file from
 /usr/share/cmake-2.4/Modules/CMakeCache.txt
 Current CMake stack:
 [3]/usr/share/cmake-2.4/Modules/UseVTKConfig40.cmake
 [2]/usr/share/cmake-2.4/Modules/FindVTK.cmake
 [1]/usr/bin/TexGen/GUI/CMakeLists.txt
Moreover, even after having turned BUILD_PYTHON_INTERFACE to ON and perform a make make install, I got this from Python:

Code: Select all

genet@genet_desktop:/usr/bin/TexGen/bin$ python
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from TexGen.Core import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named TexGen.Core
Anyway, thanks a billion: what you do is great!

By the way, nice name Martin...
Martin.
:)
wr
Contributor
Posts: 35
Joined: Tue Aug 28, 2007 8:33 am
Location: Ringkoebing, DK

Post by wr »

Hi Martin,

I think it is due to the fact that the packaged VTK has a different directory structure than when you build it from source.
If you build VTK from source and "make install" it you can point ccmake to it as follows:
VTK_DIR=/usr/local/lib/vtk-5.3
This is on debian.

Cheers
Wout
wr
Contributor
Posts: 35
Joined: Tue Aug 28, 2007 8:33 am
Location: Ringkoebing, DK

Post by wr »

I must add though, I haven't tested a GUI version for a long time.
It appears to be broken on my machine.

The renderer works when scripted, which is all I need.

I would still try compiling it if I where you, your ubuntu machine is more like Martin's, so the odds are better (mine is debian testing).

In general my experience is that Martin follows releases of used libraries quite closely, so moving back to vtk4 is less likely to work than moving to vtk cvs... same with wxwidgets.
genet
Posts: 3
Joined: Wed Jun 18, 2008 7:56 pm

Post by genet »

Many thanks.

Well, I now run TexGen using Wine. And it works...

Martin.
Post Reply