Boost C++ Libraries: Ticket #2921: xinclude links incorrect https://svn.boost.org/trac10/ticket/2921 <p> I'm trying to generate docs for proto manually. I'm on the trunk. Proto's 'proto.qbk' contains the line </p> <p> [xinclude reference.xml] </p> <p> which is in the same directory as proto.qbk itself: </p> <p> % ls -l /home/troy/Projects/boost/trunk/src/libs/proto/doc/proto.qbk -rw-r--r-- 1 troy troy 11250 Jan 24 06:54 /home/troy/Projects/boost/trunk/src/libs/proto/doc/proto.qbk </p> <p> % ls -l /home/troy/Projects/boost/trunk/src/libs/proto/doc/reference.xml -rw-r--r-- 1 troy troy 36374 Jan 24 06:54 /home/troy/Projects/boost/trunk/src/libs/proto/doc/reference.xml </p> <p> I cd to a build directory parallel to the source tree, and generate the xml with quickbook. I've hacked some couts into the xinclude action: </p> <p> % cd /home/troy/Projects/boost/trunk/build/libs/proto/doc &amp;&amp; ../../../bin/quickbook --output-file=proto.xml /home/troy/Projects/boost/trunk/src/libs/proto/doc/proto.qbk Generating Output File: proto.xml infile=/home/troy/Projects/boost/trunk/src/libs/proto/doc/proto.qbk outdir=/home/troy/Projects/boost/trunk/build/libs/proto/doc/. returning path=../../../../../src/libs/proto/doc/reference.xml </p> <p> I doublecheck the path to reference.xml in the generated proto.xml: </p> <p> % grep reference.xml proto.xml </p> <blockquote> <p> &lt;xi:include href=&#34;../../../../../src/libs/proto/doc/reference.xml&#34; /&gt; </p> </blockquote> <p> And I check the path: </p> <p> % ls ../../../../../src ls: cannot access ../../../../../src: No such file or directory </p> <p> Wrong. There is one ../ too many: </p> <p> % ls ../../../../src <a class="missing wiki">BuildSlave</a>.cmake Jamroot Welcome.txt boost/ boost.png doc/ libs/ project-config.jam tools/ CMakeLists.txt LICENSE_1_0.txt bin.v2/ boost-build.jam bootstrap.sh* index.htm more/ rst.css wiki/ INSTALL README.txt bjam* boost.css dist/ index.html people/ status/ </p> <p> workaround: use absolute paths </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2921 Trac 1.4.3 Daniel James Sun, 12 Apr 2009 12:55:37 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2921#comment:1 https://svn.boost.org/trac10/ticket/2921#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/52237" title="Fix calculate_relative_path When outdir == &#34;.&#34; ...">[52237]</a> in trunk, <a class="changeset" href="https://svn.boost.org/trac10/changeset/52345" title="Merge various documentation changes. Merged revisions ...">[52345]</a> in release. </p> Ticket