Skip to content

Method to build and install Texgen 3.1.10 on Ubuntu 22.04LTS #62

@10427788

Description

@10427788

Solving VTK6.3 issue with Ubuntu 22.04 LTS:

  1. We need to change modify lined in the following file CMake/vtkCompilerExtras.cmake

Screenshot from 2024-12-05 10-29-35

  1. Also we need to modify same line even in the CMake/GenerateExportHeader.cmake
    Screenshot from 2024-12-05 10-58-47
  2. Further to resolve the c++11 standard error, we need modify the files from the build directory (i.e., CMakeCache.txt)
    From this file, we need add the following lines against of this line : CMAKE_CXX_FLAGS:STRING=-std=c++98
    Screenshot from 2024-12-05 12-17-12

After making all the necessary corrections, execute the following command to successfully build the VTK6.3 source code:

make -j$(nproc)

Downloading and Building TexGen 3.11.0

Download the TexGen 3.11.0 release from the following link:
https://github.com/louisepb/TexGen/releases/tag/v3.11.0

Follow these steps to build TexGen:

a. Extract the downloaded TexGen3.11.0 folder.
b. Navigate to the extracted directory:

cd TexGen3.11.0

c. Create a bin directory:

mkdir bin

d. Navigate to the bin directory:

cd bin

e. Run ccmake on the parent directory:

ccmake ../

f. Press c to configure.

Turn off the following parameters:
    BUILD_GUI
    BUILD_PYTHON_INTERFACE
    BUILD_RENDERER

g. Press c again to reconfigure and check for error messages. If no errors appear, press g to generate the Makefile.

h. Compile and install TexGen:

sudo make install

Enabling Python Interface:
a. Open ccmake again in the bin directory:

ccmake ../

b. Set BUILD_PYTHON_INTERFACE to ON.
c. Specify the following paths:

Python library path
Python debug library path
Swig executable path

d. Press c to configure, check for errors, and then press g to generate the Makefile.

Screenshot from 2024-12-06 11-09-03
Screenshot from 2024-12-06 11-09-19

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions