Hello OCC experts,
I'm an assolute beginner with OCC and I'm trying to use it to see if it fits my needs. I'm working on Ubuntu-8.10 using the packages
- libopencascade6.2 (6.2-7ubuntu1)
- libopencascade-dev (6.2-7ubuntu1)
- opencascade-doc (6.2-7ubuntu1)
- opencascade-examples (6.2-7ubuntu1)
- opencascade-tools (6.2-7ubuntu1)
provided by my distrib (via aptitude).
Basically (for now), I'm interested in visualizing an object whose CAD data are in an existing STP file. I found an example which supposed to work with STP files at http://www.opencascade.org/org/forum/thread_14041/. I tried, and it compiled and linked succesfully:
g++ -I/usr/include/opencascade -DHAVE_CONFIG_H -DHAVE_IOSTREAM -DHAVE_FSTREAM -DMAVE_LIMITS_H -lTKTopAlgo -lTKPrim -lTKFillet -lTKBO -lTKOffset -lTKSTEP -lTKXSBase main.cxx -o exe
main.cxx: In function 'int main()':
main.cxx:18: warning: deprecated conversion from string constant to 'char*'
But when I tried to launch the executable file, it didn't show anything. Am I missing something?
Thank you for your time,