On Thu, May 11, 2006 at 12:56:55AM +0200, Enrico Forestieri wrote: > On Wed, May 10, 2006 at 05:01:33PM -0500, Bo Peng wrote: > > Dear all, > > > > All scons related stuff has been moved to development/scons. This > > change has resulted in major reorganization of the build scripts, but > > it is done now. > > > > Minus: all building processes are now using (longer and uglier) absolute > > paths > > > > Plus: I get a chance to change the build directories to > > > > debug(or release)/common all frontend-independent stuff > > debug/libs all libs > > debug/qt3 (qt3 lyx will be here) > > debug/qt4 (qt4 lyx will be here) > > > > When you build both qt3 and qt4, common libraries will be reused. > > Source files are *no longer* copied so you will only see objects files > > in these directories. > > > > Please test. all you need to do is > > > > $ cd development/scons > > $ scons frontend=qt3 ... > > $ scons frontend=qt4 ... > > Strange failure on solaris (I am using scons-local): > > $ cd development/scons > $ cat scons_lyx > #!/bin/sh > python scons.py --config=force CCFLAGS=-O2 frontend=qt3 qt_dir=/opt/qt > extra_inc_path=/opt/include extra_lib_path=/opt/lib > extra_lib_path1=/usr/X11/lib mode=release boost=included gettext=included > assertions=false warnings=false concept_checks=false logfile=scons_lyx.log > > > $ ./scons_lyx > scons: Reading SConscript files ... > Checking for pkg-config...yes > Checking for main() in C library z... no > Did not find libz or zlib.h, exiting! > > > $ cat config.log > file SConstruct,line 388: > Configure(confdir = .sconf_temp) > scons: Configure: Checking for pkg-config... > pkg-config --atleast-pkgconfig-version=0.15.0 > scons: Configure: yes > > scons: Configure: Checking for main() in C library z... > .sconf_temp/conftest_1.c <- > | > | > |#include "zlib.h" > | > |int > |main() { > | main(); > |return 0; > |} > | > gcc -o .sconf_temp/conftest_1.o -c -O2 -I/opt/qt/include -I/opt/qt/include > -I/opt/include .sconf_temp/conftest_1.c > sh: gcc: not found > scons: Configure: no > > > I don't know what it cannot find. Giving the gcc command above on the > command line works just fine. It was working prior the move to development.
It cannot find gcc, clearly. I have a patch in this case, but then it fails as in the cygwin case. -- Enrico
Index: development/scons/SConstruct =================================================================== --- development/scons/SConstruct (revision 13830) +++ development/scons/SConstruct (working copy) @@ -275,7 +275,7 @@ env = Environment( ) # set environment since I do not really like ENV = os.environ -#env['ENV']['PATH'] = os.environ.get('PATH') +env['ENV']['PATH'] = os.environ.get('PATH') env['ENV']['HOME'] = os.environ.get('HOME') env['TOP_SRC_DIR'] = TOP_SRC_DIR