[cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?

Iulian Grindeanu iulian at mcs.anl.gov
Mon Nov 5 08:40:39 CST 2012


Hello, 
How did you configure? Even if you use cmake, at some point you need to have a configuration step. 
You can see what we build every night here: 
http://gnep.mcs.anl.gov:8010/waterfall?category=cgm 
Those are all built on a Linux compute node, ubuntu 10.04, 64-bit. 
The configuration closest to yours' is probably cgm-occ or cgm-occ-sta. 
These are built on merge cubit 12.2 branch, with occ version 6.5.3 
http://gnep.mcs.anl.gov:8010/builders/cgm-occ 
or 
http://gnep.mcs.anl.gov:8010/builders/cgm-occ-sta 

If you send your config.log file (or equivalent?) , we may have some clues of what is not working. 

Best Regards, 
Iulian 

----- Original Message -----

| Dear all,


| I have successfully built the project 'cubit_OOC' after I used the
| version 12.2 from here:

| https://svn.mcs.anl.gov/repos/ITAPS/cgm/branches/Version12.2/


| However, after I built a simple example "\test\operation.cpp" and run
| it, the following error displayed:

| ERROR: Invalid or unsupported engine: 'OCC'


| Is there anything I missed?


| Thanks,

| Zhanghong Tang




| --- On Sun, 11/4/12, Iulian Grindeanu <iulian at mcs.anl.gov> wrote:



| | From: Iulian Grindeanu <iulian at mcs.anl.gov>

| | Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit +
| | VS2010?

| | To: "Zhanghong Tang" <tangzhanghong98 at yahoo.com>

| | Date: Sunday, November 4, 2012, 12:51 AM





| | Hello,

| | It would be good if you can make it work.

| | How did you configure ? Using ccmake or autotools in cygwin?


| | You should configure with-occ OR with-cubit, if you have cubit.

| | It seems that you installed occ, so configure ONLY with-occ.

| | I will be out of email until Monday


| | Iulian



| | | Dear Dr. Grindeanu,


| | | Thank you very much for pointing out my problem. I thought that
| | | the
| | | CGMA can work without any other package.

| | | 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:


| | | 1>------ Build started: Project: ZERO_CHECK, Configuration: Debug
| | | x64
| | | ------

| | | 1>Build started 2012/11/3 23:41:53.

| | | 1>InitializeBuildStatus:

| | | 1> Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild"
| | | because "AlwaysCreate" was specified.

| | | 1>FinalizeBuildStatus:

| | | 1> Deleting file
| | | "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".

| | | 1> Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".

| | | 1>

| | | 1>Build succeeded.

| | | 1>

| | | 1>Time Elapsed 00:00:00.06

| | | 2>------ Build started: Project: cubit_OCC, Configuration: Debug
| | | x64
| | | ------

| | | 2>Build started 2012/11/3 23:41:53.

| | | 2>InitializeBuildStatus:

| | | 2> Touching "cubit_OCC.dir\Debug\cubit_OCC.unsuccessfulbuild".

| | | 2>CustomBuild:

| | | 2> All outputs are up-to-date.

| | | 2>ClCompile:

| | | 2> OCCModifyEngine.cpp

| | | 2>E:\cgma-12.2.0b1\util\CubitMessage.hpp(400): warning C4138: '*/'
| | | found outside of comment

| | | 2>E:\cgma-12.2.0b1\geom\GeometryQueryEngine.hpp(259): warning
| | | C4138:
| | | '*/' found outside of comment

| | | 2>E:\cgma-12.2.0b1\geom\GeometryQueryEngine.hpp(260): warning
| | | C4138:
| | | '*/' found outside of comment

| | | 2>..\..\..\geom\OCC\OCCModifyEngine.cpp(715): error C2440:
| | | '<function-style-cast>' : cannot convert from
| | | 'Handle_Geom_RectangularTrimmedSurface' to
| | | 'BRepBuilderAPI_MakeFace'

| | | 2> No constructor could take the source type, or constructor
| | | overload
| | | resolution was ambiguous

| | | 2>..\..\..\geom\OCC\OCCModifyEngine.cpp(725): error C2440:
| | | '<function-style-cast>' : cannot convert from
| | | 'Handle_Geom_RectangularTrimmedSurface' to
| | | 'BRepBuilderAPI_MakeFace'

| | | 2> No constructor could take the source type, or constructor
| | | overload
| | | resolution was ambiguous

| | | 2>..\..\..\geom\OCC\OCCModifyEngine.cpp(744): error C2665:
| | | 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace' : none of the
| | | 23
| | | overloads could convert all the argument types

| | | 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)'

