-
Notifications
You must be signed in to change notification settings - Fork 33
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
error when compiling minimal TexGen on Mac #58
Comments
Hi @Todochris, |
Hi, while trying to compile Texgen using CMake, I encountered a VTK dependency error. To resolve this issue, I tried incorporating the find_package command in the CMake list, but it is still showing the same dependency error. This installation was initiated on Ubuntu with root access. For this installation, I was using Texgen3.1.0 version because I am trying to integrate Texgen with Python2.7inhouse for my research. Could you please provide me the step by step clear explanation for building the source code on Ubuntu . Although there were given some instruction on installation of Texgen on Wikipage but it was showing some confusion especially for the part of activating the dependency software interface. Thanks in advance |
Dear All, The following error I used to get while compiling Texge3.1.0 using Make command [ 79%] Building C object Core/CMakeFiles/TexGenCore.dir/__/units/units.o /home/pitchaip/TexGen-3.11.0/units/units.c: In function ‘reduceUnit’: /home/pitchaip/TexGen-3.11.0/units/units.c:541:11: warning: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration] 541 | while ( isspace(*unitString) ) unitString++; | ^~~~~~~ /home/pitchaip/TexGen-3.11.0/units/units.c:38:1: note: include ‘<ctype.h>’ or provide a declaration of ‘isspace’ 37 | #include<stdlib.h> +++ |+#include <ctype.h> 38 | [ 79%] Linking CXX shared library ../libTexGenCore.so [ 79%] Built target TexGenCore [ 80%] Building CXX object LatinHypercube/CMakeFiles/LatinHypercube.dir/latin_random.o [ 80%] Linking CXX static library ../libLatinHypercube.a [ 80%] Built target LatinHypercube [ 80%] Building CXX object Renderer/CMakeFiles/TexGenRenderer.dir/CustomInteractorStyle.o In file included from /home/pitchaip/TexGen-3.11.0/Renderer/CustomInteractorStyle.cpp:20: /home/pitchaip/TexGen-3.11.0/Renderer/PrecompiledHeaders.h:35:10: fatal error: vtkOrientationMarkerWidget.h: No such file or directory 35 | #include "vtkOrientationMarkerWidget.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Renderer/CMakeFiles/TexGenRenderer.dir/build.make:76: Renderer/CMakeFiles/TexGenRenderer.dir/CustomInteractorStyle.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:483: Renderer/CMakeFiles/TexGenRenderer.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 pitchaip@IHP-SPD-1110508:~/TexGen-3.11.0/bin$### |
Hello, I tried compiling TexGen but I got several errors after using the
make
command in my terminal.I am on MacOS 14.4 with an ARM chip.
All the errors print the same text but at multiple lines in TexGen, here is one example :
Edit : After some pocking online, I found out that by adding the following line in the file TexGen/CMakeLists.txt, the cpp codes standard used to compile the code are change from C++98 to C++11. In The case of TexGen, the C++11 standard should be followed from what I see.
The text was updated successfully, but these errors were encountered: