yesterday I started using Open Cascade Library. I was successfully able to compile Cascade on Kubuntu with
Automake and launch Draw with the provided tcl samples.
My overall goal is it to write an algorithm that gets a mesh of an object as input and then detects cylindric
holes in it. I think i can accomplish this by extending Draw with my own Code/Algorithm.
To better understand how i can extend Draw with my own code i tried to follow this tutorial (shows how to extend
Draw with a new command):
So i opened Code::Blocks in Kubuntu, wrote the code of HelloWorld.h, HelloWorld.cpp and main.cpp and added the paths of the tcl and cascade installation folders to Code::Blocks for compiling/linking.
My own code (the one from the tutorial) compiles just fine, but Code::Blocks shows me an error in
error: "error: check config.h file or compilation options: either HAVE_LIMITS or HAVE_LIMITS_H should be defined"
This is the exact error message that is defined in "Standard_Values.h" in line 34, so i think the problem has to
be in my cascade environment. Maybe i've forgotten to include some libraries or set up some environment variables?
Maybe extending Draw with a new command is not the best solution for my project, but then i'm currently not quite
sure how to extend cascade with my own code/algorithm. I saw this tutorial:
But i don't really know how to run cascade with this code/the tutorial.
Thank you very much