Browse Source

autoexplicit in tutorial

Former-commit-id: 3e080705f7ac67e7c397e37aedf6d1be273ca3c7
jalec 13 năm trước cách đây
mục cha
commit
94e1c9fdc0
1 tập tin đã thay đổi với 20 bổ sung5 xóa
  1. 20 5
      tutorial.html

+ 20 - 5
tutorial.html

@@ -175,7 +175,7 @@ img.center
           using the makefile in the <code>igl_lib</code> directory:
         </p>
         <pre><code>
-cd $IGL
+cd $IGL_LIB
 make
         </code></pre>
         <p>
@@ -209,7 +209,7 @@ Undefined symbols for architecture x86_64:
           Then you must recompile the IGL static library.
         </p>
         <pre><code>
-cd $IGL
+cd $IGL_LIB
 make
         </code></pre>
         <p>
@@ -226,9 +226,24 @@ make
           If you're using make then the following command will
           reveal each missing symbol on its own line:
         </p>
-          <pre><code>
-  make 2&gt;&1 | grep "referenced from" | sed -e "s/, referenced from.*//"
-          </code></pre>
+        <pre><code>
+make 2&gt;&1 | grep "referenced from" | sed -e "s/, referenced from.*//"
+        </code></pre>
+
+        <p>
+          Alternatively you can use the <code>autoexplicit.sh</code> function
+          which (for well organized .cpp files in the igl_lib) automatically
+          create explicit instanciations from your compiler's error messages.
+          Repeat this process until convergence:
+        </p>
+        <pre><code>
+cd /to/your/project
+make 2&gt;$IGL_LIB/make.err
+cd $IGL_LIB
+cat make.err | ./autoexplicit.sh
+make clean 
+make
+        </code></pre>
 
         <h3>Benefits of static library</h3>
         <ul>