Hi,
I'm trying to compile TexGen to link the python interface with my own python environment (miniconda) based on Ubuntu 22.04 for running scripts. After compiled TexGen core successfully, I attempted to compile python interface. But I got this error:
/home/wsui/TexGen/Python/Core.i:198: Error: Unable to find '../core/PrismVoxelMesh.h'
make[2]: *** [Python/CMakeFiles/_Core.dir/build.make:182: /home/wsui/TexGen/Python/Core_wrap.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:444: Python/CMakeFiles/_Core.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
It seems that there's something missing in the source code. The instruction there is a little bit of out of date for Linux: https://texgen.sourceforge.io/index.php ... rom_Source
libpythonX.X.o is no longer available, so I manually opened the advanced mode of ccmake to provide more info about locations:
PYTHON_INCLUDE_DIR /home/wsui/miniconda3/envs/simuFRC/include/python3.9
PYTHON_LIBRARY /home/wsui/miniconda3/envs/simuFRC/lib/libpython3.9.so
PYTHON_LIBRARY_DEBUG PYTHON_LIBRARY_DEBUG-NOTFOUND
PYTHON_LIBRARY_RELEASE PYTHON_LIBRARY_RELEASE-NOTFOUND
PYTHON_SITEPACKAGES_DIR /home/wsui/miniconda3/envs/simuFRC/lib/python3.9/site-packages
Would you please let me know how to solve it? Thank you.
Error in compiling with Ubuntu 22.04
Moderators: Martin, Developers
Re: Error in compiling with Ubuntu 22.04
Hi Wenbo,
I'm afraid that it's a while since I've done an Ubuntu build of TexGen but, if you've downloaded the most recent code, you should have PrismVoxelMesh.h. On looking, I think that there is a typo in Python/Core.i. Line 198 is %include "../core/PrismVoxelMesh.h" - the core should be Core - Linux throws this as an error where Windows doesn't.
The files shown for cmake on the web page are intended to give guidance rather than specific paths. These will always need to be adjusted to suit your own setup.
Hopefully that will work for you.
Best wishes,
Louise
I'm afraid that it's a while since I've done an Ubuntu build of TexGen but, if you've downloaded the most recent code, you should have PrismVoxelMesh.h. On looking, I think that there is a typo in Python/Core.i. Line 198 is %include "../core/PrismVoxelMesh.h" - the core should be Core - Linux throws this as an error where Windows doesn't.
The files shown for cmake on the web page are intended to give guidance rather than specific paths. These will always need to be adjusted to suit your own setup.
Hopefully that will work for you.
Best wishes,
Louise
Re: Error in compiling with Ubuntu 22.04
Hi Wenbo,
I've just pushed the change to GitHub.
Best wishes,
Louise
I've just pushed the change to GitHub.
Best wishes,
Louise
Re: Error in compiling with Ubuntu 22.04
Thank you so much!