cgma-dev
Threads by month
- ----- 2026 -----
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
November 2012
- 7 participants
- 37 discussions
Author: janehu
Date: 2012-11-06 13:38:17 -0600 (Tue, 06 Nov 2012)
New Revision: 5855
Modified:
cgm/trunk/configure.ac
cgm/trunk/geom/GeometryQueryTool.hpp
cgm/trunk/itaps/Makefile.am
cgm/trunk/test/Makefile.am
Log:
Double checked on occ-static and occ-shared, cubit-static and cubit-shared builds, all passed cgm make check except cubit-shared build has two files failed.
Modified: cgm/trunk/configure.ac
===================================================================
--- cgm/trunk/configure.ac 2012-11-06 16:44:43 UTC (rev 5854)
+++ cgm/trunk/configure.ac 2012-11-06 19:38:17 UTC (rev 5855)
@@ -187,8 +187,8 @@
AC_SUBST(CUBIT_FILE)
AC_SUBST(CUBIT_CGM)
-AM_CONDITIONAL(BUILD_CGM,[test x"$CUBIT_DIR" == x"no"])
-AM_CONDITIONAL(WITH_CUBIT,[test x"$CUBIT_DIR" != x"no"])
+AM_CONDITIONAL(BUILD_CGM,[test "x$CUBIT_DIR" == "xno"])
+AM_CONDITIONAL(WITH_CUBIT,[test "x$CUBIT_DIR" != "xno"])
################################################################################
# ACIS OPTIONS
Modified: cgm/trunk/geom/GeometryQueryTool.hpp
===================================================================
--- cgm/trunk/geom/GeometryQueryTool.hpp 2012-11-06 16:44:43 UTC (rev 5854)
+++ cgm/trunk/geom/GeometryQueryTool.hpp 2012-11-06 19:38:17 UTC (rev 5855)
@@ -16,6 +16,8 @@
#ifndef GEOMETRYQUERYTOOL_HPP
#define GEOMETRYQUERYTOOL_HPP
+#define CUBIT_12 3
+
#include <stdio.h>
#include <typeinfo>
#include <list>
Modified: cgm/trunk/itaps/Makefile.am
===================================================================
--- cgm/trunk/itaps/Makefile.am 2012-11-06 16:44:43 UTC (rev 5854)
+++ cgm/trunk/itaps/Makefile.am 2012-11-06 19:38:17 UTC (rev 5855)
@@ -71,9 +71,9 @@
check_PROGRAMS = chaman $(TESTS)
if BUILD_CGM
- LDADD = libiGeom.la $(top_builddir)/geom/libcubit_geom.la $(top_builddir)/util/libcubit_util.la
+ LDADD = libiGeom.la $(top_builddir)/geom/libcubit_geom.la $(top_builddir)/util/libcubit_util.la $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
else
- LDADD = libiGeom.la
+ LDADD = libiGeom.la $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
endif
AM_LDFLAGS += $(CGM_EXT_LTFLAGS) $(CGM_EXT_LDFLAGS)
Modified: cgm/trunk/test/Makefile.am
===================================================================
--- cgm/trunk/test/Makefile.am 2012-11-06 16:44:43 UTC (rev 5854)
+++ cgm/trunk/test/Makefile.am 2012-11-06 19:38:17 UTC (rev 5855)
1
0
Author: janehu
Date: 2012-11-06 10:44:43 -0600 (Tue, 06 Nov 2012)
New Revision: 5854
Modified:
cgm/trunk/cgm_apps/examples/facetdriver/Makefile.am
Log:
Fixed for cgm on cubit build, now passed make check under cgm.
Modified: cgm/trunk/cgm_apps/examples/facetdriver/Makefile.am
===================================================================
--- cgm/trunk/cgm_apps/examples/facetdriver/Makefile.am 2012-11-05 23:36:37 UTC (rev 5853)
+++ cgm/trunk/cgm_apps/examples/facetdriver/Makefile.am 2012-11-06 16:44:43 UTC (rev 5854)
@@ -13,4 +13,8 @@
-I$(top_srcdir)/geom/facet \
-I$(top_srcdir)/geom/facetbool
-LDADD = $(top_builddir)/libcgm.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS) $(top_builddir)/geom/Cholla/libCholla.la $(top_builddir)/geom/facet/libcubit_facet.la $(top_builddir)/geom/facetbool/libcubit_facetbool.la $(top_builddir)/geom/libcubit_geom.la $(top_builddir)/util/libcubit_util.la
+if BUILD_CGM
+ LDADD = $(top_builddir)/libcgm.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS) $(top_builddir)/geom/Cholla/libCholla.la $(top_builddir)/geom/facet/libcubit_facet.la $(top_builddir)/geom/facetbool/libcubit_facetbool.la $(top_builddir)/geom/libcubit_geom.la $(top_builddir)/util/libcubit_util.la
+else
+ LDADD = -lcubit_geom -lcubit_util -lcubiti19 $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
+endif
1
0
Hello,
I need your help for the CMakeLists.txt. Can someone generate
CMakelists.txt in cgm? I am going to ask him for his file, and then we can
work on that. But I don't have clue of write it.
Thanks for your help!
Jane
---------- Forwarded message ----------
From: Zhanghong Tang <tangzhanghong98(a)yahoo.com>
Date: Tue, Nov 6, 2012 at 9:57 AM
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: Jane Hu <janejhu(a)gmail.com>
Dear Dr. Hu,
Thank you very much for your kindly reply. From the 'CMakeLists.txt', I
can't generate the VC++ project which can build code to generate cgm.lib (
libcgm.la). Could you please update the 'CMakeLists.txt' for me to let the
CMake generate that project?
Thanks,
Zhanghong Tang
--- On *Tue, 11/6/12, Jane Hu <janejhu(a)gmail.com>* wrote:
From: Jane Hu <janejhu(a)gmail.com>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Date: Tuesday, November 6, 2012, 11:45 PM
Yes, you should add libcgm.la. Have you been successful?
Jane
On Mon, Nov 5, 2012 at 5:26 PM, Zhanghong Tang
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> wrote:
Dear Dr. Hu,
Thank you very much for your kindly reply. From the 'CMakeLists.txt' I can
only generate the following libs:
cgma_init.lib
cholla.lib
cubit_facet.lib
cubit_facetboolstub.lib
cubit_geom.lib
cubit_OOC.lib
cubit_util.lib
cubit_virtual.lib
compare to the libs you listed, I think the following lib should also be
added from 'CMakeLists.txt':
cgm.lib (libcgm.la)
Thanks,
Zhanghong Tang
--- On *Tue, 11/6/12, Jane Hu
<janejhu(a)gmail.com<http://mc/[email protected]>
>* wrote:
From: Jane Hu <janejhu(a)gmail.com <http://mc/[email protected]>>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
>
Cc: cgma-dev(a)mcs.anl.gov <http://mc/[email protected]>
Date: Tuesday, November 6, 2012, 1:35 AM
Will adding following library work for you?
--- Makefile.am_bck 2012-11-05 11:24:26.000000000 -0600
+++ Makefile.am 2012-11-05 11:28:50.000000000 -0600
@@ -27,7 +27,11 @@
check_PROGRAMS = $(TESTS)
-LDADD = ../libcgm.la ../geom/libcubit_geom.la ../util/libcubit_util.la
libcgm_test.la ../geom/virtual/libcubit_virtual.la ../geom/facet/
libcubit_facet.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
+ LDADD = ../libcgm.la ../geom/libcubit_geom.la ../init/libcgma_init.la../util/
libcubit_util.la libcgm_test.la
../geom/virtual/libcubit_virtual.la../geom/facet/
libcubit_facet.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
noinst_LTLIBRARIES = libcgm_test.la
libcgm_test_la_SOURCES = TestUtilities.hpp \
Jane
On Mon, Nov 5, 2012 at 11:10 AM, Zhanghong Tang
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> wrote:
Dear Dr. Hu,
Thank you very much for your sample code. I noticed that in the main
function you also have the following line:
CubitStatus status = InitCGMA::initialize_cgma("OCC");
which will pop up error on my machine. So I still missed something.
Is there anyone who have successfully configured CGMA by CMake in Windows?
Thanks,
Zhanghong Tang
--- On *Tue, 11/6/12, Jane Hu
<janejhu(a)gmail.com<http://mc/[email protected]>
>* wrote:
From: Jane Hu <janejhu(a)gmail.com <http://mc/[email protected]>>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
>
Cc: "Iulian Grindeanu"
<iulian(a)mcs.anl.gov<http://mc/[email protected]>>,
cgma-dev(a)mcs.anl.gov <http://mc/[email protected]>
Date: Tuesday, November 6, 2012, 12:57 AM
Sorry, I forgot the attachment.
On Mon, Nov 5, 2012 at 10:49 AM, Jane Hu
<janejhu(a)gmail.com<http://mc/[email protected]>
> wrote:
Hello Zhanghong,
I understand that at some point, you wanted a simple test for boolean
operation for a box and a sphere.
I work on Linux machine, and am currently running on cgm-occ code from our
trunk location. I just built a small tests of size 1 block and a radius=0.7
sphere and got results for intersection and subtractions stored in
intersection.brep and box-sphere.brep(for box subtracts sphere) and
sphere-box.brep( sphere subtracts box).
I hope you good luck in your build (sorry I can't be much help on your
cmake build,) and I hope the testcase and result files can help you save
some time testing.
Jane
On Mon, Nov 5, 2012 at 9:07 AM, Zhanghong Tang
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> wrote:
Dear Dr. Grindeanu,
Thank you very much for your kindly reply. I attached the VS2010 project
created by CMake (64bit.zip). Except that I provided the include and
library folders of OOC when configure the CMake, I used all default values
to generate VS2010 project.
The libraries can be built successfully, however, it failed after I created
a simple test project "cgmatest', this project and source code are also
attached ('cgmatest.zip').
Thanks,
Zhanghong Tang
--- On *Mon, 11/5/12, Iulian Grindeanu
<iulian(a)mcs.anl.gov<http://mc/[email protected]>
>* wrote:
From: Iulian Grindeanu
<iulian(a)mcs.anl.gov<http://mc/[email protected]>
>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
>
Cc: cgma-dev(a)mcs.anl.gov <http://mc/[email protected]>
Date: Monday, November 5, 2012, 10:40 PM
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
------------------------------
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(a)mcs.anl.gov<http://mc/[email protected]>
>* wrote:
From: Iulian Grindeanu
<iulian(a)mcs.anl.gov<http://mc/[email protected]>
>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
>
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(a)mcs.anl.gov<http://mc/[email protected]>
>* wrote:
From: Iulian Grindeanu
<iulian(a)mcs.anl.gov<http://mc/[email protected]>
>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
>
Cc: "CGMA Development"
<cgma-dev(a)mcs.anl.gov<http://mc/[email protected]>
>
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(a)mcs.anl.gov<http://mc/[email protected]>
>* wrote:
From: Iulian Grindeanu
<iulian(a)mcs.anl.gov<http://mc/[email protected]>
>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
>
Cc: cgma-dev(a)mcs.anl.gov <http://mc/[email protected]>
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@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)
2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol
"public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
*>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol
"public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
*>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol
"public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
*>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external symbol
"public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
*>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@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
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
1
0
Author: janehu
Date: 2012-11-05 12:58:41 -0600 (Mon, 05 Nov 2012)
New Revision: 5852
Modified:
cgm/trunk/test/Makefile.am
Log:
Fixed the build problem on occ-cubit, cubit13.1 has heavy memory lost problem, causes 3 of the 5 testcases fail with 'glibc detected *** corrupted double-linked list' errors, valgrind shows leaks are from /cubit/cubit13.1/bin/libSpaACIS.so. Commented out 3 testcases for ACIS and CUBIT build for this version of cgm. Passed make check in this directory.
Modified: cgm/trunk/test/Makefile.am
===================================================================
--- cgm/trunk/test/Makefile.am 2012-11-02 17:40:36 UTC (rev 5851)
+++ cgm/trunk/test/Makefile.am 2012-11-05 18:58:41 UTC (rev 5852)
@@ -11,23 +11,27 @@
-I$(srcdir) \
$(OCC_INC_FLAG)
-TESTS = init sheet
+TESTS =
if build_ACIS
TESTS += webcut hollow_acis brick_acis merge_acis AngleCalc_acis CreateGeometry_acis GraphicsData_acis
else
if WITH_CUBIT
- TESTS += webcut brick_acis merge_acis
+ TESTS += webcut merge_acis
else
- TESTS += brick_facet merge_facet
+ TESTS += brick_facet merge_facet init sheet
endif
endif
if build_OCC
- TESTS += attribute_to_file loft offset_curves point_project imprint_bug modify subtract makept test_occ brick_occ merge_occ r_w operation section AngleCalc_occ CreateGeometry_occ GraphicsData_occ
+ TESTS += init sheet attribute_to_file loft offset_curves point_project imprint_bug modify subtract makept test_occ brick_occ merge_occ r_w operation section AngleCalc_occ CreateGeometry_occ GraphicsData_occ
endif
check_PROGRAMS = $(TESTS)
-LDADD = ../libcgm.la ../geom/libcubit_geom.la ../util/libcubit_util.la libcgm_test.la ../geom/virtual/libcubit_virtual.la ../geom/facet/libcubit_facet.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
+if BUILD_CGM
+ LDADD = ../libcgm.la ../geom/libcubit_geom.la ../init/libcgma_init.la ../util/libcubit_util.la libcgm_test.la ../geom/virtual/libcubit_virtual.la ../geom/facet/libcubit_facet.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
+else
+ LDADD = -lcubit_geom -lcubit_util -lcubiti19 $(top_builddir)/init/libcgma_init.la $(top_builddir)/geom/libcubit_geom.la $(top_builddir)/util/libcubit_util.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
+endif
noinst_LTLIBRARIES = libcgm_test.la
libcgm_test_la_SOURCES = TestUtilities.hpp \
1
0
Will adding following library work for you?
--- Makefile.am_bck 2012-11-05 11:24:26.000000000 -0600
+++ Makefile.am 2012-11-05 11:28:50.000000000 -0600
@@ -27,7 +27,11 @@
check_PROGRAMS = $(TESTS)
-LDADD = ../libcgm.la ../geom/libcubit_geom.la ../util/libcubit_util.la
libcgm_test.la ../geom/virtual/libcubit_virtual.la ../geom/facet/
libcubit_facet.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
+ LDADD = ../libcgm.la ../geom/libcubit_geom.la ../init/libcgma_init.la../util/
libcubit_util.la libcgm_test.la
../geom/virtual/libcubit_virtual.la../geom/facet/
libcubit_facet.la $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)
noinst_LTLIBRARIES = libcgm_test.la
libcgm_test_la_SOURCES = TestUtilities.hpp \
Jane
On Mon, Nov 5, 2012 at 11:10 AM, Zhanghong Tang
<tangzhanghong98(a)yahoo.com>wrote:
> Dear Dr. Hu,
>
> Thank you very much for your sample code. I noticed that in the main
> function you also have the following line:
> CubitStatus status = InitCGMA::initialize_cgma("OCC");
>
>
> which will pop up error on my machine. So I still missed something.
>
> Is there anyone who have successfully configured CGMA by CMake in Windows?
>
> Thanks,
> Zhanghong Tang
>
>
>
> --- On *Tue, 11/6/12, Jane Hu <janejhu(a)gmail.com>* wrote:
>
>
> From: Jane Hu <janejhu(a)gmail.com>
>
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
> Cc: "Iulian Grindeanu" <iulian(a)mcs.anl.gov>, cgma-dev(a)mcs.anl.gov
> Date: Tuesday, November 6, 2012, 12:57 AM
>
>
> Sorry, I forgot the attachment.
>
>
> On Mon, Nov 5, 2012 at 10:49 AM, Jane Hu <janejhu(a)gmail.com<http://mc/[email protected]>
> > wrote:
>
> Hello Zhanghong,
>
> I understand that at some point, you wanted a simple test for boolean
> operation for a box and a sphere.
>
> I work on Linux machine, and am currently running on cgm-occ code from our
> trunk location. I just built a small tests of size 1 block and a radius=0.7
> sphere and got results for intersection and subtractions stored in
> intersection.brep and box-sphere.brep(for box subtracts sphere) and
> sphere-box.brep( sphere subtracts box).
>
> I hope you good luck in your build (sorry I can't be much help on your
> cmake build,) and I hope the testcase and result files can help you save
> some time testing.
>
> Jane
>
>
> On Mon, Nov 5, 2012 at 9:07 AM, Zhanghong Tang <tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> > wrote:
>
> Dear Dr. Grindeanu,
>
> Thank you very much for your kindly reply. I attached the VS2010 project
> created by CMake (64bit.zip). Except that I provided the include and
> library folders of OOC when configure the CMake, I used all default values
> to generate VS2010 project.
>
> The libraries can be built successfully, however, it failed after I
> created a simple test project "cgmatest', this project and source code are
> also attached ('cgmatest.zip').
>
> Thanks,
> Zhanghong Tang
>
>
>
>
> --- On *Mon, 11/5/12, Iulian Grindeanu <iulian(a)mcs.anl.gov<http://mc/[email protected]>
> >* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov<http://mc/[email protected]>
> >
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> >
> Cc: cgma-dev(a)mcs.anl.gov <http://mc/[email protected]>
> Date: Monday, November 5, 2012, 10:40 PM
>
>
> 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
>
> ------------------------------
>
> 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(a)mcs.anl.gov<http://mc/[email protected]>
> >* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov<http://mc/[email protected]>
> >
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> >
> 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(a)mcs.anl.gov<http://mc/[email protected]>
> >* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov<http://mc/[email protected]>
> >
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> >
> Cc: "CGMA Development" <cgma-dev(a)mcs.anl.gov<http://mc/[email protected]>
> >
> 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(a)mcs.anl.gov<http://mc/[email protected]>
> >* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov<http://mc/[email protected]>
> >
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com<http://mc/[email protected]>
> >
> Cc: cgma-dev(a)mcs.anl.gov <http://mc/[email protected]>
> 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@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)
> 2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol
> "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
> *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
> 2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol
> "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
> *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
> 2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol
> "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
> *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
> 2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external
> symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class
> ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@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
>
>
>
>
>
>
>
>
>
> --
> Jane Hu
>
> Asst. Researcher
> Dept. of Engineering Physics
> UW @ Madison
>
> "And we know that for those who love God, that is, for those who are
> called according to his purpose, all things are working together for good."
> (Romans 8:28)
>
>
>
>
> --
> Jane Hu
>
> Asst. Researcher
> Dept. of Engineering Physics
> UW @ Madison
>
> "And we know that for those who love God, that is, for those who are
> called according to his purpose, all things are working together for good."
> (Romans 8:28)
>
>
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
1
0
05 Nov '12
Dear Dr. Hu,
Thank you very much for your sample code. I noticed that in the main function you also have the following line:
CubitStatus status = InitCGMA::initialize_cgma("OCC");
which will pop up error on my machine. So I still missed something.
Is there anyone who have successfully configured CGMA by CMake in Windows?
Thanks,
Zhanghong Tang
--- On Tue, 11/6/12, Jane Hu <janejhu(a)gmail.com> wrote:
From: Jane Hu <janejhu(a)gmail.com>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: "Iulian Grindeanu" <iulian(a)mcs.anl.gov>, cgma-dev(a)mcs.anl.gov
Date: Tuesday, November 6, 2012, 12:57 AM
Sorry, I forgot the attachment.
On Mon, Nov 5, 2012 at 10:49 AM, Jane Hu <janejhu(a)gmail.com> wrote:
Hello Zhanghong,
I understand that at some point, you wanted a simple test for boolean operation for a box and a sphere.
I work on Linux machine, and am currently running on cgm-occ code from our trunk location. I just built a small tests of size 1 block and a radius=0.7 sphere and got results for intersection and subtractions stored in intersection.brep and box-sphere.brep(for box subtracts sphere) and sphere-box.brep( sphere subtracts box).
I hope you good luck in your build (sorry I can't be much help on your cmake build,) and I hope the testcase and result files can help you save some time testing.
Jane
On Mon, Nov 5, 2012 at 9:07 AM, Zhanghong Tang <tangzhanghong98(a)yahoo.com> wrote:
Dear Dr. Grindeanu,
Thank you very much for your kindly reply. I attached the VS2010 project created by CMake (64bit.zip). Except that I provided the include and library folders of OOC when configure the CMake, I used all default values to generate VS2010 project.
The libraries can be built successfully, however, it failed after I created a simple test project "cgmatest', this project and source code are also attached ('cgmatest.zip').
Thanks,
Zhanghong Tang
--- On Mon, 11/5/12, Iulian Grindeanu <iulian(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com>
Cc: cgma-dev(a)mcs.anl.gov
Date: Monday, November 5, 2012, 10:40 PM
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
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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit +
VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: "CGMA Development" <cgma-dev(a)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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: cgma-dev(a)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@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)
2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)"
(??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@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
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are
called according to his purpose, all things are working together for
good." (Romans 8:28)
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are
called according to his purpose, all things are working together for
good." (Romans 8:28)
1
0
Sorry, I forgot the attachment.
On Mon, Nov 5, 2012 at 10:49 AM, Jane Hu <janejhu(a)gmail.com> wrote:
> Hello Zhanghong,
>
> I understand that at some point, you wanted a simple test for boolean
> operation for a box and a sphere.
>
> I work on Linux machine, and am currently running on cgm-occ code from our
> trunk location. I just built a small tests of size 1 block and a radius=0.7
> sphere and got results for intersection and subtractions stored in
> intersection.brep and box-sphere.brep(for box subtracts sphere) and
> sphere-box.brep( sphere subtracts box).
>
> I hope you good luck in your build (sorry I can't be much help on your
> cmake build,) and I hope the testcase and result files can help you save
> some time testing.
>
> Jane
>
>
> On Mon, Nov 5, 2012 at 9:07 AM, Zhanghong Tang <tangzhanghong98(a)yahoo.com>wrote:
>
>> Dear Dr. Grindeanu,
>>
>> Thank you very much for your kindly reply. I attached the VS2010 project
>> created by CMake (64bit.zip). Except that I provided the include and
>> library folders of OOC when configure the CMake, I used all default values
>> to generate VS2010 project.
>>
>> The libraries can be built successfully, however, it failed after I
>> created a simple test project "cgmatest', this project and source code are
>> also attached ('cgmatest.zip').
>>
>> Thanks,
>> Zhanghong Tang
>>
>>
>>
>>
>> --- On *Mon, 11/5/12, Iulian Grindeanu <iulian(a)mcs.anl.gov>* wrote:
>>
>>
>> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
>> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
>> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
>> Cc: cgma-dev(a)mcs.anl.gov
>> Date: Monday, November 5, 2012, 10:40 PM
>>
>>
>> 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
>>
>> ------------------------------
>>
>> 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(a)mcs.anl.gov>* wrote:
>>
>>
>> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
>> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
>> To: "Zhanghong Tang" <tangzhanghong98(a)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(a)mcs.anl.gov>* wrote:
>>
>>
>> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
>> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
>> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
>> Cc: "CGMA Development" <cgma-dev(a)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(a)mcs.anl.gov>* wrote:
>>
>>
>> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
>> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
>> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
>> Cc: cgma-dev(a)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@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)
>> 2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol
>> "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
>> *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
>> 2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external
>> symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class
>> ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
>> 2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external
>> symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class
>> ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
>> 2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external
>> symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class
>> ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@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
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Jane Hu
>
> Asst. Researcher
> Dept. of Engineering Physics
> UW @ Madison
>
> "And we know that for those who love God, that is, for those who are
> called according to his purpose, all things are working together for good."
> (Romans 8:28)
>
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
1
0
05 Nov '12
Dear Dr. Hu,
Could you please send me the test code and result file?
Thanks,
Zhanghong Tang
--- On Tue, 11/6/12, Jane Hu <janejhu(a)gmail.com> wrote:
From: Jane Hu <janejhu(a)gmail.com>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: "Iulian Grindeanu" <iulian(a)mcs.anl.gov>, cgma-dev(a)mcs.anl.gov
Date: Tuesday, November 6, 2012, 12:49 AM
Hello Zhanghong,
I understand that at some point, you wanted a simple test for boolean operation for a box and a sphere.
I work on Linux machine, and am currently running on cgm-occ code from our trunk location. I just built a small tests of size 1 block and a radius=0.7 sphere and got results for intersection and subtractions stored in intersection.brep and box-sphere.brep(for box subtracts sphere) and sphere-box.brep( sphere subtracts box).
I hope you good luck in your build (sorry I can't be much help on your cmake build,) and I hope the testcase and result files can help you save some time testing.
Jane
On Mon, Nov 5, 2012 at 9:07 AM, Zhanghong Tang <tangzhanghong98(a)yahoo.com> wrote:
Dear Dr. Grindeanu,
Thank you very much for your kindly reply. I attached the VS2010 project created by CMake (64bit.zip). Except that I provided the include and library folders of OOC when configure the CMake, I used all default values to generate VS2010 project.
The libraries can be built successfully, however, it failed after I created a simple test project "cgmatest', this project and source code are also attached ('cgmatest.zip').
Thanks,
Zhanghong Tang
--- On Mon, 11/5/12, Iulian Grindeanu <iulian(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang"
<tangzhanghong98(a)yahoo.com>
Cc: cgma-dev(a)mcs.anl.gov
Date: Monday, November 5, 2012, 10:40 PM
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
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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit +
VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: "CGMA Development" <cgma-dev(a)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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: cgma-dev(a)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@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)
2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)"
(??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@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
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are
called according to his purpose, all things are working together for
good." (Romans 8:28)
1
0
Hello Zhanghong,
I understand that at some point, you wanted a simple test for boolean
operation for a box and a sphere.
I work on Linux machine, and am currently running on cgm-occ code from our
trunk location. I just built a small tests of size 1 block and a radius=0.7
sphere and got results for intersection and subtractions stored in
intersection.brep and box-sphere.brep(for box subtracts sphere) and
sphere-box.brep( sphere subtracts box).
I hope you good luck in your build (sorry I can't be much help on your
cmake build,) and I hope the testcase and result files can help you save
some time testing.
Jane
On Mon, Nov 5, 2012 at 9:07 AM, Zhanghong Tang <tangzhanghong98(a)yahoo.com>wrote:
> Dear Dr. Grindeanu,
>
> Thank you very much for your kindly reply. I attached the VS2010 project
> created by CMake (64bit.zip). Except that I provided the include and
> library folders of OOC when configure the CMake, I used all default values
> to generate VS2010 project.
>
> The libraries can be built successfully, however, it failed after I
> created a simple test project "cgmatest', this project and source code are
> also attached ('cgmatest.zip').
>
> Thanks,
> Zhanghong Tang
>
>
>
>
> --- On *Mon, 11/5/12, Iulian Grindeanu <iulian(a)mcs.anl.gov>* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
> Cc: cgma-dev(a)mcs.anl.gov
> Date: Monday, November 5, 2012, 10:40 PM
>
>
> 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
>
> ------------------------------
>
> 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(a)mcs.anl.gov>* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)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(a)mcs.anl.gov>* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
> Cc: "CGMA Development" <cgma-dev(a)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(a)mcs.anl.gov>* wrote:
>
>
> From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
> Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
> To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
> Cc: cgma-dev(a)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@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)
> 2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol
> "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
> *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
> 2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol
> "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
> *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
> 2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol
> "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity
> *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
> 2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external
> symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class
> ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@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
>
>
>
>
>
>
>
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
1
0
05 Nov '12
Dear Dr. Grindeanu,
Thank you very much for your kindly reply. I attached the VS2010 project created by CMake (64bit.zip). Except that I provided the include and library folders of OOC when configure the CMake, I used all default values to generate VS2010 project.
The libraries can be built successfully, however, it failed after I created a simple test project "cgmatest', this project and source code are also attached ('cgmatest.zip').
Thanks,
Zhanghong Tang
--- On Mon, 11/5/12, Iulian Grindeanu <iulian(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: cgma-dev(a)mcs.anl.gov
Date: Monday, November 5, 2012, 10:40 PM
#yiv776925597 p {margin:0;}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
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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Date: Sunday, November 4, 2012, 12:51 AM
#yiv776925597 p {margin:0;}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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: "CGMA Development" <cgma-dev(a)mcs.anl.gov>
Date: Saturday, November 3, 2012, 10:30 PM
#yiv776925597 p {margin:0;}
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(a)mcs.anl.gov> wrote:
From: Iulian Grindeanu <iulian(a)mcs.anl.gov>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?
To: "Zhanghong Tang" <tangzhanghong98(a)yahoo.com>
Cc: cgma-dev(a)mcs.anl.gov
Date: Friday, November 2, 2012, 11:21 PM
#yiv776925597 p {margin:0;}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@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)
2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)"
(??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)
2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@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
1
0