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

error when compiling minimal TexGen on Mac #58

Open
Todochris opened this issue Apr 30, 2024 · 3 comments
Open

error when compiling minimal TexGen on Mac #58

Todochris opened this issue Apr 30, 2024 · 3 comments

Comments

@Todochris
Copy link

Todochris commented Apr 30, 2024

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 :

TexGen/Core/OctreeVoxelMesh.cpp:73:18: error: a space is required between consecutive right angle brackets (use '> >')
vector<vector<int>> COctreeVoxelMesh::FaceX_min;
                 ^~
                 > >

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.

SET(CMAKE_CXX_STANDARD 11)
@louisepb
Copy link
Owner

louisepb commented May 2, 2024

Hi @Todochris,
Thanks for flagging this. I'll try the CMakeLists fix. I don't have a Mac so can't test the build there but the error with spaces between brackets is one that normally gets flagged when I try a Linux build. I've had problems with my Linux VM for a while so haven't been able to test properly. If the CMakeLists can solve the issue that will be great.
Thanks, Louise

@10427788
Copy link

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

@10427788
Copy link

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$ 
###

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

3 participants