| | | 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)'

| | | 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)'

| | | 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)'

| | | 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)'

| | | 2> while trying to match the argument list
| | | '(Handle_Geom_BezierSurface, double, double, double, double)'

| | | 2>..\..\..\geom\OCC\OCCModifyEngine.cpp(2267): warning C4800:
| | | 'Standard_Boolean' : forcing value to bool 'true' or 'false'
| | | (performance warning)

| | | 2>..\..\..\geom\OCC\OCCModifyEngine.cpp(7913): error C2440:
| | | '<function-style-cast>' : cannot convert from
| | | 'Handle_Geom_RectangularTrimmedSurface' to
| | | 'BRepBuilderAPI_MakeFace'

| | | 2> No constructor could take the source type, or constructor
| | | overload
| | | resolution was ambiguous

| | | 2>

| | | 2>Build FAILED.

| | | 2>

| | | 2>Time Elapsed 00:00:01.52

| | | 3>------ Build started: Project: ALL_BUILD, Configuration: Debug
| | | x64
| | | ------

| | | 3>Build started 2012/11/3 23:41:54.

| | | 3>InitializeBuildStatus:

| | | 3> Creating "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild"
| | | because
| | | "AlwaysCreate" was specified.

| | | 3>CustomBuild:

| | | 3> Build all projects

| | | 3>FinalizeBuildStatus:

| | | 3> Deleting file
| | | "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".

| | | 3> Touching "x64\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".

| | | 3>

| | | 3>Build succeeded.

| | | 3>

| | | 3>Time Elapsed 00:00:02.02

| | | 4>------ Skipped Build: Project: INSTALL, Configuration: Debug x64
| | | ------

| | | 4>Project not selected to build for this solution configuration

| | | ========== Build: 2 succeeded, 1 failed, 7 up-to-date, 1 skipped
| | | ==========



| | | Could you please take a look at it for me?



| | | Thanks,

| | | Zhanghong Tang




| | | --- On Sat, 11/3/12, Iulian Grindeanu <iulian at mcs.anl.gov> wrote:



| | | | From: Iulian Grindeanu <iulian at mcs.anl.gov>

| | | | Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit
| | | | +
| | | | VS2010?

| | | | To: "Zhanghong Tang" <tangzhanghong98 at yahoo.com>

| | | | Cc: "CGMA Development" <cgma-dev at mcs.anl.gov>

| | | | Date: Saturday, November 3, 2012, 10:30 PM









| | | | | Dear Dr. Grindeanu,


| | | | | Thank you very much for your kindly reply. With the help of
| | | | | CMake
| | | | | I
| | | | | have successfully build the libraries. There are 7 libs
| | | | | generated:

| | | | | cgma_init.lib

| | | | | cholla.lib

| | | | | cubit_facet.lib

| | | | | cubit_facetboolstub.lib

| | | | | cubit_geom.lib

| | | | | cubit_util.lib

| | | | | cubit_virtual.lib



| | | | Hello,

| | | | So I assume you are on the main branch.

| | | | You can't use CGM without a geometry engine. Did you read my
| | | | previous
| | | | e-mail?


| | | | You will need to configure with OCC or Cubit.

| | | | Sorry, I can't be of more help.

| | | | Iulian


| | | | | I tried to build a simple test "brick.cpp", however, there are
| | | | | some
| | | | | errors when run the example:


| | | | | Facet-based geometry modification is a beta capability.

| | | | | ERROR: This capability is currently disabled.

| | | | | To enable this capability, issue the command 'set developer
| | | | | commands
| | | | | on'.

