Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
10427788 opened this issue Dec 6, 2024 · 1 comment
Open

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

10427788 opened this issue Dec 6, 2024 · 1 comment

Comments

@10427788
Copy link

10427788 commented Dec 6, 2024

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

@louisepb
Copy link
Owner

Sorry for the slow response and thanks very much for sharing the solution to this issue.
I hope that you find TexGen useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants