Open leoheck opened 1 year ago
@leoheck I found your fork, which solved the problem you note, but I am getting this error when I try to build it with make:
LoadFace.cpp: In constructor ‘LoadFace::LoadFace(TopoDS_Face&)’:
LoadFace.cpp:18:9: error: ‘Poly_ArrayOfNodes’ does not name a type
18 | const Poly_ArrayOfNodes& arrPolyNodes = triangulation->InternalNodes();
| ^~~~~~~~~~~~~~~~~
LoadFace.cpp:22:24: error: ‘arrPolyNodes’ was not declared in this scope
22 | transformedPoint = arrPolyNodes[i].Transformed(transform);
| ^~~~~~~~~~~~
make: *** [Makefile:66: LoadFace.o] Error 1
Any idea what is going on here? Thanks for any help.
Hi, @chrisl8 forgot to reply to you. Yeah, this is hard to fix. I remember I could compile but I am not sure how to help you specifically.
Just tried it now, using my fork... but on my current system Ubuntu 23.10
I also had to install 2 extra packages to make it compilable, here.
libocct-ocaf-dev
libocct-data-exchange-dev
These are the things I have installed, it may help you.
I pushed these new additions. You can try to install dependencies with
make install_dependencies
After that, if the compilation works you can test it with make test
I was able to compile this repo, and it was working fine for me. Then I had to install Kicad 7, and then this stp2gltf started to fail during the build and the execution of the bin built before.
When I build it, I see this error
The issue is the conflict of
liboce-ocaf-dev
with Kicad 7 stuffSo, I am wondering if you have an idea of a workaround for me to have the stl2gltf working on my system. I would like to use the stl2gltf exactly to be able to open 3d files from Kicad (step) in the browser.