Hello,<br><br>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.<br><br>Thanks for your help!<br>
<br>Jane<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Zhanghong Tang</b> <span dir="ltr"><<a href="mailto:tangzhanghong98@yahoo.com">tangzhanghong98@yahoo.com</a>></span><br>
Date: Tue, Nov 6, 2012 at 9:57 AM<br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>To: Jane Hu <<a href="mailto:janejhu@gmail.com">janejhu@gmail.com</a>><br><br><br><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font:inherit" valign="top">Dear Dr. Hu,<br><br>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 (<a href="http://libcgm.la" target="_blank">libcgm.la</a>). Could you please update the 'CMakeLists.txt' for me to let the CMake generate that project?<div class="im">
<br><br>Thanks,<br>Zhanghong Tang<br><br><br><br>--- On <b>Tue, 11/6/12, Jane Hu <i><<a href="mailto:janejhu@gmail.com" target="_blank">janejhu@gmail.com</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<div class="im"><br>From: Jane Hu <<a href="mailto:janejhu@gmail.com" target="_blank">janejhu@gmail.com</a>><br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>To: "Zhanghong Tang" <<a href="mailto:tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>><br>
</div>Date: Tuesday, November 6, 2012, 11:45 PM<div><div class="h5"><br><br><div>Yes, you should add <a rel="nofollow" href="http://libcgm.la" target="_blank">libcgm.la</a>. Have you been
successful?<br><br>Jane<br><br><div>On Mon, Nov 5, 2012 at 5:26 PM, Zhanghong Tang <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Dear Dr. Hu,<br><br>
Thank you very much for your kindly reply. From the 'CMakeLists.txt' I can only generate the following libs:<div><br>cgma_init.lib<br>cholla.lib<br>cubit_facet.lib<br>cubit_facetboolstub.lib<br>cubit_geom.lib<br>
</div>cubit_OOC.lib<br>cubit_util.lib<br>cubit_virtual.lib<br><br>compare to the libs you listed, I think the following lib should also be added from 'CMakeLists.txt':<br><br>cgm.lib (<a rel="nofollow" href="http://libcgm.la" target="_blank">libcgm.la</a>)<div>
<br><br>Thanks,<br>Zhanghong Tang<br><br><br>--- On <b>Tue, 11/6/12, Jane Hu <i><<a rel="nofollow" href="http://mc/compose?to=janejhu@gmail.com" target="_blank">janejhu@gmail.com</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<div><br>From: Jane Hu <<a rel="nofollow" href="http://mc/compose?to=janejhu@gmail.com" target="_blank">janejhu@gmail.com</a>><br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>To: "Zhanghong Tang" <<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>><br>
</div>Cc: <a rel="nofollow" href="http://mc/compose?to=cgma-dev@mcs.anl.gov" target="_blank">cgma-dev@mcs.anl.gov</a><br>Date: Tuesday, November
6, 2012, 1:35 AM<div><div><br><br><div>Will adding following library work for you?<br><br>--- Makefile.am_bck 2012-11-05 11:24:26.000000000 -0600<br>+++ Makefile.am 2012-11-05 11:28:50.000000000 -0600<br>
@@ -27,7 +27,11 @@<br><br> check_PROGRAMS = $(TESTS)<br>
<br>-LDADD = ../<a rel="nofollow" href="http://libcgm.la" target="_blank">libcgm.la</a> ../geom/<a rel="nofollow" href="http://libcubit_geom.la" target="_blank">libcubit_geom.la</a> ../util/<a rel="nofollow" href="http://libcubit_util.la" target="_blank">libcubit_util.la</a> <a rel="nofollow" href="http://libcgm_test.la" target="_blank">libcgm_test.la</a> ../geom/virtual/<a rel="nofollow" href="http://libcubit_virtual.la" target="_blank">libcubit_virtual.la</a> ../geom/facet/<a rel="nofollow" href="http://libcubit_facet.la" target="_blank">libcubit_facet.la</a> $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)<br>
+ LDADD = ../<a rel="nofollow" href="http://libcgm.la" target="_blank">libcgm.la</a> ../geom/<a rel="nofollow" href="http://libcubit_geom.la" target="_blank">libcubit_geom.la</a> ../init/<a rel="nofollow" href="http://libcgma_init.la" target="_blank">libcgma_init.la</a> ../util/<a rel="nofollow" href="http://libcubit_util.la" target="_blank">libcubit_util.la</a> <a rel="nofollow" href="http://libcgm_test.la" target="_blank">libcgm_test.la</a> ../geom/virtual/<a rel="nofollow" href="http://libcubit_virtual.la" target="_blank">libcubit_virtual.la</a> ../geom/facet/<a rel="nofollow" href="http://libcubit_facet.la" target="_blank">libcubit_facet.la</a> $(CGM_EXT_LIBS) $(CGM_EXT_LDFLAGS) $(CGM_EXT_LTFLAGS)<br>
<br> noinst_LTLIBRARIES = <a rel="nofollow" href="http://libcgm_test.la" target="_blank">libcgm_test.la</a><br> libcgm_test_la_SOURCES = TestUtilities.hpp \<br><br>Jane<br><br><br><br><div>On Mon, Nov 5, 2012 at 11:10 AM, Zhanghong Tang <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Dear Dr. Hu,<br><br>
Thank you very much for your sample code. I noticed that in the main function you also have the following line:<br> CubitStatus status = InitCGMA::initialize_cgma("OCC");<br><br><br>which will pop up error on my machine. So I still missed something. <br>
<br>Is there anyone who have successfully configured CGMA by CMake in Windows?<br><br>Thanks,<br>Zhanghong Tang<br><br><br><div><br>--- On <b>Tue, 11/6/12, Jane Hu <i><<a rel="nofollow" href="http://mc/compose?to=janejhu@gmail.com" target="_blank">janejhu@gmail.com</a>></i></b> wrote:<br>
</div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><br>From: Jane Hu <<a rel="nofollow" href="http://mc/compose?to=janejhu@gmail.com" target="_blank">janejhu@gmail.com</a>><div>
<br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>
To: "Zhanghong Tang" <<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>><br></div><div>Cc: "Iulian Grindeanu" <<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>>, <a rel="nofollow" href="http://mc/compose?to=cgma-dev@mcs.anl.gov" target="_blank">cgma-dev@mcs.anl.gov</a><br>
</div>Date: Tuesday, November 6,
2012, 12:57 AM<div><div><br><br><div>Sorry, I forgot the attachment.<br><br><br><div>On Mon, Nov 5, 2012 at 10:49 AM, Jane Hu <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=janejhu@gmail.com" target="_blank">janejhu@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Zhanghong,<br><br>I understand that at some point, you wanted a simple test for boolean operation for a box and a sphere.<br>
<br>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). <br>
<br>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.<br><br>Jane<div><div><br>
<br><div>On Mon, Nov 5, 2012 at 9:07 AM, Zhanghong Tang <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Dear Dr. Grindeanu,<br>
<br>Thank you very much for 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.<br>
<br>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').<br><br>Thanks,<br>Zhanghong Tang<div>
<br><br><br><br>--- On <b>Mon, 11/5/12, Iulian Grindeanu <i><<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<div><br>From: Iulian Grindeanu <<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>><br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>
To: "Zhanghong Tang"
<<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>><br>Cc: <a rel="nofollow" href="http://mc/compose?to=cgma-dev@mcs.anl.gov" target="_blank">cgma-dev@mcs.anl.gov</a><br>
</div>Date: Monday, November 5, 2012, 10:40 PM<div>
<div><br><br><div><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Hello,<br>How did you configure? Even if you use cmake, at some point you need to have a configuration step.<br>
You can see what we build every night here:<br><a rel="nofollow" href="http://gnep.mcs.anl.gov:8010/waterfall?category=cgm" target="_blank">http://gnep.mcs.anl.gov:8010/waterfall?category=cgm</a><br>Those are all built on a Linux compute node, ubuntu 10.04, 64-bit. <br>
The configuration closest to yours' is probably cgm-occ or cgm-occ-sta.<br>These are built on merge cubit 12.2 branch, with occ version 6.5.3<br><a rel="nofollow" href="http://gnep.mcs.anl.gov:8010/builders/cgm-occ" target="_blank">http://gnep.mcs.anl.gov:8010/builders/cgm-occ</a><br>
or <br><a rel="nofollow" href="http://gnep.mcs.anl.gov:8010/builders/cgm-occ-sta" target="_blank">http://gnep.mcs.anl.gov:8010/builders/cgm-occ-sta</a><br><br>If you send your config.log file (or equivalent?) , we may have some clues of what is not working.<br>
<br>Best
Regards,<br>Iulian<br><br><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">
Dear all,<br><br>I have successfully built the project 'cubit_OOC' after I used the version 12.2 from here:<br><a rel="nofollow" href="https://svn.mcs.anl.gov/repos/ITAPS/cgm/branches/Version12.2/" target="_blank">https://svn.mcs.anl.gov/repos/ITAPS/cgm/branches/Version12.2/</a><br>
<br>However, after I built a simple example "\test\operation.cpp" and run it, the following error displayed:<br>ERROR: Invalid or unsupported engine: 'OCC'<br><br>Is there anything I missed?<br><br>Thanks,<br>
Zhanghong Tang<br><br><br><br>--- On <b>Sun, 11/4/12, Iulian Grindeanu <i><<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<br>From: Iulian Grindeanu <<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>><br>Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit +
VS2010?<br>To: "Zhanghong Tang" <<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>><br>Date: Sunday, November 4, 2012, 12:51 AM<br><br>
<div><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">
Hello,<br>It would be good if you can make it work.<br>How did you configure ? Using ccmake or autotools in cygwin?<br><br>You should configure with-occ OR with-cubit, if you have cubit.<br>It seems that you installed occ, so configure ONLY with-occ.<br>
I will be out of email until Monday<br><br>Iulian<br><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">
Dear Dr. Grindeanu,<br><br>Thank you very much for pointing out my problem. I thought that the CGMA can work without any other package. <br>Now I have
installed Open CASCADE Technology 6.5.3 and rebuild the CGMA project (reset the path by CMake and create the VS2010 projects), the
following error displayed when build the cubit_OCC project:<br><br>1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------<br>1>Build started 2012/11/3 23:41:53.<br>1>InitializeBuildStatus:<br>
1> Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.<br>1>FinalizeBuildStatus:<br>1> Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".<br>
1> Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".<br>1><br>1>Build succeeded.<br>1><br>1>Time Elapsed
00:00:00.06<br>2>------ Build started: Project: cubit_OCC, Configuration: Debug x64 ------<br>2>Build started 2012/11/3 23:41:53.<br>2>InitializeBuildStatus:<br>2> Touching "cubit_OCC.dir\Debug\cubit_OCC.unsuccessfulbuild".<br>
2>CustomBuild:<br>2> All outputs are up-to-date.<br>2>ClCompile:<br>2> OCCModifyEngine.cpp<br>2>E:\cgma-12.2.0b1\util\CubitMessage.hpp(400): warning C4138: '*/' found outside of comment<br>2>E:\cgma-12.2.0b1\geom\GeometryQueryEngine.hpp(259): warning C4138: '*/' found outside of comment<br>
2>E:\cgma-12.2.0b1\geom\GeometryQueryEngine.hpp(260): warning C4138: '*/' found outside of comment<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(715): error C2440: '<function-style-cast>' : cannot convert from 'Handle_Geom_RectangularTrimmedSurface' to 'BRepBuilderAPI_MakeFace'<br>
2> No constructor could take the source type, or
constructor overload resolution was ambiguous<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(725): error C2440: '<function-style-cast>' : cannot convert from 'Handle_Geom_RectangularTrimmedSurface' to 'BRepBuilderAPI_MakeFace'<br>
2> No constructor could take the source type, or constructor overload resolution was ambiguous<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(744): error C2665: 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace' : none of the 23 overloads could convert all the argument types<br>
2> C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(104): could be 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Pln &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>
2>
C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(106): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Cylinder &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>
2> C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(108): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Cone &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>
2> C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(110): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Sphere &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>
2>
C:\OpenCASCADE6.5.3\ros\inc\BRepBuilderAPI_MakeFace.hxx(112): or 'BRepBuilderAPI_MakeFace::BRepBuilderAPI_MakeFace(const gp_Torus &,const Standard_Real,const Standard_Real,const Standard_Real,const Standard_Real)'<br>
2> while trying to match the argument list '(Handle_Geom_BezierSurface, double, double, double, double)'<br>2>..\..\..\geom\OCC\OCCModifyEngine.cpp(2267): warning C4800: 'Standard_Boolean' : forcing value to bool 'true' or 'false' (performance warning)<br>
2>..\..\..\geom\OCC\OCCModifyEngine.cpp(7913): error C2440: '<function-style-cast>' : cannot convert from 'Handle_Geom_RectangularTrimmedSurface' to 'BRepBuilderAPI_MakeFace'<br>2> No constructor could take the source type, or constructor overload resolution was ambiguous<br>
2><br>2>Build FAILED.<br>2><br>2>Time
Elapsed 00:00:01.52<br>3>------ Build started: Project: ALL_BUILD, Configuration: Debug x64 ------<br>3>Build started 2012/11/3 23:41:54.<br>3>InitializeBuildStatus:<br>3> Creating "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild" because "AlwaysCreate" was specified.<br>
3>CustomBuild:<br>3> Build all projects<br>3>FinalizeBuildStatus:<br>3> Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.unsuccessfulbuild".<br>3> Touching "x64\Debug\ALL_BUILD\ALL_BUILD.lastbuildstate".<br>
3><br>3>Build succeeded.<br>3><br>3>Time Elapsed 00:00:02.02<br>4>------ Skipped Build: Project: INSTALL, Configuration: Debug x64 ------<br>4>Project not selected to build for this solution configuration <br>
========== Build: 2 succeeded, 1 failed, 7 up-to-date, 1 skipped ==========<br><br><br>Could you please take a look at it for me?<br><br><br>Thanks,<br>Zhanghong Tang<br><br><br><br>--- On <b>Sat, 11/3/12, Iulian
Grindeanu <i><<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<br>From: Iulian Grindeanu <<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>><br>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>To: "Zhanghong Tang" <<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>><br>
Cc: "CGMA Development" <<a rel="nofollow" href="http://mc/compose?to=cgma-dev@mcs.anl.gov" target="_blank">cgma-dev@mcs.anl.gov</a>><br>
Date: Saturday, November 3, 2012, 10:30 PM<br><br><div><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><br><br><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Dear Dr. Grindeanu,<br><br>Thank you very much for your kindly reply. With the
help of CMake I have successfully build the libraries. There are 7 libs generated:<br>cgma_init.lib<br>cholla.lib<br>cubit_facet.lib<br>cubit_facetboolstub.lib<br>cubit_geom.lib<br>cubit_util.lib<br>cubit_virtual.lib<br>
<br></td></tr></tbody></table></blockquote>Hello,<br>So I assume you are on the main branch.<br>You can't use CGM without a geometry engine. Did you read my previous e-mail?<br><br>You will need to configure with OCC or Cubit. <br>
Sorry, I can't be of more help. <br>Iulian<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">
I tried to build a simple test "brick.cpp", however, there are some errors when run the example:<br><br>Facet-based geometry modification is a beta capability.<br>ERROR: This capability is currently disabled.<br>
To enable this capability, issue the command 'set developer
commands on'.<br>ERROR: In GeometryModifyTool::brick<br> Problem creating a brick.<br>Assertion failed: brick != 0, file ..\test\brick.cpp, line 42<br><br><br>I would like to do a simple test:<br>1) build a box and a sphere with both center at (0,0,0) and size
1;<br>2) do boolean operations such as intersection between the box and sphere;<br>3) output the result to an OFF file.<br><br>Could anyone give me such a simple example?<br><br>Thanks,<br>Zhanghong Tang<br><br><br>--- On <b>Fri, 11/2/12, Iulian Grindeanu <i><<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>></i></b> wrote:<br>
<blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><br>From: Iulian Grindeanu <<a rel="nofollow" href="http://mc/compose?to=iulian@mcs.anl.gov" target="_blank">iulian@mcs.anl.gov</a>><br>
Subject: Re: [cgma-dev] How to build the CGMA on Windows 7 64bit + VS2010?<br>
To: "Zhanghong Tang" <<a rel="nofollow" href="http://mc/compose?to=tangzhanghong98@yahoo.com" target="_blank">tangzhanghong98@yahoo.com</a>><br>Cc: <a rel="nofollow" href="http://mc/compose?to=cgma-dev@mcs.anl.gov" target="_blank">cgma-dev@mcs.anl.gov</a><br>
Date: Friday, November 2, 2012, 11:21 PM<br>
<br><div><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Hello,<br>I don't know if anybody tried building on Windows, maybe Jane or Tim know.<br>You have to configure
with a geometric engine. If you don't have Cubit for your platform, you will need to configure with OCC<br>It seems that you use cygwin. I know that OCC can be build on Windows, on VS 2010.<br>(<a rel="nofollow" href="http://www.opencascade.org/getocc/require/" target="_blank">http://www.opencascade.org/getocc/require/</a>)<br>
<br>You then can try configuring on cygwin with occ. And then look at Makefiles generated to see what would be needed for projects in VS. Or is there a cmake-based build? I think that would be easier to port to Windows.<br>
<br>Iulian<br><br><br><hr><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Dear all,<br>
<br>I am trying to build the CGMA on Windows 7 64bit + VS2010. I have attached the project. However, there are hundreds of errors such as:<br><br>2>CGMAD.lib(DAG.obj) : error LNK2019: unresolved external symbol "public: __cdecl
DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ) referenced in function "public: enum CubitStatus __cdecl DAG::get_children_at_level(class DLIList<class ModelEntity *> &,int,class DLIList<class ModelEntity *> &)" (?get_children_at_level@DAG@@QEAA?AW4CubitStatus@@AEAV?$DLIList@PEAVModelEntity@@@@H0@Z)<br>
2>CGMAD.lib(CAActuateSet.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)"
(??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br>2>CGMAD.lib(PartitionTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br>
2>CGMAD.lib(CompositeTool.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br>
2>CGMAD.lib(TopologyEntity.obj) : error LNK2001: unresolved external symbol "public: __cdecl DLIList<class ModelEntity *>::~DLIList<class ModelEntity *>(void)" (??1?$DLIList@PEAVModelEntity@@@@QEAA@XZ)<br>
<br><br>Could anyone help me to take a look at it and give me some hints on how to setup the project or modify some code to successfully build the project?<br><br>Thanks,<br>Zhanghong
Tang<br><br><br></td></tr></tbody></table></blockquote><br></div></div></div></blockquote></td></tr></tbody></table></blockquote><br></div></div></div></blockquote></td></tr></tbody></table></blockquote><br></div></div>
</div></blockquote></td></tr></tbody></table></blockquote><br></div></div></div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>
Jane Hu<br>
<br>
Asst. Researcher<br>
Dept. of Engineering Physics<br>
UW @ Madison<br>
<br>
"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)<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Jane Hu<br>
<br>
Asst. Researcher<br>
Dept. of Engineering Physics<br>
UW @ Madison<br>
<br>
"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)<br>
</div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br><br clear="all"><br>-- <br>Jane Hu<br>
<br>
Asst. Researcher<br>
Dept. of Engineering Physics<br>
UW @ Madison<br>
<br>
"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)<br>
</div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br><br clear="all"><br>-- <br>Jane Hu<br>
<br>
Asst. Researcher<br>
Dept. of Engineering Physics<br>
UW @ Madison<br>
<br>
"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)<br>
</div></div></div></blockquote></td></tr></tbody></table></div><br><br clear="all"><br>-- <br>Jane Hu<br>
<br>
Asst. Researcher<br>
Dept. of Engineering Physics<br>
UW @ Madison<br>
<br>
"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)<br>