| | | | | ERROR: In GeometryModifyTool::brick

| | | | | Problem creating a brick.

| | | | | Assertion failed: brick != 0, file ..\test\brick.cpp, line 42



| | | | | I would like to do a simple test:

| | | | | 1) build a box and a sphere with both center at (0,0,0) and
| | | | | size
| | | | | 1;

| | | | | 2) do boolean operations such as intersection between the box
| | | | | and
| | | | | sphere;

| | | | | 3) output the result to an OFF file.


| | | | | Could anyone give me such a simple example?


| | | | | Thanks,

| | | | | Zhanghong Tang



| | | | | --- On Fri, 11/2/12, Iulian Grindeanu <iulian at mcs.anl.gov>
| | | | | wrote:



| | | | | | From: Iulian Grindeanu <iulian at mcs.anl.gov>

| | | | | | Subject: Re: [cgma-dev] How to build the CGMA on Windows 7
| | | | | | 64bit
| | | | | | +
| | | | | | VS2010?

| | | | | | To: "Zhanghong Tang" <tangzhanghong98 at yahoo.com>

| | | | | | Cc: cgma-dev at mcs.anl.gov

| | | | | | Date: Friday, November 2, 2012, 11:21 PM





| | | | | | Hello,

| | | | | | I don't know if anybody tried building on Windows, maybe
| | | | | | Jane
| | | | | | or
| | | | | | Tim
| | | | | | know.

| | | | | | You have to configure with a geometric engine. If you don't
| | | | | | have
| | | | | | Cubit
| | | | | | for your platform, you will need to configure with OCC

| | | | | | It seems that you use cygwin. I know that OCC can be build
| | | | | | on
| | | | | | Windows,
| | | | | | on VS 2010.

| | | | | | (http://www.opencascade.org/getocc/require/)


| | | | | | 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.


| | | | | | Iulian





| | | | | | | Dear all,


| | | | | | | 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:


| | | | | | | 2>CGMAD.lib(DAG.obj) : error LNK2019: unresolved external
| | | | | | | symbol
| | | | | | | "public: __cdecl DLIList<class ModelEntity
| | | | | | | *>::~DLIList<class
| | | | | | | ModelEntity *>(void)"
| | | | | | | (??1?$DLIList at PEAVModelEntity@@@@QEAA at 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 at DAG@@QEAA?AW4CubitStatus@@AEAV?$DLIList at PEAVModelEntity@@@@H0 at Z)

| | | | | | | 2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved
| | | | | | | external
| | | | | | | symbol "public: __cdecl DLIList<class ModelEntity
| | | | | | | *>::~DLIList<class
| | | | | | | ModelEntity *>(void)"
| | | | | | | (??1?$DLIList at PEAVModelEntity@@@@QEAA at XZ)

| | | | | | | 2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved
| | | | | | | external
| | | | | | | symbol "public: __cdecl DLIList<class ModelEntity
| | | | | | | *>::~DLIList<class
| | | | | | | ModelEntity *>(void)"
| | | | | | | (??1?$DLIList at PEAVModelEntity@@@@QEAA at XZ)

| | | | | | | 2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved
| | | | | | | external
| | | | | | | symbol "public: __cdecl DLIList<class ModelEntity
| | | | | | | *>::~DLIList<class
| | | | | | | ModelEntity *>(void)"
| | | | | | | (??1?$DLIList at PEAVModelEntity@@@@QEAA at XZ)

| | | | | | | 2>CGMAD.lib(TopologyEntity.obj) : error LNK2001:
| | | | | | | unresolved
| | | | | | | external
| | | | | | | symbol "public: __cdecl DLIList<class ModelEntity
| | | | | | | *>::~DLIList<class
| | | | | | | ModelEntity *>(void)"
| | | | | | | (??1?$DLIList at PEAVModelEntity@@@@QEAA at XZ)



| | | | | | | 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?


| | | | | | | Thanks,

| | | | | | | Zhanghong Tang














-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20121105/e7d64d8e/attachment.html>


More information about the cgma-dev mailing list