Hello,
I am trying to install Texgen on HPC cluster based on Linux system. I was able to make and make install using the minimal build. But when I turned on BUILD_PYTHON_INTERFACE and then make, I got this error:
In file included from /opt/python2.5/include/python2.5/Python.h:43:0,
from /home/cxr/texgen/TexGen/Python/Core_wrap.cxx:130:
/home/cxr/texgen/TexGen/Python/../OctreeRefinement/include/unistd.h:21:64: fatal error:process.h: No such file or directory
#include <process.h> /* for getpid() and the exec..() family */
^
compilation terminated.
make[2]: *** [Python/CMakeFiles/_Core.dir/Core_wrap.o] Error 1
make[1]: *** [Python/CMakeFiles/_Core.dir/all] Error 2
make: *** [all] Error 2
It seems to be a Python related problem and I have already tried python2.5 and python2.7. Both versions gave the same error. Can anyone help me with it? Thanks!
Regards,
Xiaorong Cai
Error during make on Linux system
Moderators: Martin, Developers
Re: Error during make on Linux system
Hi Xiaorong,
Sorry for the delay in replying - I was waiting for a response from someone who has built TexGen on our HPC.
The unistd.h file is used in Windows so you should be able to safely delete this file. Hopefully your Linux build will then work.
Hope that helps,
Louise
Sorry for the delay in replying - I was waiting for a response from someone who has built TexGen on our HPC.
The unistd.h file is used in Windows so you should be able to safely delete this file. Hopefully your Linux build will then work.
Hope that helps,
Louise
Re: Error during make on Linux system
Hi Louise,
Thank you for replying. I tried a couple of things to install Texgen in Linux but wxWidgets kept giving me errors. So I switched to Windows and now it's working. Thanks for the help anyway!
Regards,
Xiaorong
Thank you for replying. I tried a couple of things to install Texgen in Linux but wxWidgets kept giving me errors. So I switched to Windows and now it's working. Thanks for the help anyway!
Regards,
Xiaorong
Re: Error during make on Linux system
Hi Xiaorong,
Yes, I'm aware of the issues building the GUI on Linux at the moment. This is an issue with the updated wxWidgets and VTK. Unfortunately I am working on a borrowed laptop at the moment and can't run up a Linux VM to try and sort the issue out. If you want to run on an HPC without the GUI it should build fine without the rendering and GUI. The Core and Python modules still build without problems on Linux so that you can still run scripts. You just need to save the model and open the tg3 file in the GUI later if you want to view the model.
Best wishes,
Louise
Yes, I'm aware of the issues building the GUI on Linux at the moment. This is an issue with the updated wxWidgets and VTK. Unfortunately I am working on a borrowed laptop at the moment and can't run up a Linux VM to try and sort the issue out. If you want to run on an HPC without the GUI it should build fine without the rendering and GUI. The Core and Python modules still build without problems on Linux so that you can still run scripts. You just need to save the model and open the tg3 file in the GUI later if you want to view the model.
Best wishes,
Louise