Having issue with while building Texgen Source code on Ubuntu 22.04LTS

Hi,
While building the TexGen source code using “make -j$(no process)” command in the terminal, I used get the following error :slight_smile:

Please let me know to overcome this problem for sucessfylly building and installing the Texgen Source code on Ubuntu 22.04 LTS (With gcc 11.4.0, VTK 6.3, g++ 11.4.0). Thanks in advance

It would be useful to know what this “TexGen” is and where can one get its source code.

Hi, It is an open-source code designed to generate the textile architecture of composite materials, developed by Nottingham University in the UK. As part of my research, I am trying to compile this source code, but I encountered the above-mentioned error while building the TexGen source code.
You can find at the given Github link: GitHub - louisepb/TexGen: TexGen is a geometric textile modelling software package to be used for obtaining engineering properties of woven textiles and textile composites.

Please let me know if you come across any solution to resolve this problem . Thanks

The io.h is a header that one would include on Windows, while on *NIX hosts one would include unistd.h instead. For instance, from time to time I see the following condition in various projects:

#if WIN32
    #include <io.h>
#else
    #include <unistd.h>
#endif

Coming back to this TexGen project, their unistd.h looks strange and seems to be meant to be used on Windows (according to maintainers comments, and also because it includes io.h), while you are on a GNU/Linux host, and so it looks like you are including the headers from OctreeRefinement/include/ with that unistd.h among them, which is what fails the build.

Hi, Thanks for the information and is there any way to resolve that problem ?
Thanks

Haven’t I just explained what is causing it, as I am guessing? That would be the first thing to try then. It might not be the actual reason, but at least something to start with.

Hi, Thanks

Hi, While building the PyMesh using CMAKE, I used to get this error :slight_smile:

Please let me know the way to resolve this problem. Thanks in advance

Have you tried googling for the error text? Besides, it isn’t really about CMake at this point.
And since you said that you “used to” get this error, I take it that’s no longer the case?

Also, I don’t see how PyMesh relates to TexGen.