Enrico Forestieri <[EMAIL PROTECTED]> writes:

| On Wed, May 10, 2006 at 05:01:33PM -0500, Bo Peng wrote:
| 
| > Please test. all you need to do is
| > 
| > $ cd development/scons
| > $ scons frontend=qt3 ...
| > $ scons frontend=qt4 ...
| 
| Failure on cygwin, too.

With this patch I am able to do a 

scons -f development/scons/SConstruct from the lyx top dir with scons
SCons by Steven Knight et al.:
script: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca
engine: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca
Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation

I had the same error you had initially

Index: development/scons/SConscript
===================================================================
--- development/scons/SConscript	(revision 13830)
+++ development/scons/SConscript	(working copy)
@@ -16,7 +16,7 @@
 # boost libraries
 #
 if env['INCLUDED_BOOST']:
-  env.BuildDir('#$BUILDDIR/common', '$TOP_SRC_DIR/boost/libs', duplicate = 0)
+  env.BuildDir('#$BUILDDIR/boost', '$TOP_SRC_DIR/boost/libs', duplicate = 0)
   
   boostenv = env.Copy()
   boostenv.Append(CCFLAGS = '-DBOOST_USER_CONFIG="<config.h>"')
@@ -27,7 +27,7 @@
   
   filesystem = boostenv.StaticLibrary(
     target = '$LOCALLIBPATH/boost_filesystem',
-    source = ["#$BUILDDIR/common/filesystem/src/%s" % x for x in Split('''
+    source = ["#$BUILDDIR/boost/filesystem/src/%s" % x for x in Split('''
       convenience.cpp
       exception.cpp
       operations_posix_windows.cpp
@@ -39,7 +39,7 @@
   
   regex = boostenv.StaticLibrary(
     target = '$LOCALLIBPATH/boost_regex',
-    source = ["#$BUILDDIR/common/regex/src/%s" % x for x in Split('''
+    source = ["#$BUILDDIR/boost/regex/src/%s" % x for x in Split('''
       cpp_regex_traits.cpp
       c_regex_traits.cpp
       cregex.cpp
@@ -52,16 +52,11 @@
     ''')]
   )
   
-  # Return the library
-  Return('regex')
-  
-  Import('boostenv')
-  
   print 'Processing files in boost/libs/signals/src...'
   
   signals = boostenv.StaticLibrary(
     target = '$LOCALLIBPATH/boost_signals',
-    source = ["#$BUILDDIR/common/signals/src/%s" % x for x in Split('''
+    source = ["#$BUILDDIR/boost/signals/src/%s" % x for x in Split('''
       connection.cpp
       named_slot_map.cpp
       signal_base.cpp
@@ -74,7 +69,7 @@
   
   iostreams = boostenv.StaticLibrary(
     target = '$LOCALLIBPATH/boost_iostreams',
-    source = ["#$BUILDDIR/common/iostreams/src/%s" % x for x in Split('''
+    source = ["#$BUILDDIR/boost/iostreams/src/%s" % x for x in Split('''
       file_descriptor.cpp
       mapped_file.cpp
       zlib.cpp
Index: development/scons/SConstruct
===================================================================
--- development/scons/SConstruct	(revision 13830)
+++ development/scons/SConstruct	(working copy)
@@ -80,7 +80,8 @@
 EnsureSConsVersion(0, 96)
 
 # I am in TOP_SRC_DIR/developement/scons
-TOP_SRC_DIR = '../..'
+#TOP_SRC_DIR = '../..'
+TOP_SRC_DIR = '.'
 
 #----------------------------------------------------------
 # Global definitions
@@ -879,6 +880,6 @@
 #
 env['BUILD_TARGETS'] = BUILD_TARGETS
 
-env.SConscript('SConscript', duplicate = 0)
+env.SConscript('development/scons/SConscript', duplicate = 0)
 
 

-- 
        Lgb

Reply via email to