building_your_application.htm
来自「acis说明文档」· HTM 代码 · 共 909 行 · 第 1/5 页
HTM
909 行
<li class="toclevel-3"><a href="#Note_Regarding_Building_and_Using_ACIS_Scheme_AIDE_Program_on_Macintosh"><span class="tocnumber">2.3.1</span> <span class="toctext">Note Regarding Building and Using ACIS Scheme AIDE Program on Macintosh</span></a><ul><li class="toclevel-4"><a href="#ACIS_Dynamic_Libraries"><span class="tocnumber">2.3.1.1</span> <span class="toctext">ACIS Dynamic Libraries</span></a></li><li class="toclevel-4"><a href="#Scheme_Initialization_File"><span class="tocnumber">2.3.1.2</span> <span class="toctext">Scheme Initialization File</span></a></li><li class="toclevel-4"><a href="#Loading_acisinit.scm"><span class="tocnumber">2.3.1.3</span> <span class="toctext">Loading acisinit.scm</span></a></li><li class="toclevel-4"><a href="#Scheme_Static_Libraries"><span class="tocnumber">2.3.1.4</span> <span class="toctext">Scheme Static Libraries</span></a></li></ul></li></ul></li></ul></li><li class="toclevel-1"><a href="#Building_the_HOOPS.2FACIS_Bridge"><span class="tocnumber">3</span> <span class="toctext">Building the HOOPS/ACIS Bridge</span></a><ul><li class="toclevel-2"><a href="#HOOPS.2FACIS_Bridge_Projects_and_Makefiles"><span class="tocnumber">3.1</span> <span class="toctext">HOOPS/ACIS Bridge Projects and Makefiles</span></a></li><li class="toclevel-2"><a href="#Building_the_SpaHPart.2C_SpaHBridge.2C_and_admhoops_Libraries_on_Windows"><span class="tocnumber">3.2</span> <span class="toctext">Building the SpaHPart, SpaHBridge, and admhoops Libraries on Windows</span></a><ul><li class="toclevel-3"><a href="#Microsoft_Visual_C.2B.2B_6.0"><span class="tocnumber">3.2.1</span> <span class="toctext">Microsoft Visual C++ 6.0</span></a></li><li class="toclevel-3"><a href="#Microsoft_Visual_Studio_.NET_7.1"><span class="tocnumber">3.2.2</span> <span class="toctext">Microsoft Visual Studio .NET 7.1</span></a></li><li class="toclevel-3"><a href="#Microsoft_Visual_C.2B.2B_8.0_.28NT_VFailed_to_parse_.28Missing_texvc_executable.3B_please_see_math.2FREADME_to_configure..29:_C_8.0A_and_NT_AMD_64.29"><span class="tocnumber">3.2.3</span> <span class="toctext">Microsoft Visual C++ 8.0 (NT_VFailed to parse (Missing texvc executable; please see math/README to configure.): C_8 and NT_AMD_64)</span></a></li></ul></li><li class="toclevel-2"><a href="#Building_the_SpaHPart.2C_SpaHBridge.2C_and_admhoops_Libraries_on_UNIX"><span class="tocnumber">3.3</span> <span class="toctext">Building the SpaHPart, SpaHBridge, and admhoops Libraries on UNIX</span></a></li><li class="toclevel-2"><a href="#Building_the_SpaHPart.2C_SpaHBridge.2C_and_admhoops_Libraries_on_Mac_OS_X"><span class="tocnumber">3.4</span> <span class="toctext">Building the SpaHPart, SpaHBridge, and admhoops Libraries on Mac OS X</span></a></li></ul></li><li class="toclevel-1"><a href="#Building_as_a_Standalone_Application"><span class="tocnumber">4</span> <span class="toctext">Building as a Standalone Application</span></a></li></ul></li></ul></td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script><a name="Compiler_Flags_and_Preprocessor_Directives"></a><h1> <span class="mw-headline"> Compiler Flags and Preprocessor Directives </span></h1><table class="wikitable"><tr><th>Pattform </th><th> Compiler </th><th> Flags and Directives</th></tr><tr><td>Windows 32-bit</td><td>Microsoft Visual Studio 6.0 SP5.0</td><td><a href="/r18/index.php?title=Compiler_flags_-_Windows_32-bit._Visual_Studio_6.0_SP5.0&action=edit" class="new" title="Compiler flags - Windows 32-bit. Visual Studio 6.0 SP5.0">Compiler flags - Windows 32-bit. Visual Studio 6.0 SP5.0</a></td></tr><tr><td> Windows 32-bit</td><td>Microsoft Visual C++ .NET 2003</td><td><a href="/r18/index.php?title=Compiler_flags_-_Windows_32-bit_-_Visual_C%2B%2B_.NET_2003&action=edit" class="new" title="Compiler flags - Windows 32-bit - Visual C++ .NET 2003">Compiler flags - Windows 32-bit - Visual C++ .NET 2003</a></td></tr><tr><td> Windows 32-bit</td><td> Microsoft Visual C++ 2005</td><td> <a href="/r18/index.php?title=Compiler_flags_-_Windows_32-bit_-_Visual_C%2B%2B_2005&action=edit" class="new" title="Compiler flags - Windows 32-bit - Visual C++ 2005">Compiler flags - Windows 32-bit - Visual C++ 2005</a></td></tr><tr><td> Windows 64-bit</td><td> Microsoft Visual C++ 2005</td><td> <a href="/r18/index.php?title=Compiler_flags_-_Windows_64-bit_-Visual_C%2B%2B_2005&action=edit" class="new" title="Compiler flags - Windows 64-bit -Visual C++ 2005">Compiler flags - Windows 64-bit -Visual C++ 2005</a></td></tr><tr><td> IBM 32-bit and 64-bit</td><td> VisualAge C++ 6.0</td><td> <a href="/r18/index.php?title=Compiler_flags_-_IBM_32-bit_and_64-bit_-_VisualAge_C%2B%2B_6.0&action=edit" class="new" title="Compiler flags - IBM 32-bit and 64-bit - VisualAge C++ 6.0">Compiler flags - IBM 32-bit and 64-bit - VisualAge C++ 6.0</a></td></tr><tr><td> HP 32-bit and 64-bit</td><td> HP aCC Version A.03.52</td><td> <a href="/r18/index.php?title=Compiler_flags_-_HP_32-bit_and_64-bit_-_HP_aCC_Version_A.03.52&action=edit" class="new" title="Compiler flags - HP 32-bit and 64-bit - HP aCC Version A.03.52">Compiler flags - HP 32-bit and 64-bit - HP aCC Version A.03.52</a></td></tr><tr><td> Linux 32-bit</td><td> GNU C++ gcc 3.2.3</td><td> <a href="/r18/index.php?title=Compiler_flags_-_Linux_32-bit_-GNU_C%2B%2B_gcc_3.2.3&action=edit" class="new" title="Compiler flags - Linux 32-bit -GNU C++ gcc 3.2.3">Compiler flags - Linux 32-bit -GNU C++ gcc 3.2.3</a></td></tr><tr><td> Linux 64-bit</td><td> GNU C++ gcc 3.2.3</td><td> <a href="/r18/index.php?title=Compiler_flags_-_Linux_64-bit_-GNU_C%2B%2B_gcc_3.2.3&action=edit" class="new" title="Compiler flags - Linux 64-bit -GNU C++ gcc 3.2.3">Compiler flags - Linux 64-bit -GNU C++ gcc 3.2.3</a></td></tr><tr><td> Macintosh 32-bit</td><td> GNU C++ gcc 4.0.1 and XCode 2.3</td><td> <a href="/r18/index.php?title=Compiler_flags_-_Macintosh_32-bit_-_GNU_C%2B%2B_gcc_4.0.1_and_XCode_2.3&action=edit" class="new" title="Compiler flags - Macintosh 32-bit - GNU C++ gcc 4.0.1 and XCode 2.3">Compiler flags - Macintosh 32-bit - GNU C++ gcc 4.0.1 and XCode 2.3</a></td></tr><tr><td> Sun 32-bit and 64 bit</td><td> Sun ONE Studio 8</td><td> <a href="/r18/index.php?title=Compiler_flags_-_Sun_32-bit_and_64-bit_-_Sun_ONE_Studio_8&action=edit" class="new" title="Compiler flags - Sun 32-bit and 64-bit - Sun ONE Studio 8">Compiler flags - Sun 32-bit and 64-bit - Sun ONE Studio 8</a></td></tr></table><a name="Building_the_ACIS_Scheme_AIDE_Program"></a><h1> <span class="mw-headline"> Building the ACIS Scheme AIDE Program </span></h1><p>In order for you to see how to write and build an ACIS-based application, all source, projects, and makefiles for building the Scheme AIDE program on every platform have been distributed with your ACIS package.</p><p>For all platforms on which <a href="/r18/index.php/HOOPS" title="HOOPS">HOOPS</a> is supported, you may either link using the HOOPS library delivered with ACIS or using a HOOPS installation. Note that if you are relinking acis3dt against a HOOPS version other than the version included with your ACIS installation, you must also rebuild the SpaHBridge and SpaHPart libraries using the projects/makefiles in src/ha_bridge and src/ha_part.</p><blockquote class="templatequote"><div><p><i><b>Note:</b> In order to rebuild the Spatial samples, you must add your license to the sample source code. The sample source file unlock_license.cpp contains a function unlock_license() which is called by every sample at startup. Modify this file to call your application license function.</i></p></div></blockquote><a name="Building_on_Windows"></a><h2> <span class="mw-headline"> Building on Windows </span></h2><a name="Visual_Studio_C.2B.2B_6.0"></a><h3> <span class="mw-headline"> Visual Studio C++ 6.0 </span></h3><ol><li> Open a command prompt window. </li><li> Set environment variables: <dl><dd> <tt>set A3DT</tt> to <your ACIS installation>, for example, </dd><dd> <pre class="source-batch"><span class="kw3">SET</span> A3DT=c:\Progra~<span class="nu0">1</span>\Spatial\acisR17</pre></dd><dd> <tt>set HOOPS_INSTALL_DIR</tt> to <your HOOPS installation directory>, if applicable </dd></dl></li><li> Open the project file<dl><dd> <pre>cd %A3DT%\scm\acis3dt</pre></dd><dd> <pre>msdev acis3dt.dsw</pre></dd></dl></li><li> Choose the configuration (release/debug) <dl><dd> Build->Set Active Configuration <dl><dd><tt>ACIS3DT</tt> - Win32 Release </dd><dd><tt>ACIS3DT</tt> - Win32 Debug</dd></dl></dd></dl></li><li> Add optional ACIS products (if applicable) <dl><dd>Products->Settings->C/C++->Preprocessor definitions; Add: <dl><dd> <tt>ACIS_DM</tt> (for 3D <a href="/r18/index.php?title=ACIS_Deformable_Modeling&action=edit" class="new" title="ACIS Deformable Modeling">ACIS Deformable Modeling</a>)</dd><dd> <tt>ACIS_PHLV5</tt> (for 3D ACIS <a href="/r18/index.php?title=PHL_V5&action=edit" class="new" title="PHL V5">PHL V5</a>)</dd></dl></dd></dl></li><li> Add the corresponding library.<dl><dd><b>Win32 Release configuration: Release Libraries</b> <dl><dd>Select, and then clear <i>Exclude from build</i> <dl><dd> <tt>3D ACIS DM Release Lib</tt></dd><dd> <tt><a href="/r18/index.php/3D_ACIS_PHL_V5" title="3D ACIS PHL V5">3D ACIS PHL V5</a> Release Lib</tt></dd></dl></dd></dl></dd><dd><b>Win32 Debug configuration: Debug Libraries</b> <dl><dd>Select, and then clear <i>Exclude from build</i><dl><dd><tt>3D ACIS DM Debug Lib</tt></dd><dd><tt>3D ACIS PHL V5 Debug Lib</tt></dd></dl></dd></dl></dd></dl></li><li> Choose Build->Build <tt>acis3dt.exe</tt></li></ol><a name="Visual_Studio_.NET_7.1_.28NT_NET.29_and_Visual_Studio_.NET_8.0_.28NT_VFailed_to_parse_.28Missing_texvc_executable.3B_please_see_math.2FREADME_to_configure..29:_C_8.0A_and_NT_AMD_64.29"></a><h3> <span class="mw-headline"> Visual Studio .NET 7.1 (NT_NET) and Visual Studio .NET 8.0 (NT_V<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): C_8</strong> and NT_AMD_64) </span></h3><blockquote class="templatequote"><div><p><i><b>Note:</b> The SPAha_bridge, SPAha_part, and admhoops DLLs shipped with ACIS were built with HOOPS version 15.0, arch nt_i386_sln (V<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): C_7</strong>.1), arch nt_x64_v<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): c_8</strong>0 (NT_AMD_64 with V<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): C_8</strong>.0), and arch nt_i386_v<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): c_8</strong>0 (NT_V<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): C_8</strong></p><pre>with V<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): C_8</strong></pre><p>.0). The HOOPS V<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): C_6</strong></p><pre>configurations (nt_i386) have been removed from the acis3dt, ha_bridge, ha_part, and admhoops projects. The project configurations have been renamed to reflect this change.</i></pre></div></blockquote><ol><li> Open a command prompt window. </li><li> Set environment variables: <dl><dd> <tt>set A3DT</tt> to <your ACIS installation>, for example, </dd><dd> <pre class="source-batch"><span class="kw3">SET</span> A3DT=c:\Progra~<span class="nu0">1</span>\Spatial\acisR17</pre> </dd><dd> <tt>set HOOPS_INSTALL_DIR</tt> to <your HOOPS installation directory>, if applicable </dd></dl></li><li> Open the project file<dl><dd> <pre> cd %A3DT%\scm\acis3dt</pre></dd><dd> <pre> devenv acis3dt.sln (NT_NET)</pre></dd><dd> <pre> devenv acis3dt_amd_64.sln (NT_AMD_64)</pre></dd><dd> <pre> devenv acis3dt_v<math>c_8</math>.sln (NT_V<math>C_8</math>)</pre> </dd></dl></li><li> Choose one of the two available configurations: <tt>Release</tt> or <tt>Debug</tt>. </li><li> Add optional ACIS products (if applicable) <dl><dd> Open "Properties" for ACIS3DT <dl><dd> Select C/C++ - Preprocessor; Add: <dl><dd> <tt>ACIS_DM</tt> (for <a href="/r18/index.php/3D_ACIS_Deformable_Modeling" title="3D ACIS Deformable Modeling">3D ACIS Deformable Modeling</a>)</dd><dd> <tt>ACIS_PHLV5</tt> (for 3D ACIS PHL V5) </dd></dl></dd></dl></dd></dl></li><li> Add the corresponding library.<dl><dd><b>Release configuration: Release Libraries </b></dd><dd><b>(Spatial arches: <tt>NT_V<strong class='error'>Failed to parse (Missing texvc executable; please see math/README to configure.): C_8</strong></dd></dl></li></ol><p>_DLL</tt>, <tt>NT_NET_DLL</tt>, <tt>NT_AMD_64_DLL</tt>)</b> </p><ol><li><dl><dd>For each of the following libraries, open "Properties" and change "Excluded from Build" to <b>No</b>.<dl><dd> <tt>3D ACIS DM Release Lib</tt></dd><dd> <tt>3D ACIS PHL V5 Release Lib</tt>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?