Discussion:
win build help needed
(too old to reply)
Edwin Leuven
2006-05-14 09:45:36 UTC
Permalink
guess this one is for bo or abdel

i try to get lyx to build on windows

i installed

- python
- scons
- msys
- qt
- mingw
- zlib, libiconv, bzip2 (installed in the mingw dir)

simply calling

C:\svn\development\scons>scons frontend=qt4

gives me this error:

IOError: [Errno 2] No such file or directory:
'C:\\svn\\development\\scons\\#debug\\sconsign.dblite':
File "SConstruct", line 924:
SConsignFile(os.path.abspath('%s/sconsign' % env['BUILDDIR']))
File "C:\programs\Python24\scons\SCons\Script\SConscript.py", line 581:
return apply(method, args, kw)
File "C:\programs\Python24\scons\SCons\Environment.py", line 1151:
SCons.SConsign.File(name, dbm_module)
File "C:\programs\Python24\scons\SCons\SConsign.py", line 220:
database = dbm_module.open(name, "c")
File "C:\programs\Python24\scons\SCons\dblite.py", line 109:
return dblite(file, flag, mode)
File "C:\programs\Python24\scons\SCons\dblite.py", line 49:
_open(self._file_name, "wb", self._mode)

...

what did i do wrong here?

thanks, edwin



PS full output here:








scons: Reading SConscript files ...
Checking for pkg-config...failed
pkg-config >= 0.1.50 is not found
Checking for main() in C library z... yes
Checking for QApplication qapp() in C++ library QtCore... no
Checking for QApplication qapp() in C++ library QtCore4... yes
Qt4 libraries are found.
Checking for main() in C library socket... no
Checking for main() in C library nsl... no
Generating src\config.h ...
Checking for C header file io.h... yes
Checking for C header file limits.h... yes
Checking for C header file locale.h... yes
Checking for C++ header file locale... yes
Checking for C header file process.h... yes
Checking for C header file stdlib.h... yes
Checking for C header file sys/stat.h... yes
Checking for C header file sys/time.h... yes
Checking for C header file sys/types.h... yes
Checking for C header file sys/utime.h... yes
Checking for C header file sys/socket.h... no
Checking for C header file unistd.h... yes
Checking for C header file utime.h... yes
Checking for C++ header file istream... yes
Checking for C++ header file ostream... yes
Checking for C++ header file ios... yes
Checking for C function open()... yes
Checking for C function close()... yes
Checking for C function popen()... yes
Checking for C function pclose()... yes
Checking for C function _open()... yes
Checking for C function _close()... yes
Checking for C function _popen()... yes
Checking for C function _pclose()... yes
Checking for C function getpid()... yes
Checking for C function _getpid()... yes
Checking for C function mkdir()... yes
Checking for C function _mkdir()... yes
Checking for C function mktemp()... yes
Checking for C function mkstemp()... no
Checking for C function strerror()... yes
Checking for C function fcntl()... no
Checking for main() in C library Aiksaurus... no
Checking for main() in C library aspell... no
Checking for main() in C library pspell... no
Checking for main() in C library ispell... no
Warning: Can not locate any spell checker
Checking for putenv... ok
Checking for iostreambuf::iterator... ok
Checking for the number of args for mkdir... one
Checking for std::count... ok
Checking for arg types for select... ok
Configuration
Host type: win32
Special build flags:
C Compiler: gcc
C Compiler flags:
C++ Compiler: g++
C++ Compiler LyX flags:
C++ Compiler flags:
Linker flags:
Linker user flags:
Build info:
Builing directory: #debug
Local library directory: #debug/libs
Libraries pathes: ['$LOCALLIBPATH', '$QT_LIB_PATH', '.']
Boost libraries: ['boost_signals', 'boost_regex',
'boost_filesy
stem', 'boost_iostreams']
Extra libraries: ['QtCore4', 'QtGui4']
System libraries: ['shlwapi', 'z']
Frontend:
Frontend: qt4
Packaging: windows
LyX binary dir: FIXME
LyX files dir: FIXME
include dir: C:\programs\Qt\4.1.2/include
library dir: C:\programs\Qt\4.1.2/lib
X11: 0

IOError: [Errno 2] No such file or directory:
'C:\\svn\\development\\scons\\#deb
ug\\sconsign.dblite':
File "SConstruct", line 924:
SConsignFile(os.path.abspath('%s/sconsign' % env['BUILDDIR']))
File "C:\programs\Python24\scons\SCons\Script\SConscript.py", line 581:
return apply(method, args, kw)
File "C:\programs\Python24\scons\SCons\Environment.py", line 1151:
SCons.SConsign.File(name, dbm_module)
File "C:\programs\Python24\scons\SCons\SConsign.py", line 220:
database = dbm_module.open(name, "c")
File "C:\programs\Python24\scons\SCons\dblite.py", line 109:
return dblite(file, flag, mode)
File "C:\programs\Python24\scons\SCons\dblite.py", line 49:
_open(self._file_name, "wb", self._mode)
Abdelrazak Younes
2006-05-14 11:54:48 UTC
Permalink
Post by Edwin Leuven
guess this one is for bo or abdel
i try to get lyx to build on windows
i installed
- python
- scons
- msys
- qt
- mingw
- zlib, libiconv, bzip2 (installed in the mingw dir)
simply calling
C:\svn\development\scons>scons frontend=qt4
I am not sure of that but I think Bo resolved this bug with
mode=release, this #debug look suspicious, and you need to specify qt
directory:

scons qt_dir=d:/program/Qt/4.1 mode=release

Here I do that:

D:\cygwin\home\yns\lyx\trunk\development\scons>scons
qt_dir=d:/program/Qt/4.1 extra_inc_path=d:/pro
gram/Aspell-0.60.4/include extra_lib_path=d:/program/Aspell-0.60.4/lib
mode=release

Hope this helps,
Abdel.
Edwin Leuven
2006-05-14 12:13:58 UTC
Permalink
this is what i get:

C:\svn\development\scons>scons qt_dir=c:/programs/Qt/4.1.2 mode=release

scons: Reading SConscript files ...
TypeError: can only concatenate list (not "str") to list:
File "SConstruct", line 412:
env.AppendUnique(CPPPATH = env['QT_INC_PATH'])
File "C:\programs\Python24\scons\SCons\Environment.py", line 616:
self._dict[key] = dk + val


....

or

C:\svn\development\scons>scons frontend=qt4 mode=release

[snip]

IOError: [Errno 2] No such file or directory:
'C:\\svn\\development\\scons\\#rel
ease\\sconsign.dblite':
File "SConstruct", line 924:
SConsignFile(os.path.abspath('%s/sconsign' % env['BUILDDIR']))
File "C:\programs\Python24\scons\SCons\Script\SConscript.py", line 581:
return apply(method, args, kw)
File "C:\programs\Python24\scons\SCons\Environment.py", line 1151:
SCons.SConsign.File(name, dbm_module)
File "C:\programs\Python24\scons\SCons\SConsign.py", line 220:
database = dbm_module.open(name, "c")
File "C:\programs\Python24\scons\SCons\dblite.py", line 109:
return dblite(file, flag, mode)
File "C:\programs\Python24\scons\SCons\dblite.py", line 49:
_open(self._file_name, "wb", self._mode)
Post by Abdelrazak Younes
Post by Edwin Leuven
guess this one is for bo or abdel
i try to get lyx to build on windows
i installed
- python
- scons
- msys
- qt
- mingw
- zlib, libiconv, bzip2 (installed in the mingw dir)
simply calling
C:\svn\development\scons>scons frontend=qt4
I am not sure of that but I think Bo resolved this bug with
mode=release, this #debug look suspicious, and you need to specify qt
scons qt_dir=d:/program/Qt/4.1 mode=release
D:\cygwin\home\yns\lyx\trunk\development\scons>scons
qt_dir=d:/program/Qt/4.1 extra_inc_path=d:/pro
gram/Aspell-0.60.4/include extra_lib_path=d:/program/Aspell-0.60.4/lib
mode=release
Hope this helps,
Abdel.
Abdelrazak Younes
2006-05-14 12:54:43 UTC
Permalink
Post by Edwin Leuven
C:\svn\development\scons>scons qt_dir=c:/programs/Qt/4.1.2 mode=release
scons: Reading SConscript files ...
env.AppendUnique(CPPPATH = env['QT_INC_PATH'])
self._dict[key] = dk + val
Did you install the python win32 extension?

http://sourceforge.net/project/showfiles.php?group_id=78018
http://python.net/crew/skippy/win32/

Abdel.
Edwin Leuven
2006-05-14 12:57:40 UTC
Permalink
Post by Abdelrazak Younes
Did you install the python win32 extension?
http://sourceforge.net/project/showfiles.php?group_id=78018
http://python.net/crew/skippy/win32/
yes
Abdelrazak Younes
2006-05-14 12:58:44 UTC
Permalink
Post by Abdelrazak Younes
Did you install the python win32 extension?
http://sourceforge.net/project/showfiles.php?group_id=78018
http://python.net/crew/skippy/win32/
yes
Then wait for Bo :-(

Abdel.
Bo Peng
2006-05-14 13:38:28 UTC
Permalink
Post by Abdelrazak Younes
yes
Then wait for Bo :-(
Please remove the SConsign line for now (at the end of SConstruct). I
already notice this but the fix is among a big untested patch.

Bo

PS: I am not officially back to work now.
Edwin Leuven
2006-05-14 20:07:24 UTC
Permalink
Post by Bo Peng
Please remove the SConsign line for now (at the end of SConstruct). I
already notice this but the fix is among a big untested patch.
this

scons CCFLAGS=-O3 frontend=qt4
extra_inc_path=c:/programs/Aspell-0.60.4/include
extra_lib_path=c:/programs/Aspell-0.60.4/lib logfile=logfile.log
mode=release


then gives me:

...

Build info:
Builing directory: #release
Local library directory: #release/libs
Libraries pathes: ['$LOCALLIBPATH', '$QT_LIB_PATH',
'c:/programs
/Aspell-0.60.4/lib', '.']
Boost libraries: ['boost_signals', 'boost_regex',
'boost_filesy
stem', 'boost_iostreams']
Extra libraries: ['aspell', 'QtCore4', 'QtGui4']
System libraries: ['shlwapi', 'z']

...

Building all targets recursively

scons: *** Source directory must be under top of build tree.
File "SConscript", line 22, in ?
Post by Bo Peng
PS: I am not officially back to work now.
will wait for that. thanks!

regards, edwin
Bo Peng
2006-05-15 18:01:44 UTC
Permalink
Post by Edwin Leuven
scons: *** Source directory must be under top of build tree.
File "SConscript", line 22, in ?
Can not reproduce this problem. Where do you start scons? You should
either start from the top source directory with
scons -f development/scons/SConstruct ...
or
cd development/scons
scons ....

Bo
Edwin Leuven
2006-05-15 18:37:15 UTC
Permalink
Post by Bo Peng
Post by Edwin Leuven
scons: *** Source directory must be under top of build tree.
File "SConscript", line 22, in ?
Can not reproduce this problem. Where do you start scons? You should
either start from the top source directory with
scons -f development/scons/SConstruct ...
this works now
Post by Bo Peng
or
cd development/scons
scons ....
yet this doesn't (is what i was doing)
Bo Peng
2006-05-15 18:52:08 UTC
Permalink
Post by Edwin Leuven
this works now
Good.
Post by Edwin Leuven
Post by Bo Peng
cd development/scons
scons ....
yet this doesn't (is what i was doing)
I can not reproduce the problem here. Could you please tell me lyx
rev number, and platform you are running?

Cheers,
Bo
Edwin Leuven
2006-05-15 19:00:33 UTC
Permalink
Post by Bo Peng
I can not reproduce the problem here. Could you please tell me lyx
rev number,
13848
Post by Bo Peng
and platform you are running?
win xp prof with sp2 installed

thanks, edwin
Edwin Leuven
2006-05-15 18:56:05 UTC
Permalink
Post by Edwin Leuven
Post by Bo Peng
Can not reproduce this problem. Where do you start scons? You should
either start from the top source directory with
scons -f development/scons/SConstruct ...
this works now
and stopped:

env_subst(["release\common\version.C"], ["src\version.C.in"])
scons: *** [release\common\version.C] Exception
Traceback (most recent call last):
File "C:\programs\Python24\scons\SCons\Taskmaster.py", line 101, in
execute
self.targets[0].build()
File "C:\programs\Python24\scons\SCons\Node\__init__.py", line 201,
in build
apply(executor, (self, errfunc), kw)
File "C:\programs\Python24\scons\SCons\Executor.py", line 115, in
__call__
apply(action, (self.targets, self.sources, env, errfunc), kw)
File "C:\programs\Python24\scons\SCons\Action.py", line 243, in __call__
stat = self.execute(target, source, env)
File "C:\programs\Python24\scons\SCons\Action.py", line 512, in execute
return self.execfunction(target=target, source=rsources, env=env)
File "C:\svn\development\scons\scons_utils.py", line 67, in env_subst
contents = re.sub('@'+k+'@',
env.subst('$'+k).replace('\n',r'\\n\\\n'), cont
ents)
File "c:\programs\python24\lib\sre.py", line 142, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "c:\programs\python24\lib\sre.py", line 260, in filter
return sre_parse.expand_template(template, match)
File "c:\programs\python24\lib\sre_parse.py", line 784, in
expand_template
raise error, "invalid group reference"
error: invalid group reference
scons: building terminated because of errors.
Bo Peng
2006-05-15 19:01:56 UTC
Permalink
Post by Edwin Leuven
Post by Edwin Leuven
this works now
env_subst(["release\common\version.C"], ["src\version.C.in"])
File "C:\svn\development\scons\scons_utils.py", line 67, in env_subst
env.subst('$'+k).replace('\n',r'\\n\\\n'), cont
ents)
So, you are under windows, using python2.4, mingw (?) and which scons version?

Please comment out this re.sub line and see if other parts work.

Bo
Edwin Leuven
2006-05-15 19:22:03 UTC
Permalink
Post by Bo Peng
So, you are under windows, using python2.4, mingw (?) and which scons version?
C:\svn>scons -v
SCons by Steven Knight et al.:
engine: v0.96.1.D001, 2004/08/23 09:55:29, by knight on casablanca
Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation



C:\svn>g++ --version
g++ (GCC) 3.4.2 (mingw-special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Post by Bo Peng
Please comment out this re.sub line and see if other parts work.
it is continuing now...

thanks, edwin
Bo Peng
2006-05-15 19:25:25 UTC
Permalink
Post by Edwin Leuven
C:\svn>scons -v
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 am using 0.96.92. I will have a detailed look at the re.sub part
tonight with win/mingw, but you may consider upgrading your scons.

Bo
Edwin Leuven
2006-05-15 20:05:55 UTC
Permalink
Post by Bo Peng
Post by Edwin Leuven
C:\svn>scons -v
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 am using 0.96.92. I will have a detailed look at the re.sub part
tonight with win/mingw, but you may consider upgrading your scons.
upgraded to this one (but stull need to comment out the re.sub line)

now it compiles, but fails during linking:

g++ -o release\qt4\lyx.exe -Lrelease\libs -LC:\programs\Qt\4.1.2\lib -L.
-llyxbase_pre -lmathed -linsets -lfrontends -lqt4 -lcontrollers
-lgraphics -lsupports -llyxbase_post -lboost_signals -lboost_regex
-lboost_filesystem -lboost_iostreams
-lQtCore4 -lQtGui4 -lshlwapi -lz


....



tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1910):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1940):exception.cpp:
und
efined reference to `__cxa_begin_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x19b0):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x19c4):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x19f8):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1a37):exception.cpp:
und
efined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1ab8):exception.cpp:
und
efined reference to `operator new(unsigned int)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1ae0):exception.cpp:
und
efined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1b26):exception.cpp:
und
efined reference to `std::string::operator=(std::string const&)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1b76):exception.cpp:
und
efined reference to `std::string::operator=(std::string const&)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1b90):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1baa):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1bda):exception.cpp:
und
efined reference to `__cxa_begin_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1c4a):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1c5e):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1c92):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1cd1):exception.cpp:
und
efined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1d52):exception.cpp:
und
efined reference to `operator new(unsigned int)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1d7a):exception.cpp:
und
efined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1dc0):exception.cpp:
und
efined reference to `std::string::operator=(std::string const&)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1e17):exception.cpp:
und
efined reference to `std::string::operator=(std::string const&)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1e31):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1e4b):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1e9b):exception.cpp:
und
efined reference to `__cxa_begin_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1f0b):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1f1f):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1f53):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x1f91):exception.cpp:
und
efined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2012):exception.cpp:
und
efined reference to `operator new(unsigned int)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x203a):exception.cpp:
und
efined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2080):exception.cpp:
und
efined reference to `std::string::operator=(std::string const&)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x20d7):exception.cpp:
und
efined reference to `std::string::operator=(std::string const&)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x20f1):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x210b):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x215b):exception.cpp:
und
efined reference to `__cxa_begin_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x21cb):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x21df):exception.cpp:
und
efined reference to `__cxa_end_catch'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2213):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x224e):exception.cpp:
und
efined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text+0x22b9):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x22d2):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x22e9):exception.cpp:
und
efined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2315):exception.cpp:
und
efined reference to `__cxa_call_unexpected'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2338):exception.cpp:
und
efined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text+0x23a3):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x23bc):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x23d3):exception.cpp:
und
efined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x23ff):exception.cpp:
und
efined reference to `__cxa_call_unexpected'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2422):exception.cpp:
und
efined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text+0x248d):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x24a6):exception.cpp:
und
efined reference to `std::exception::~exception()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x24bd):exception.cpp:
und
efined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text+0x24e9):exception.cpp:
und
efined reference to `__cxa_call_unexpected'
release\libs/libboost_filesystem.a(exception.o)(.text+0x25b8):exception.cpp:
und
efined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2602):exception.cpp:
und
efined reference to `std::string::c_str() const'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2627):exception.cpp:
und
efined reference to `std::string::c_str() const'
release\libs/libboost_filesystem.a(exception.o)(.text+0x2667):exception.cpp:
und
efined reference to `__cxa_call_unexpected'
release\libs/libboost_filesystem.a(exception.o)(.text+0x26c8):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text+0x26e3):exception.cpp:
und
efined reference to `std::basic_string<char, std::char_traits<char>,
std::alloca
tor<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impC1Ev[boost::filesystem::filesystem_error::m_imp::m_imp()]+0xc
):exception.cpp: undefined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impC1Ev[boost::filesystem::filesystem_error::m_imp::m_imp()]+0x4
3):exception.cpp: undefined reference to `std::basic_string<char,
std::char_trai
ts<char>, std::allocator<char> >::basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impC1Ev[boost::filesystem::filesystem_error::m_imp::m_imp()]+0x8
2):exception.cpp: undefined reference to `std::basic_string<char,
std::char_trai
ts<char>, std::allocator<char> >::basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impC1Ev[boost::filesystem::filesystem_error::m_imp::m_imp()]+0xf
c):exception.cpp: undefined reference to `std::basic_string<char,
std::char_trai
ts<char>, std::allocator<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10shared_ptrINS_1
0filesystem16filesystem_error5m_impEE5resetIS3_EEvPT_[void
boost::shared_ptr<boo
st::filesystem::filesystem_error::m_imp>::reset<boost::filesystem::filesystem_er
ror::m_imp>(boost::filesystem::filesystem_error::m_imp*)]+0xc):exception.cpp:
un
defined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10shared_ptrINS_1
0filesystem16filesystem_error5m_impEE5resetEv[boost::shared_ptr<boost::filesyste
m::filesystem_error::m_imp>::reset()]+0xc):exception.cpp: undefined
reference to
`__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail12shared_c
ountC1INS_10filesystem16filesystem_error5m_impEEEPT_[boost::detail::shared_count
::shared_count<boost::filesystem::filesystem_error::m_imp>(boost::filesystem::fi
lesystem_error::m_imp*)]+0xc):exception.cpp: undefined reference to
`__gxx_perso
nality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail12shared_c
ountC1INS_10filesystem16filesystem_error5m_impEEEPT_[boost::detail::shared_count
::shared_count<boost::filesystem::filesystem_error::m_imp>(boost::filesystem::fi
lesystem_error::m_imp*)]+0x53):exception.cpp: undefined reference to
`operator n
ew(unsigned int)'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail12shared_c
ountC1INS_10filesystem16filesystem_error5m_impEEEPT_[boost::detail::shared_count
::shared_count<boost::filesystem::filesystem_error::m_imp>(boost::filesystem::fi
lesystem_error::m_imp*)]+0x82):exception.cpp: undefined reference to
`operator d
elete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail12shared_c
ountC1INS_10filesystem16filesystem_error5m_impEEEPT_[boost::detail::shared_count
::shared_count<boost::filesystem::filesystem_error::m_imp>(boost::filesystem::fi
lesystem_error::m_imp*)]+0x9f):exception.cpp: undefined reference to
`__cxa_begi
n_catch'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail12shared_c
ountC1INS_10filesystem16filesystem_error5m_impEEEPT_[boost::detail::shared_count
::shared_count<boost::filesystem::filesystem_error::m_imp>(boost::filesystem::fi
lesystem_error::m_imp*)]+0xb6):exception.cpp: undefined reference to
`__cxa_reth
row'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail12shared_c
ountC1INS_10filesystem16filesystem_error5m_impEEEPT_[boost::detail::shared_count
::shared_count<boost::filesystem::filesystem_error::m_imp>(boost::filesystem::fi
lesystem_error::m_imp*)]+0xe3):exception.cpp: undefined reference to
`__cxa_end_
catch'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost14checked_deleteI
NS_10filesystem16filesystem_error5m_impEEEvPT_[void
boost::checked_delete<boost:
:filesystem::filesystem_error::m_imp>(boost::filesystem::filesystem_error::m_imp
*)]+0x24):exception.cpp: undefined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impD1Ev[boost::filesystem::filesystem_error::m_imp::~m_imp()]+0x
c):exception.cpp: undefined reference to `__gxx_personality_sj0'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impD1Ev[boost::filesystem::filesystem_error::m_imp::~m_imp()]+0x
46):exception.cpp: undefined reference to `std::basic_string<char,
std::char_tra
its<char>, std::allocator<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impD1Ev[boost::filesystem::filesystem_error::m_imp::~m_imp()]+0x
ef):exception.cpp: undefined reference to `std::basic_string<char,
std::char_tra
its<char>, std::allocator<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost10filesystem16fil
esystem_error5m_impD1Ev[boost::filesystem::filesystem_error::m_imp::~m_imp()]+0x
119):exception.cpp: undefined reference to `std::basic_string<char,
std::char_tr
aits<char>, std::allocator<char> >::~basic_string()'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail17sp_count
ed_impl_pINS_10filesystem16filesystem_error5m_impEED1Ev[boost::detail::sp_counte
d_impl_p<boost::filesystem::filesystem_error::m_imp>::~sp_counted_impl_p()]+0x2d
):exception.cpp: undefined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.text$_ZN5boost6detail17sp_count
ed_impl_pINS_10filesystem16filesystem_error5m_impEED0Ev[boost::detail::sp_counte
d_impl_p<boost::filesystem::filesystem_error::m_imp>::~sp_counted_impl_p()]+0x2d
):exception.cpp: undefined reference to `operator delete(void*)'
release\libs/libboost_filesystem.a(exception.o)(.rdata$_ZTIN5boost6detail17sp_co
unted_impl_pINS_10filesystem16filesystem_error5m_impEEE[typeinfo for
boost::deta
il::sp_counted_impl_p<boost::filesystem::filesystem_error::m_imp>]+0x0):exceptio
n.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
release\libs/libboost_iostreams.a(zlib.o)(.text+0xd):zlib.cpp: undefined
referen
ce to `std::string::size() const'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x60):zlib.cpp:
undefined refere
nce to `std::string::operator[](unsigned int) const'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x9f):zlib.cpp:
undefined refere
nce to `std::string::operator[](unsigned int) const'
release\libs/libboost_iostreams.a(zlib.o)(.text+0xce):zlib.cpp:
undefined refere
nce to `std::string::operator[](unsigned int) const'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x10c):zlib.cpp:
undefined refer
ence to `__gxx_personality_sj0'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x13c):zlib.cpp:
undefined refer
ence to `std::allocator<char>::allocator()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x15d):zlib.cpp:
undefined refer
ence to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >:
:basic_string(char const*, std::allocator<char> const&)'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x16f):zlib.cpp:
undefined refer
ence to `std::ios_base::failure::failure(std::string const&)'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x17a):zlib.cpp:
undefined refer
ence to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >:
:~basic_string()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x196):zlib.cpp:
undefined refer
ence to `std::allocator<char>::~allocator()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x1b9):zlib.cpp:
undefined refer
ence to `std::allocator<char>::~allocator()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x1ee):zlib.cpp:
undefined refer
ence to `__gxx_personality_sj0'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x21e):zlib.cpp:
undefined refer
ence to `std::allocator<char>::allocator()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x23f):zlib.cpp:
undefined refer
ence to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >:
:basic_string(char const*, std::allocator<char> const&)'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x251):zlib.cpp:
undefined refer
ence to `std::ios_base::failure::failure(std::string const&)'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x25c):zlib.cpp:
undefined refer
ence to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >:
:~basic_string()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x278):zlib.cpp:
undefined refer
ence to `std::allocator<char>::~allocator()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x29b):zlib.cpp:
undefined refer
ence to `std::allocator<char>::~allocator()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x2d0):zlib.cpp:
undefined refer
ence to `__gxx_personality_sj0'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x323):zlib.cpp:
undefined refer
ence to `__cxa_allocate_exception'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x339):zlib.cpp:
undefined refer
ence to `std::bad_alloc::~bad_alloc()'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x353):zlib.cpp:
undefined refer
ence to `__cxa_throw'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x35f):zlib.cpp:
undefined refer
ence to `__cxa_allocate_exception'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x397):zlib.cpp:
undefined refer
ence to `__cxa_free_exception'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x3d1):zlib.cpp:
undefined refer
ence to `__cxa_throw'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x3fa):zlib.cpp:
undefined refer
ence to `operator new(unsigned int)'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x42a):zlib.cpp:
undefined refer
ence to `operator new(unsigned int)'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x457):zlib.cpp:
undefined refer
ence to `operator delete(void*)'
release\libs/libboost_iostreams.a(zlib.o)(.text+0x46d):zlib.cpp:
undefined refer
ence to `operator delete(void*)'
release\libs/libboost_iostreams.a(zlib.o)(.text$_ZN5boost9iostreams10zlib_errorD
1Ev[boost::iostreams::zlib_error::~zlib_error()]+0x16):zlib.cpp:
undefined refer
ence to `std::ios_base::failure::~failure()'
release\libs/libboost_iostreams.a(zlib.o)(.text$_ZN5boost9iostreams10zlib_errorD
1Ev[boost::iostreams::zlib_error::~zlib_error()]+0x2d):zlib.cpp:
undefined refer
ence to `operator delete(void*)'
release\libs/libboost_iostreams.a(zlib.o)(.text$_ZNSt9bad_allocC1Ev[std::bad_all
oc::bad_alloc()]+0x16):zlib.cpp: undefined reference to `vtable for
std::bad_all
oc'
release\libs/libboost_iostreams.a(zlib.o)(.rdata$_ZTVN5boost9iostreams10zlib_err
orE[vtable for boost::iostreams::zlib_error]+0x10):zlib.cpp: undefined
reference
to `std::ios_base::failure::what() const'
release\libs/libboost_iostreams.a(zlib.o)(.text$_ZN5boost9iostreams10zlib_errorD
0Ev[boost::iostreams::zlib_error::~zlib_error()]+0x16):zlib.cpp:
undefined refer
ence to `std::ios_base::failure::~failure()'
release\libs/libboost_iostreams.a(zlib.o)(.text$_ZN5boost9iostreams10zlib_errorD
0Ev[boost::iostreams::zlib_error::~zlib_error()]+0x2d):zlib.cpp:
undefined refer
ence to `operator delete(void*)'
release\libs/libboost_iostreams.a(zlib.o)(.rdata$_ZTISt9bad_alloc[typeinfo
for s
td::bad_alloc]+0x0):zlib.cpp: undefined reference to `vtable for
__cxxabiv1::__s
i_class_type_info'
collect2: ld returned 1 exit status
scons: *** [release\qt4\lyx.exe] Error 1
scons: building terminated because of errors.
C:\svn>
Bo Peng
2006-05-15 20:21:21 UTC
Permalink
Post by Edwin Leuven
upgraded to this one (but stull need to comment out the re.sub line)
I will have a look.
I notice this one only after I test this by myself. Abdel seems to be
using a more decent (?) g++ that is clever enough (like the linux
case) to link against stdc++. What you need to do is add -lstdc++ to
the last step, or wait five more minutes for me to submit a new
version.

The new version will have 'scons install'. scons po (for gettext),
scons all, etc.

Bo
Edwin Leuven
2006-05-15 20:40:00 UTC
Permalink
Post by Bo Peng
I notice this one only after I test this by myself. Abdel seems to be
using a more decent (?) g++ that is clever enough (like the linux
case) to link against stdc++. What you need to do is add -lstdc++ to
the last step,
it linked and launched!
Post by Bo Peng
or wait five more minutes for me to submit a new
version.
The new version will have 'scons install'. scons po (for gettext),
scons all, etc.
great work!

thanks for the help here

regards, edwin
Bo Peng
2006-05-15 20:45:56 UTC
Permalink
Post by Edwin Leuven
it linked and launched!
I am glad to know this. The re.sub was troublesome when I first
tackled it. I guess I need a safer way to do substitution.
Post by Edwin Leuven
thanks for the help here
The new version has just be submitted. I guess you will still have the
re.sub problem, but linking should be fine.

You might want to try 'scons install' and see if your msgfmt (gettext
stuff) works.

Bo
Edwin Leuven
2006-05-15 21:08:39 UTC
Permalink
Post by Bo Peng
The new version has just be submitted. I guess you will still have the
re.sub problem, but linking should be fine.
it breaks here:

g++ -o release\common\support\mkdir.o -c -Iboost -Isrc src\support\mkdir.C
c:/programs/minGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/io.h:
In func
tion `int lyx::support::mkdir(const std::string&, long unsigned int)':
c:/programs/minGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/io.h:162:
err
or: too many arguments to function `int mkdir(const char*)'
src\support\mkdir.C:38: error: at this point in file
scons: *** [release\common\support\mkdir.o] Error 1
scons: building terminated because of errors.
Bo Peng
2006-05-15 21:15:47 UTC
Permalink
Post by Bo Peng
The new version has just be submitted. I guess you will still have the
re.sub problem, but linking should be fine.
OK. I am discussing this with Abdel this morning. It seems that
windows/mingw does not have, or have a different, sys/stat.h so the
test fails even with the correct number of parameters to mkdir().

This is line 206 of scons_utils.py which is straightforward. Could you
please help me figure out the correct header file for mkdir under
mingw?

I can then do something like

if conf.TryLink(check_mkdir_one_arg_source, '.c') or
conf.TryLink(check_mkdir_one_arg_source_2, '.c'):
blah...

I am still wondering why previous runs succeeded.

Bo
Abdelrazak Younes
2006-05-16 09:29:18 UTC
Permalink
Post by Bo Peng
Post by Bo Peng
The new version has just be submitted. I guess you will still have the
re.sub problem, but linking should be fine.
OK. I am discussing this with Abdel this morning. It seems that
windows/mingw does not have, or have a different, sys/stat.h so the
test fails even with the correct number of parameters to mkdir().
This is line 206 of scons_utils.py which is straightforward. Could you
please help me figure out the correct header file for mkdir under
mingw?
This compiles and works correctly :

#include <io.h>

int main()
{
mkdir("somedir");
}

Abdel.
Abdelrazak Younes
2006-05-16 09:30:46 UTC
Permalink
Post by Bo Peng
Post by Bo Peng
The new version has just be submitted. I guess you will still have the
re.sub problem, but linking should be fine.
OK. I am discussing this with Abdel this morning. It seems that
windows/mingw does not have, or have a different, sys/stat.h so the
test fails even with the correct number of parameters to mkdir().
This is line 206 of scons_utils.py which is straightforward. Could you
please help me figure out the correct header file for mkdir under
mingw?
I can then do something like
if conf.TryLink(check_mkdir_one_arg_source, '.c') or
blah...
Or you can just undef HAVE_MKDIR and support/mkdir.C will use the
windows version (CreateDirectory).

Abdel.
Abdelrazak Younes
2006-05-16 10:26:50 UTC
Permalink
Post by Bo Peng
Post by Bo Peng
The new version has just be submitted. I guess you will still have the
re.sub problem, but linking should be fine.
OK. I am discussing this with Abdel this morning. It seems that
windows/mingw does not have, or have a different, sys/stat.h so the
test fails even with the correct number of parameters to mkdir().
This is line 206 of scons_utils.py which is straightforward. Could you
please help me figure out the correct header file for mkdir under
mingw?
I can then do something like
if conf.TryLink(check_mkdir_one_arg_source, '.c') or
blah...
This patch solves the problem. Will commit now and take the occasion to
change eolstyle to native.
Post by Bo Peng
I am still wondering why previous runs succeeded.
/me too.

Abdel.
Abdelrazak Younes
2006-05-16 09:23:53 UTC
Permalink
Post by Bo Peng
Post by Edwin Leuven
upgraded to this one (but stull need to comment out the re.sub line)
I will have a look.
I notice this one only after I test this by myself. Abdel seems to be
using a more decent (?) g++ that is clever enough (like the linux
case) to link against stdc++.
D:\mingw\bin>gcc -v
Reading specs from D:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld
--with-gnu-as --host=mingw32 --target=mingw32
--prefix=/mingw --enable-threads --disable-nls
--enable-languages=c,c++,f77,ada,objc,java --disable-win32-regis
try --disable-shared --enable-sjlj-exceptions --enable-libgcj
--disable-java-awt --without-x --enable-java-gc=b
oehm --disable-libgcj-debug --enable-interpreter
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)

The one distributed with Mingw is 3.4.4.

Abdel.
Andre Poenitz
2006-05-16 17:22:25 UTC
Permalink
Post by Bo Peng
Post by Edwin Leuven
upgraded to this one (but stull need to comment out the re.sub line)
I will have a look.
I notice this one only after I test this by myself. Abdel seems to be
using a more decent (?) g++ that is clever enough (like the linux
case) to link against stdc++. What you need to do is add -lstdc++ to
the last step, or wait five more minutes for me to submit a new
version.
I haven't used -lstdc++ for quite a while now, it should not be
necessary to specify it explicitly.

It really looks like some gcc vs g++ usage was messed up during
compilation/linking.

Andre'
Bo Peng
2006-05-16 19:23:59 UTC
Permalink
Post by Andre Poenitz
I haven't used -lstdc++ for quite a while now, it should not be
necessary to specify it explicitly.
It really looks like some gcc vs g++ usage was messed up during
compilation/linking.
As long as things work, I do not care. I will check if I still need to
specify -lstdc++ after lyx renames .C to .cpp.

Bo
Edwin Leuven
2006-05-16 13:11:07 UTC
Permalink
g++ -o release\common\client\client.o -c -Iboost -Isrc src\client\client.C
src\client\client.C:44:20: sys/un.h: No such file or directory



any clue what i am missing here?

thanks, edwin
Abdelrazak Younes
2006-05-16 13:18:05 UTC
Permalink
Post by Edwin Leuven
g++ -o release\common\client\client.o -c -Iboost -Isrc src\client\client.C
src\client\client.C:44:20: sys/un.h: No such file or directory
any clue what i am missing here?
You are missing <sys/un.h>... just kidding ;-)

This header is not available for Mingw (it is available in the gw32
package but it is another story). In principle Scons should not try to
build the lyx client because of those missing header. Didn't you fixed
that Bo?

Abdel.
Bo Peng
2006-05-16 13:29:22 UTC
Permalink
Post by Abdelrazak Younes
This header is not available for Mingw (it is available in the gw32
package but it is another story). In principle Scons should not try to
build the lyx client because of those missing header. Didn't you fixed
that Bo?
I continue to allow building of lyxclient, but failure to do so should
not affect targets like install. This is untested though, due to my
limited access to win/mingw platform.

Will test, and fix soon.
Bo
Edwin Leuven
2006-05-16 13:33:52 UTC
Permalink
Post by Abdelrazak Younes
Post by Edwin Leuven
g++ -o release\common\client\client.o -c -Iboost -Isrc
src\client\client.C
src\client\client.C:44:20: sys/un.h: No such file or directory
any clue what i am missing here?
You are missing <sys/un.h>... just kidding ;-)
one learns something everyday.. ;-)
Post by Abdelrazak Younes
This header is not available for Mingw (it is available in the gw32
package but it is another story). In principle Scons should not try to
build the lyx client because of those missing header. Didn't you fixed
that Bo?
this is what triggered it:

C:\svn>scons frontend=qt4 -f development/scons/SConstruct mode=release
fast_start=no install
Bo Peng
2006-05-16 14:21:53 UTC
Permalink
Post by Edwin Leuven
any clue what i am missing here?
I was not aware that scons does not handle python exceptions well so
the try/except tests have been removed, and a test for SOCKET_H is
added.

I have just tested, with the newest version (just submitted), you
should be able to run scons ... install. (lyxclient will be correctly
ignored.)

Abdel, I changed your patch to MKDIR_ONE_ARG to a seemingly cleaner one.

Cheers,
Bo
Edwin Leuven
2006-05-16 14:38:10 UTC
Permalink
Post by Bo Peng
Post by Edwin Leuven
any clue what i am missing here?
I was not aware that scons does not handle python exceptions well so
the try/except tests have been removed, and a test for SOCKET_H is
added.
I have just tested, with the newest version (just submitted), you
should be able to run scons ... install. (lyxclient will be correctly
ignored.)
just managed to build and install

to load an old document i needed to change

lyx2lyx_version.py.in

into

lyx2lyx_version.py


regards, edwin
Bo Peng
2006-05-16 15:18:52 UTC
Permalink
Post by Edwin Leuven
to load an old document i needed to change
lyx2lyx_version.py.in
into
lyx2lyx_version.py
So the next big thing is this version_suffix business?

Anyway, I have on this scons TODO list,

1. remove unnecessay rebuild, since I found that adding fast_start=yes
can sometimes trigger rebuild.

2. qt4 adding "#include file_moc.cpp" to file.C. Abdel, I will give
you a patch to test. If you see a clear advantage, I will complete the
patch with autotools support.

3. This lyx2lyx_version.py seems to be important.

4. version_suffix ....

5. Wait for feature request and bug report.

Then, I would like to investigate why cygwin/lyx can not quit.

Bo
Abdelrazak Younes
2006-05-16 15:48:54 UTC
Permalink
Post by Bo Peng
Post by Edwin Leuven
to load an old document i needed to change
lyx2lyx_version.py.in
into
lyx2lyx_version.py
So the next big thing is this version_suffix business?
Anyway, I have on this scons TODO list,
1. remove unnecessay rebuild, since I found that adding fast_start=yes
can sometimes trigger rebuild.
I noticed that also.
Post by Bo Peng
2. qt4 adding "#include file_moc.cpp" to file.C. Abdel, I will give
you a patch to test. If you see a clear advantage, I will complete the
patch with autotools support.
That sounds like a good plan. Please note that the moc files are named
xxx_moc.C with autotools but I guess it's easy to change in
moc/Makefile.am :

- %_moc.C: $(srcdir)/../%.h
+ %_moc.cpp: $(srcdir)/../%.h
Post by Bo Peng
3. This lyx2lyx_version.py seems to be important.
4. version_suffix ....
5. Wait for feature request and bug report.
Please look at my CCFLAGS problem.
Post by Bo Peng
Then, I would like to investigate why cygwin/lyx can not quit.
Here is my wish list if you bother:

1. find a way to pass CCFLAGS options to gcc.

2. create multiple "config.h" in build directory not in the source (as
is done with autotools):
2.a. release/config.h for all general macro including
BOOST_USER_CONFIG
2.a. release/boost_config.h for all boost_specific macro except
BOOST_USER_CONFIG
2.c. release/support/config.h for all support specific macro (this
will include the general one)

3. link tex2lyx and lyxclient to liblyxbase_pre.a instead of recompiling
copied files.

Abdel.
Bo Peng
2006-05-16 16:40:50 UTC
Permalink
Post by Abdelrazak Younes
Post by Bo Peng
2. qt4 adding "#include file_moc.cpp" to file.C. Abdel, I will give
you a patch to test. If you see a clear advantage, I will complete the
patch with autotools support.
That sounds like a good plan. Please note that the moc files are named
xxx_moc.C with autotools but I guess it's easy to change in
- %_moc.C: $(srcdir)/../%.h
+ %_moc.cpp: $(srcdir)/../%.h
Attached. Note that I do not know how to make automake work since
MOCEDFILES are handled *after* source, so _moc.cpp is not found for .C
files.


MOCEDFILES = $(MOCFILES:.C=_moc.cpp)

%_moc.cpp: %.h
$(MOC4) -o $@ $<

libqt4_la_DEPENDENCIES = $(MOCEDFILES)


Bo
Bo Peng
2006-05-16 16:41:42 UTC
Permalink
forget the patch.

Bo
Abdelrazak Younes
2006-05-17 12:21:47 UTC
Permalink
Post by Bo Peng
Post by Abdelrazak Younes
Post by Bo Peng
2. qt4 adding "#include file_moc.cpp" to file.C. Abdel, I will give
you a patch to test. If you see a clear advantage, I will complete the
patch with autotools support.
That sounds like a good plan. Please note that the moc files are named
xxx_moc.C with autotools but I guess it's easy to change in
- %_moc.C: $(srcdir)/../%.h
+ %_moc.cpp: $(srcdir)/../%.h
Attached. Note that I do not know how to make automake work since
MOCEDFILES are handled *after* source, so _moc.cpp is not found for .C
files.
MOCEDFILES = $(MOCFILES:.C=_moc.cpp)
%_moc.cpp: %.h
libqt4_la_DEPENDENCIES = $(MOCEDFILES)
Someone could help us here?

Abdel.
Abdelrazak Younes
2006-05-17 12:46:59 UTC
Permalink
Post by Abdelrazak Younes
Post by Bo Peng
Post by Abdelrazak Younes
Post by Bo Peng
2. qt4 adding "#include file_moc.cpp" to file.C. Abdel, I will give
you a patch to test. If you see a clear advantage, I will complete the
patch with autotools support.
That sounds like a good plan. Please note that the moc files are named
xxx_moc.C with autotools but I guess it's easy to change in
- %_moc.C: $(srcdir)/../%.h
+ %_moc.cpp: $(srcdir)/../%.h
Attached. Note that I do not know how to make automake work since
MOCEDFILES are handled *after* source, so _moc.cpp is not found for .C
files.
MOCEDFILES = $(MOCFILES:.C=_moc.cpp)
%_moc.cpp: %.h
libqt4_la_DEPENDENCIES = $(MOCEDFILES)
Someone could help us here?
Never mind, I solved it out by moving some stuff at the beginning in
"frontends/qt4/Makefile.am". Compiling, right now, I'll send the patch soon.

Abdel.

Abdelrazak Younes
2006-05-16 16:41:53 UTC
Permalink
Post by Abdelrazak Younes
1. find a way to pass CCFLAGS options to gcc.
2. create multiple "config.h" in build directory not in the source (as
2.a. release/config.h for all general macro including
BOOST_USER_CONFIG
2.a. release/boost_config.h for all boost_specific macro except
BOOST_USER_CONFIG
2.c. release/support/config.h for all support specific macro (this
will include the general one)
3. link tex2lyx and lyxclient to liblyxbase_pre.a instead of recompiling
copied files.
4. Make the link to libintl (internal or external) and libiconv in order
to support NLS.

Abdel.
Bo Peng
2006-05-17 02:10:35 UTC
Permalink
Post by Abdelrazak Younes
1. find a way to pass CCFLAGS options to gcc.
you can already pass CCFLAGS as environment variable, or in command
line, I just tried
scons CCFLAGS=-O2
and it works fine.

Bo
Abdelrazak Younes
2006-05-17 08:29:27 UTC
Permalink
Post by Bo Peng
Post by Abdelrazak Younes
1. find a way to pass CCFLAGS options to gcc.
you can already pass CCFLAGS as environment variable, or in command
line, I just tried
scons CCFLAGS=-O2
and it works fine.
You tried at the windows console?
It doesn't work here with revision 13852.

Abdel.
Abdelrazak Younes
2006-05-16 14:33:57 UTC
Permalink
Post by Bo Peng
Post by Edwin Leuven
any clue what i am missing here?
I was not aware that scons does not handle python exceptions well so
Is that because of the low supported python version?
Post by Bo Peng
the try/except tests have been removed, and a test for SOCKET_H is
added.
I have just tested, with the newest version (just submitted), you
should be able to run scons ... install. (lyxclient will be correctly
ignored.)
Abdel, I changed your patch to MKDIR_ONE_ARG to a seemingly cleaner one.
What? Are you saying you destroyed my first attempt at python
programming ever?

:-)
Abdel.
Bo Peng
2006-05-16 15:12:59 UTC
Permalink
Post by Abdelrazak Younes
Post by Bo Peng
I was not aware that scons does not handle python exceptions well so
Is that because of the low supported python version?
Also maybe because scons scans all instructions before executing any
of the real building step. Then, if a compile step fails, it does not
have to trigger the try/except around it in the original SConscript
file.
Post by Abdelrazak Younes
Post by Bo Peng
Abdel, I changed your patch to MKDIR_ONE_ARG to a seemingly cleaner one.
What? Are you saying you destroyed my first attempt at python
programming ever?
I did realize that and actually hesitated, but the urge to get rid of
duplicate test sources (source_2 etc) won. :-)

Bo
Abdelrazak Younes
2006-05-16 15:18:59 UTC
Permalink
Post by Bo Peng
Post by Abdelrazak Younes
Post by Bo Peng
I was not aware that scons does not handle python exceptions well so
Is that because of the low supported python version?
Also maybe because scons scans all instructions before executing any
of the real building step. Then, if a compile step fails, it does not
have to trigger the try/except around it in the original SConscript
file.
Post by Abdelrazak Younes
Post by Bo Peng
Abdel, I changed your patch to MKDIR_ONE_ARG to a seemingly cleaner
one.
What? Are you saying you destroyed my first attempt at python
programming ever?
I did realize that and actually hesitated, but the urge to get rid of
duplicate test sources (source_2 etc) won. :-)
conf.TryLink('#include <unistd.h>' + check_mkdir_one_arg_source, '.c')

Indeed, this is cleaner... Note though that I was just following your
advice about source_2 etc ;-)

Abdel.
Bo Peng
2006-05-16 15:52:34 UTC
Permalink
Post by Abdelrazak Younes
conf.TryLink('#include <unistd.h>' + check_mkdir_one_arg_source, '.c')
Indeed, this is cleaner... Note though that I was just following your
advice about source_2 etc ;-)
I do remember that the idea was mine. :-) But even with that idea,
"TryLink(_source_1) or TryLink(_source_2)" is better than nested
if/else, and you should do _source_2 = "include blah" + _source_1.

Anyway, I am pleased that you can do python now.

Bo
Continue reading on narkive:
Loading...