-
Notifications
You must be signed in to change notification settings - Fork 39
Method to build and install Texgen 3.1.10 on Ubuntu 22.04LTS #62
Description
Solving VTK6.3 issue with Ubuntu 22.04 LTS:
- We need to change modify lined in the following file CMake/vtkCompilerExtras.cmake
- Also we need to modify same line even in the CMake/GenerateExportHeader.cmake

- 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

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.



