<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Dr. Grindeanu,<br><br>Thank you very much for your kindly reply.<br>The built to project 'cubit_OOC' is still failed because of the errors I posted in my previous email.<br><br>I used the CMake to build the CGMA projects by the aid of CMakeLists.txt. I used the default settings when configuring by CMake, except that I provided the 'OOC_INCLUDE' and 'OOC_LIBRARY' required by CMake when configuring. <br><br>Thanks,<br>Zhanghong Tang<br><br><br><br>--- On <b>Sun, 11/4/12, Iulian Grindeanu <i><iulian@mcs.anl.gov></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Iulian Grindeanu <iulian@mcs.anl.gov><br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>To: "Zhanghong Tang" <tangzhanghong98@yahoo.com><br>Date: Sunday, November 4, 2012, 12:51
AM<br><br><div id="yiv12226462"><style type="text/css">#yiv12226462 p {margin:0;}</style><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;">Hello,<br>It would be good if you can make it work.<br>How did you configure ? Using ccmake or autotools in cygwin?<br><br>You should configure with-occ OR with-cubit, if you have cubit.<br>It seems that you installed occ, so configure ONLY with-occ.<br>I will be out of email until Monday<br><br>Iulian<br><hr id="yiv12226462zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Dear Dr. Grindeanu,<br><br>Thank you very much for pointing out my problem. I thought that the CGMA can work without any other package. <br>Now I have installed Open CASCADE Technology 6.5.3 and rebuild the CGMA project (reset the path by CMake and
create the VS2010 projects), the following error displayed when build the cubit_OCC project:<br><br>1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------<br>1>Build started 2012/11/3 23:41:53.<br>1>InitializeBuildStatus:<br>1> Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.<br>1>FinalizeBuildStatus:<br>1> Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".<br>1> Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".<br>1><br>1>Build succeeded.<br>1><br>1>Time Elapsed
00:00:00.06<br>2>------ Build started: Project: cubit_OCC, Configuration: Debug x64 ------<br>2>Build started 2012/11/3 23:41:53.<br>2>InitializeBuildStatus:<br>2> Touching "cubit_OCC.dir\Debug\cubit_OCC.unsuccessfulbuild".<br>2>CustomBuild:<br>2> All outputs are up-to-date.<br>2>ClCompile:<br>2> OCCModifyEngine.cpp<br>2>E:\cgma-12.2.0b1\util\CubitMessage.hpp(400): warning C4138: '*/' found outside of comment<br>2>E:\cgma-12.2.0b1\geom\GeometryQueryEngine.hpp(259): warning C4138: '*/' found outside of comment<br>2>E:\cgma-12.2.0b1\geom\GeometryQueryEngine.hpp(260): warning C4138: '*/' found outside of comment<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(715): error C2440: '<function-style-cast>' : cannot convert from 'Handle_Geom_RectangularTrimmedSurface' to 'BRepBuilderAPI_MakeFace'<br>2> No constructor could take the source type, or
constructor overload resolution was ambiguous<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(725): error C2440: '<function-style-cast>' : cannot convert from 'Handle_Geom_RectangularTrimmedSurface' to 'BRepBuilderAPI_MakeFace'<br>2> No constructor could take the source type, or constructor overload resolution was ambiguous<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(744): error C2665: 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace' : none of the 23 overloads could convert all the argument types<br>2> C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(104): could be 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Pln &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>2>
C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(106): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Cylinder &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>2> C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(108): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Cone &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>2> C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(110): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Sphere &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>2>
C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(112): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Torus &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>2> while trying to match the argument list '(Handle_Geom_BezierSurface, double, double, double, double)'<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(2267): warning C4800: 'Standard_Boolean' : forcing value to bool 'true' or 'false' (performance warning)<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(7913): error C2440: '<function-style-cast>' : cannot convert from 'Handle_Geom_RectangularTrimmedSurface' to 'BRepBuilderAPI_MakeFace'<br>2> No constructor could take the source type, or constructor overload resolution was ambiguous<br>2><br>2>Build FAILED.<br>2><br>2>Time
Elapsed 00:00:01.52<br>3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------<br>3>Build started 2012/11/3 23:41:54.<br>3>InitializeBuildStatus:<br>3> Creating "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.<br>3>CustomBuild:<br>3> Build all projects<br>3>FinalizeBuildStatus:<br>3> Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".<br>3> Touching "x64\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".<br>3><br>3>Build succeeded.<br>3><br>3>Time Elapsed 00:00:02.02<br>4>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------<br>4>Project not selected to build for this solution configuration <br>========== Build: 2 succeeded, 1 failed, 7 up-to-date, 1 skipped ==========<br><br><br>Could you please take a look at it for me?<br><br><br>Thanks,<br>Zhanghong Tang<br><br><br><br>--- On <b>Sat, 11/3/12, Iulian
Grindeanu <i><iulian@mcs.anl.gov></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: Iulian Grindeanu <iulian@mcs.anl.gov><br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>To: "Zhanghong Tang" <tangzhanghong98@yahoo.com><br>Cc: "CGMA Development" <cgma-dev@mcs.anl.gov><br>Date: Saturday, November 3, 2012, 10:30 PM<br><br><div id="yiv12226462"><style>#yiv12226462 p {margin:0;}</style><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;"><br><br><hr id="yiv12226462zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td id="yiv12226462DWT360" style="font:inherit;" valign="top">Dear Dr. Grindeanu,<br><br>Thank you very much for your kindly reply. With the
help of CMake I have successfully build the libraries. There are 7 libs generated:<br>cgma_init.lib<br>cholla.lib<br>cubit_facet.lib<br>cubit_facetboolstub.lib<br>cubit_geom.lib<br>cubit_util.lib<br>cubit_virtual.lib<br><br></td></tr></tbody></table></blockquote>Hello,<br>So I assume you are on the main branch.<br>You can't use CGM without a geometry engine. Did you read my previous e-mail?<br><br>You will need to configure with OCC or Cubit. <br>Sorry, I can't be of more help. <br>Iulian<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">I tried to build a simple test "brick.cpp", however, there are some errors when run the example:<br><br>Facet-based geometry modification is a beta capability.<br>ERROR: This capability is currently disabled.<br>To enable this capability, issue the command 'set developer
commands on'.<br>ERROR: In GeometryModifyTool::brick<br> Problem creating a brick.<br>Assertion failed: brick != 0, file ..\test\brick.cpp, line 42<br><br><br>I would like to do a simple test:<br>1) build a box and a sphere with both center at (0,0,0) and size
1;<br>2) do boolean operations such as intersection between the box and sphere;<br>3) output the result to an OFF file.<br><br>Could anyone give me such a simple example?<br><br>Thanks,<br>Zhanghong Tang<br><br><br>--- On <b>Fri, 11/2/12, Iulian Grindeanu <i><iulian@mcs.anl.gov></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: Iulian Grindeanu <iulian@mcs.anl.gov><br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>To: "Zhanghong Tang" <tangzhanghong98@yahoo.com><br>Cc: cgma-dev@mcs.anl.gov<br>Date: Friday, November 2, 2012, 11:21 PM<br><br><div id="yiv12226462"><style>#yiv12226462 p {margin:0;}</style><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;">Hello,<br>I don't know if anybody tried building on Windows, maybe Jane or Tim know.<br>You have to configure
with a geometric engine. If you don't have Cubit for your platform, you will need to configure with OCC<br>It seems that you use cygwin. I know that OCC can be build on Windows, on VS 2010.<br>(http://www.opencascade.org/getocc/require/)<br><br>You then can try configuring on cygwin with occ. And then look at Makefiles generated to see what would be needed for projects in VS. Or is there a cmake-based build? I think that would be easier to port to Windows.<br><br>Iulian<br><br><br><hr id="yiv12226462zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Dear all,<br><br>I am trying to build the CGMA on Windows 7 64bit + VS2010. I have attached the project. However, there are hundreds of errors such as:<br><br>2>CGMAD.lib(DAG.obj) : error LNK2019: unresolved external symbol "public: __cdecl
DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ) referenced in function "public: enum CubitStatus __cdecl DAG::get_children_at_level(class DLIList<class ModelEntity *> &,int,class DLIList<class ModelEntity *> &)" (?get_children_at_level@DAG@@QEAA?AW4CubitStatus@@AEAV?$DLIList@PEAVModelEntity@@@@H0@Z)<br>2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)"
(??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br>2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br>2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br>2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br><br><br>Could anyone help me to take a look at it and give me some hints on how to setup the project or modify some code to successfully build the project?<br><br>Thanks,<br>Zhanghong
Tang<br><br><br></td></tr></tbody></table></blockquote><br></div></div></div></blockquote></td></tr></tbody></table></blockquote><br></div></div></div></blockquote></td></tr></tbody></table></blockquote><br></div></div></div></blockquote></td></tr></table>