Re: Help not showing in daily builds (was: Questions for a New LC user. Layers, Print window, Help files.)
Posted by
R. van Twisk on
Apr 19, 2012; 7:42pm
URL: https://forum.librecad.org/Re-Help-not-showing-in-daily-builds-was-Questions-for-a-New-LC-user-Layers-Print-window-Help-files-tp5652589p5652616.html
Scott,
I hope you didn't miss my previous mail si I will paste it again…
-------------
Scott,
make sure that this command can run fine: qcollectiongenerator LibreCADdoc.qhcp
See line 10 and 11 of : postprocess-unix.sh
It generates the helpfiles into a sqlite3 database file with the extension *.qhc and *.qch
The OSX script copies them to the right directory using the following two lines
cp librecad/support/doc/*.qhc $RESOURCEDIR/Resources/doc
cp librecad/support/doc/*.qch $RESOURCEDIR/Resources/doc
I think these two lines should be added to postprocess-unix.sh to create a complete package aswell...
The background of the script are so that the user can compile and run LibreCAD without doing a full installation.
Additionally,
Qt's help system doesn't use the 'raw' HTML source, so you only need to copy two file to get the help working.
The final package needs to depend on sqlite3
Ries
On Apr 19, 2012, at 2:29 PM, showard314 [via LibreCAD] wrote:
On Thu, Apr 19, 2012 at 3:19 PM, Scott Howard <<a href="x-msg://311/user/SendEmail.jtp?type=node&node=5652589&i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
> It's in the daily builds... someone should fix that {looks in the mirror}...
>
> I'll take a look at it
Ok, so it looks like librecad builds everything it needs in
unix/resources
which has:
doc fonts library patterns plugins qm
However, "doc" is empty
It turns out that in scripts/postprocess-unix.sh:
THISDIR="`pwd`"
LCDIR="${THISDIR}/librecad"
RESOURCEDIR="${THISDIR}/unix/resources"
TSDIR="${LCDIR}/ts"
SPTDIR="${LCDIR}/support"
DOCDIR="${SPTDIR}/doc"
then later on:
mkdir -p "${RESOURCEDIR}"/fonts
mkdir -p "${RESOURCEDIR}"/patterns
mkdir -p "${RESOURCEDIR}"/doc
cp "${SPTDIR}"/patterns/*.dxf "${RESOURCEDIR}"/patterns
cp "${SPTDIR}"/fonts/*.lff* "${RESOURCEDIR}"/fonts
we probably need
cp -a "${SPTDIR}"/docs/* "${RESOURCEDIR}"/doc
because we're never copying the docs to unix/resources
Is that right?