
Thu, 08/18/2005 - 21:08
I wrote the following C++ program that checks validates a STEP file:
#include
#include
#include "STEPControl_Reader.hxx"
using namespace std;
#define FILENAME "linkrods.step"
int main (int argc, char* argv[])
{
// create reader and read the STEP file
STEPControl_Reader reader;
IFSelect_ReturnStatus stat = reader.ReadFile(FILENAME);
if (stat != IFSelect_RetDone)
{
if (stat == IFSelect_RetVoid)
cout
else if (stat == IFSelect_RetError)
cout
return 0;
}
// check the validity of the STEP file
IFSelect_PrintCount mode = IFSelect_ItemsByEntity;
reader.PrintCheckLoad(false, mode);
}
I can compile this, but I cant link the program because I can't find any OpenCascade libraries.
What libraries should we use in this situation? Are they available?
Any help is greatly appreciated!!!
Peter
Fri, 08/19/2005 - 16:09
You can take it from OCC-examples, e.g. from ImportExport.
Also if you compile it under Windows, don't forget to set the variable WNT (#define WNT)
Fri, 08/19/2005 - 16:46
I am working under Red Hat 8.
I found the source for the ImportExportPackage, but it is linked through JNI (it seems). How can I link this into a C++ program?
Maybe I don't know what to be looking for, I am not sure.
Peter