4. Windows/cygwin
5. windows/msvc
6. Other versions of lyx (1.4.x)
-7. Troubleshooting
+7. Tips and hints
+8. Troubleshooting
1. General usage of scons
so option boost=included is recommended.
-7. Troubleshooting
+7. Tips and hints
+=================
+
+ * Using external boost libraries (install boost libraries and use
+ option boost=system) can speed up scons' starting time a lot, since
+ the boost headers will then be considered as system headers and will
+ not be included in the dependency tree.
+
+
+8. Troubleshooting
==================
When you get an error:
env['CPPPATH'] += ['$BUILDDIR/common', '$TOP_SRCDIR/src']
#
# Separating boost directories from CPPPATH stops scons from building
-# the dependency tree of boost header files, and effectively reduce
-# the null build time of lyx from 29s to 16s.
-if use_vc:
- env.AppendUnique(CCFLAGS = ['/I$BOOST_INC_PATH'])
+# the dependency tree for boost header files, and effectively reduce
+# the null build time of lyx from 29s to 16s. Since lyx may tweak local
+# boost headers, this is only done for system boost headers.
+if included_boost:
+ env.AppendUnique(CPPPATH = ['$BOOST_INC_PATH'])
else:
- env.AppendUnique(CCFLAGS = ['-I$BOOST_INC_PATH'])
+ if use_vc:
+ env.PrependUnique(CCFLAGS = ['/I$BOOST_INC_PATH'])
+ else:
+ env.PrependUnique(CCFLAGS = ['-I$BOOST_INC_PATH'])
# for intl/config.h, intl/libintl.h and intl/libgnuintl.h
if env['nls'] and included_gettext: