Continuing from part 1)
Ok…. Obviously something is not right here.
I’m thinking its time to get back to a baseline and try this again…. There’s a install version of opencascade there available for opennovation that/synaptic I thought I give it a try.
First things first. I need to figure out how to unistall opencascade.
jonas@Ubuntu4:/opt/OpenCASCADE6.2.0/uninstall/Linux$ sudo java -jar uninstall.jar |
For some reason not everything got deleted. On some file the rm wouldnt work. I need to work that out later.
I ran across this nice little link discussing file permission:http://www.tuxfiles.org/linuxhelp/filepermissions.html
This got me confused time to call in the calvary(http://ubuntuforums.org/showthread.php?p=5534934#post5534934)
Doh… very obvious…
I left the OCC documentation intact… We’ll see how that works.
Alright… I’m going to try loading open cascade from a different direction. Instructions as per:
http://www.opennovation.org/ubuntu/
Wow… So far so good.
I tried firing up the DRAWEXE test program. You should find documention on file:///usr/share/doc/opencascade-doc/doc/index.htm#Welcome_to_Open_CASCADE_Technology.htm
I got a irritating error message when I fired up pload ALL
“Cannot load Debug Browser library. DFBrowser command is not attached”
That error didn’t seem to mess up the example given in the tutorial.
In the non-synaptic version of opencascade there is some source called MakeBottle.cxx. It doesn’t see to be include in the debian download. Luckily I had copied it to a separate directory.
I tried to compile the source and here are the error messages from the start:
jonas@Ubuntu4:/$ locate MakeBottle.cxx /home/jonas/OCC_bottle/MakeBottle.cxx jonas@Ubuntu4:/$ cd /home/jonas/OCC_bottle jonas@Ubuntu4:~/OCC_bottle$ g++ -I /usr/include/opencascade MakeBottle.cxx In file included from /usr/include/opencascade/Standard_Integer.hxx:9, from /usr/include/opencascade/Standard_Address.hxx:21, from /usr/include/opencascade/Standard.hxx:28, from /usr/include/opencascade/Handle_Geom_Surface.hxx:29, from /usr/include/opencascade/BRep_Tool.hxx:29, from MakeBottle.cxx:1: /usr/include/opencascade/Standard_values.h:35:2: error: #error “check config.h file or compilation options: either HAVE_LIMITS or HAVE_LIMITS_H should be defined” In file included from /usr/include/opencascade/Standard_OStream.hxx:7, from /usr/include/opencascade/Standard.hxx:40, from /usr/include/opencascade/Handle_Geom_Surface.hxx:29, from /usr/include/opencascade/BRep_Tool.hxx:29, from MakeBottle.cxx:1: /usr/include/opencascade/Standard_Stream.hxx:19:2: error: #error “check config.h file or compilation options: either HAVE_IOSTREAM or HAVE_IOSTREAM_H should be defined” In file included from /usr/include/opencascade/Standard_OutOfRange.hxx:33, from /usr/include/opencascade/gp_Mat.lxx:4, from /usr/include/opencascade/gp_Mat.hxx:326, from /usr/include/opencascade/gp_Trsf.hxx:32, from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26, from MakeBottle.cxx:8: /usr/include/opencascade/Standard_SStream.hxx:23:4: error: #error “check config.h file or compilation options: either HAVE_IOSTREAM or HAVE_IOSTREAM_H should be defined” In file included from /usr/include/opencascade/Standard_Address.hxx:21, from /usr/include/opencascade/Standard.hxx:28, from /usr/include/opencascade/Handle_Geom_Surface.hxx:29, from /usr/include/opencascade/BRep_Tool.hxx:29, from MakeBottle.cxx:1: /usr/include/opencascade/Standard_Integer.hxx: In function ‘Standard_Integer IntegerFirst()’: /usr/include/opencascade/Standard_Integer.hxx:129: error: ‘INT_MIN’ was not declared in this scope /usr/include/opencascade/Standard_Integer.hxx: In function ‘Standard_Integer IntegerLast()’: /usr/include/opencascade/Standard_Integer.hxx:135: error: ‘INT_MAX’ was not declared in this scope /usr/include/opencascade/Standard_Integer.hxx: In function ‘Standard_Integer IntegerSize()’: /usr/include/opencascade/Standard_Integer.hxx:141: error: ‘CHAR_BIT’ was not declared in this scope In file included from /usr/include/opencascade/Standard_PrimitiveTypes.hxx:23, from /usr/include/opencascade/Handle_Standard_Transient.hxx:10, from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33, from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33, from /usr/include/opencascade/Handle_Geom_Surface.hxx:33, from /usr/include/opencascade/BRep_Tool.hxx:29, from MakeBottle.cxx:1: /usr/include/opencascade/Standard_Real.hxx: In function ‘Standard_Integer RealSize()’: /usr/include/opencascade/Standard_Real.hxx:162: error: ‘CHAR_BIT’ was not declared in this scope In file included from /usr/include/opencascade/Standard_PrimitiveTypes.hxx:41, from /usr/include/opencascade/Handle_Standard_Transient.hxx:10, from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33, from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33, from /usr/include/opencascade/Handle_Geom_Surface.hxx:33, from /usr/include/opencascade/BRep_Tool.hxx:29, from MakeBottle.cxx:1: /usr/include/opencascade/Standard_Storable.hxx: At global scope: /usr/include/opencascade/Standard_Storable.hxx:101: error: ‘ostream’ has not been declared /usr/include/opencascade/Standard_Storable.hxx:146: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/Handle_Standard_Transient.hxx:13, from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33, from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33, from /usr/include/opencascade/Handle_Geom_Surface.hxx:33, from /usr/include/opencascade/BRep_Tool.hxx:29, from MakeBottle.cxx:1: /usr/include/opencascade/Standard_Transient_proto.hxx:69: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33, from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33, from /usr/include/opencascade/Handle_Geom_Surface.hxx:33, from /usr/include/opencascade/BRep_Tool.hxx:29, from MakeBottle.cxx:1: /usr/include/opencascade/Handle_Standard_Transient.hxx:182: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/TopoDS_Shape.hxx:29, from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26, from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26, from MakeBottle.cxx:3: /usr/include/opencascade/TopLoc_Location.hxx:178: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/TopoDS_Shape.hxx:29, from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26, from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26, from MakeBottle.cxx:3: /usr/include/opencascade/TopLoc_Location.hxx:218: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/Standard_Transient.hxx:14, from /usr/include/opencascade/MMgt_TShared.hxx:34, from /usr/include/opencascade/TopoDS_TShape.hxx:40, from /usr/include/opencascade/TopoDS_Shape.lxx:7, from /usr/include/opencascade/TopoDS_Shape.hxx:277, from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26, from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26, from MakeBottle.cxx:3: /usr/include/opencascade/Standard_Type.hxx:141: error: ‘ostream’ has not been declared /usr/include/opencascade/Standard_Type.hxx:150: error: ‘ostream’ has not been declared /usr/include/opencascade/Standard_Type.hxx:151: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/Standard_Type.hxx:201, from /usr/include/opencascade/Standard_Transient.hxx:14, from /usr/include/opencascade/MMgt_TShared.hxx:34, from /usr/include/opencascade/TopoDS_TShape.hxx:40, from /usr/include/opencascade/TopoDS_Shape.lxx:7, from /usr/include/opencascade/TopoDS_Shape.hxx:277, from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26, from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26, from MakeBottle.cxx:3: /usr/include/opencascade/Standard_Type.lxx:13: error: expected constructor, destructor, or type conversion before ‘&’ token In file included from /usr/include/opencascade/Standard_Transient.hxx:14, from /usr/include/opencascade/MMgt_TShared.hxx:34, from /usr/include/opencascade/TopoDS_TShape.hxx:40, from /usr/include/opencascade/TopoDS_Shape.lxx:7, from /usr/include/opencascade/TopoDS_Shape.hxx:277, from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26, from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26, from MakeBottle.cxx:3: /usr/include/opencascade/Standard_Type.hxx:211: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/TopoDS_Shape.lxx:8, from /usr/include/opencascade/TopoDS_Shape.hxx:277, from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26, from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26, from MakeBottle.cxx:3: /usr/include/opencascade/TopAbs.hxx:118: error: ISO C++ forbids declaration of ‘ostream’ with no type /usr/include/opencascade/TopAbs.hxx:118: error: expected ‘;’ before ‘&’ token /usr/include/opencascade/TopAbs.hxx:123: error: ISO C++ forbids declaration of ‘ostream’ with no type /usr/include/opencascade/TopAbs.hxx:123: error: expected ‘;’ before ‘&’ token /usr/include/opencascade/TopAbs.hxx:128: error: ISO C++ forbids declaration of ‘ostream’ with no type /usr/include/opencascade/TopAbs.hxx:128: error: expected ‘;’ before ‘&’ token In file included from /usr/include/opencascade/TopTools_MapOfShape.hxx:26, from /usr/include/opencascade/BRepLib_MakeWire.hxx:35, from /usr/include/opencascade/BRepBuilderAPI_MakeWire.hxx:26, from MakeBottle.cxx:7: /usr/include/opencascade/TCollection_BasicMap.hxx:134: error: ‘ostream’ has not been declared In file included from /usr/include/opencascade/Standard_OutOfRange.hxx:33, from /usr/include/opencascade/gp_Mat.lxx:4, from /usr/include/opencascade/gp_Mat.hxx:326, from /usr/include/opencascade/gp_Trsf.hxx:32, from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26, from MakeBottle.cxx:8: /usr/include/opencascade/Standard_SStream.hxx:58: error: expected class-name before ‘{’ token /usr/include/opencascade/Standard_SStream.hxx:62: error: expected )' before ‘&’ token |
This is the contents of /usr/include/opencascade/config.h:
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.in by autoheader. */ /* Define to one of _getb67′, /* Define to 1 if using alloca.c’. */ /* define if the compiler allows redefinition of stream input and output */ /* Define to 1 if you have /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). /* Define to 1 if you have the <bits/sigset.h> header file. */ /* Define to 1 if you have the <bstring.h> header file. */ /* Define to 1 if you have the <dirent.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dl.h> header file. */ /* Define to 1 if you have the <DPS/dpsXclient.h> header file. */ /* Define if we have a function called "finite" in -lm. */ /* Define to 1 if you have the <floatingpoint.h> header file. */ /* Define to 1 if you have the <float.h> header file. */ /* Define to 1 if you have the <fstream> header file. */ /* Define to 1 if you have the <fstream.h> header file. */ /* Define to 1 if you have the gethostname’ function. */ /* Define to 1 if you have the <getopt.h> header file. */ /* Define to 1 if you have the <ieeefp.h> header file. */ /* Define to 1 if you have the <inttypes.h> header file. */ /* Define to 1 if you have the <iomanip> header file. */ /* Define to 1 if you have the <iomanip.h> header file. */ /* Define to 1 if you have the <ios> header file. */ /* Define to 1 if you have the <iostream> header file. */ /* Define to 1 if you have the <iostream.h> header file. */ /* Define to 1 if you have the <ios.h> header file. */ /* Define to 1 if you have the <istream> header file. */ /* Define to 1 if you have the <istream.h> header file. */ /* Define to 1 if you have the <libc.h> header file. */ /* Define to 1 if you have the /* Define to 1 if you have the inks’ library (-links). */ /* Define to 1 if you have the <limits.h> header file. */ /* Define if we have a function called “mallinfo” in -lmalloc. */ /* Define to 1 if you have the <malloc.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <ndir.h> header file. */ /* Define to 1 if you have the <netdb.h> header file. */ /* Define to 1 if you have the <net/if.h> header file. */ /* Define to 1 if you have the <osfcn.h> header file. */ /* Define to 1 if you have the <ostream> header file. */ /* Define to 1 if you have the <ostream.h> header file. */ /* Define to 1 if you have the /* Define to 1 if you have the <pwd.h> header file. */ /* Define to 1 if you have the regcomp’ function. */ /* Define to 1 if you have the /* Define to 1 if you have the <sigfpe.h> header file. */ /* Define to 1 if you have the <siginfo.h> header file. */ /* Define to 1 if you have the <signal.h> header file. */ /* Define to 1 if you have the statfs’ function. */ /* Define to 1 if you have the /* Define to 1 if you have the <stdint.h> header file. */ /* Define to 1 if you have the <stdlib.h> header file. */ /* Define to 1 if you have the strcspn’ function. */ /* Define to 1 if you have the /* Define to 1 if you have the <stream.h> header file. */ /* Define to 1 if you have the <strings.h> header file. */ /* Define to 1 if you have the <string.h> header file. */ /* Define to 1 if you have the <strstream.h> header file. */ /* Define to 1 if you have the strtol’ function. */ /* Define if we have a function called “ieee_handler” in -lsunmath. */ /* Define to 1 if you have the <sysent.h> header file. */ /* Define to 1 if you have the <sys/dir.h> header file. */ /* Define to 1 if you have the <sys/filio.h> header file. */ /* Define to 1 if you have the <sys/ioctl.h> header file. */ /* Define to 1 if you have the <sys/ipc.h> header file. */ /* Define to 1 if you have the <sys/machsig.h> header file. */ /* Define to 1 if you have the <sys/mman.h> header file. */ /* Define to 1 if you have the <sys/ndir.h> header file. */ /* Define to 1 if you have the <sys/param.h> header file. */ /* Define to 1 if you have the <sys/select.h> header file. */ /* Define to 1 if you have the <sys/sem.h> header file. */ /* Define to 1 if you have the <sys/siginfo.h> header file. */ /* Define to 1 if you have the <sys/signal.h> header file. */ /* Define to 1 if you have the <sys/socket.h> header file. */ /* Define to 1 if you have the <sys/statvfs.h> header file. */ /* Define to 1 if you have the <sys/stat.h> header file. */ /* Define to 1 if you have the <sys/systeminfo.h> header file. */ /* Define to 1 if you have the <sys/times.h> header file. */ /* Define to 1 if you have the <sys/time.h> header file. */ /* Define to 1 if you have the <sys/types.h> header file. */ /* Define to 1 if you have the <sys/unistd.h> header file. */ /* Define to 1 if you have the <sys/utsname.h> header file. */ /* Define to 1 if you have the <sys/vfs.h> header file. */ /* Define to 1 if you have the <sys/vnode.h> header file. */ /* Define to 1 if you have the <time.h> header file. */ /* Define to 1 if you have the <unistd.h> header file. */ /* Define to 1 if you have the <values.h> header file. */ /* Define to 1 if you have the <X11/extensions/multibuf.h> header file. */ /* Define to 1 if you have the <X11/extensions/readdisplay.h> header file. */ /* Define to 1 if you have the <X11/extensions/transovl.h> header file. */ /* Define to 1 if you have the <Xmu/Editres.h> header file. */ /* Define to 1 if your C compiler doesn’t accept -c and -o together. */ /* define if the class ostream has member function form */ /* Name of package */ /* Define to the address where bug reports for this package should be sent. */ /* Define to the full name of this package. */ /* Define to the full name and version of this package. */ /* Define to the one symbol short name of this package. */ /* Define to the version of this package. */ /* Define to 1 if the C compiler supports function prototypes. */ /* Define as the return type of signal handlers ( /* define if the function semctl takes a value */ /* define if the function semop takes a value */ /* define if semun has member __buf */ /* define if the union semun is in sys/sem.h */ /* If using the C implementation of alloca, define if you know the /* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if your <sys/time.h> declares /* Version number of package */ /* Define to 1 if your processor stores words with the most significant byte /* Define to 1 if on AIX 3. /* Define like PROTOTYPES; this can be used by system headers. */ /* Define to unsigned int’ if <sys/types.h> does not define. */ |