Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-23 Thread Abdel

Abdel a écrit :

Paul A. Rubin a écrit :

Abdel wrote:


My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).


Sorry, late arrival to this thread, so I apologize if I'm repeating 
something said elsewhere.  The version of sed you're using is known to 
choke on DOS scripts (due to the CR/LF line terminators IIRC). 
Upgrading to sed 4.anything should eliminate at least that problem. 
This was documented (repeatedly and painfully) in the user list.


The only version of sed-4 for windows is from GnuWin32 not Mingw nor 
MSYS. So I am a bit scared at the consequence of replacing it because 
the build process is so fragile. And I was told to stick with MSYS and 
Mingw...


And this advice was right. One should never mix Gnuwin32 stuff with MSYS 
stuff because Gnuwin32 assumes you are running within CMD and MSYS 
assumes you are running within sh. So Gnuwin32 sed is fine for lyx 
installation but definitely not for compilation.




Anyway, lyx is now in the link stage (ld taking 400 megs, crossing my 
fingers) but it's a partial build because I was not able to build the po 
subdir. I'll try to replace sed and see what's happening.


Thanks for the info,
Abdel.



Paul









Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-23 Thread Abdel

Abdel a écrit :

Paul A. Rubin a écrit :

Abdel wrote:


My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).


Sorry, late arrival to this thread, so I apologize if I'm repeating 
something said elsewhere.  The version of sed you're using is known to 
choke on DOS scripts (due to the CR/LF line terminators IIRC). 
Upgrading to sed 4.anything should eliminate at least that problem. 
This was documented (repeatedly and painfully) in the user list.


The only version of sed-4 for windows is from GnuWin32 not Mingw nor 
MSYS. So I am a bit scared at the consequence of replacing it because 
the build process is so fragile. And I was told to stick with MSYS and 
Mingw...


And this advice was right. One should never mix Gnuwin32 stuff with MSYS 
stuff because Gnuwin32 assumes you are running within CMD and MSYS 
assumes you are running within sh. So Gnuwin32 sed is fine for lyx 
installation but definitely not for compilation.




Anyway, lyx is now in the link stage (ld taking 400 megs, crossing my 
fingers) but it's a partial build because I was not able to build the po 
subdir. I'll try to replace sed and see what's happening.


Thanks for the info,
Abdel.



Paul









Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Michael Gerz

Abdel wrote:

With the shared version all demos and examples compile and execute OK. 
Ouf... But the linkage only took an hour and sometimes more than 400 
Megs! I understand why Michael insist on compiling static Qt.


Well, I told you! (What is the shared version good for, as long as LyX 
is the only app using qtwin? (Why do people make their lives more 
difficult than necessary? (You are wasting your time)))



I had lots of trouble trying to compile aspell so I gave up.


Why? It should be pretty simple. Did you follow my recipe? Did you 
download the right version (0.60.4)? Have you installed all the latest 
MinGW packages?


Michael
--

1 MinGW  MSYS

1.1 Download the following packages from http://www.mingw.org/download.shtml

  binutils-2.16.91-...tar.gz
  gcc-core-3.4.4-...tar.gz
  gcc-g++-3.4.4-...tar.gz
  mingw32-make-3.80.0-3.tar.gz
  mingw-runtime-3.9.tar.gz
  mingw-utils-0.3.tar.gz
  MSYS-1.0.11-...exe
  msys-autoconf-2.59.tar.bz2
  msys-automake-1.8.2.tar.bz2
  msysDTK-1.0.1.exe
  msys-libtool-1.5.tar.bz2
  w32api-3.5.tar.gz

1.2 Install in C:\MinGW

  binutils, gcc-core, gcc-g++, mingw32-make, mingw-runtime,
  mingw-utils, w32api

1.3 Install ... in C:\msys

  MSYS, msys-autoconf, msys-automake, msysDTK, msys-libtool

--

2. Gettext  Libiconv

2.1 Download the following packages from 
http://www.gnu.org/software/gettext/gettext.html

  gettext-tools-0.13.1.bin.woe32.zip
  gettext-runtime-0.13.1.bin.woe32.zip
  libiconv-1.9.1.bin.woe32.zip

2.2 Extract the three packages in C:\MinGW

--

3 qtwin

3.1 Get the latest CVS version

Open the MSYS window/bash. In your home directory, enter

  cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin login
  return (no password)
  cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin co \
 -r QT_WIN32_3_3_BRANCH qt-3

3.2 Compile a static (!) QT library (dynamic linking with MinGW causes 
nightmares!)

Open Window command line (run cmd.exe) and enter 

  cd path_to_your_qtwin_dir
  set QMAKESPEC=win32-g++
  setenv.bat
  configure.bat -release -static

--

4. Aspell

4.1 Download the following packages from http://aspell.net/

  aspell-0.60.4.tar.gz
  aspell6-en-6.0-0.tar.bz2
  aspell6-de-20030222-1.tar.bz2

4.2 Extract all files in your MSYS home directory 

4.3 Enter 

  cd aspell-0.60.4
  ./configure --enable-static --disable-shared 
--prefix=c:/Programme/Aspell-0.60.4

4.4 Edit file ./common/file_util.cpp: Add before line 29

  #include asc_ctype.hpp

4.5 Enter

  make
  make install

4.6 Compile the German dictionary 

  cd ../aspell6-de-20030222-1
  export PATH=/c/Programme/Aspell-0.60.4/bin:$PATH
  ./configure
  make
  make install

4.7 Repeat 4.6 for the English dictionary

--

5. LyX

5.1 Get the latest CVS version

Open the MSYS window/bash. In your home directory, enter

  export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/lyx
  cvs login
  lyx
  cvs checkout -r BRANCH_1_3_X -d lyx-devel-1.3.X lyx-devel

5.2 Get the latest CVS docs (for LyX 1.3.X only)

  cd lyx-devel-1.3.X/lib
  cvs checkout -r BRANCH_1_3_X lyxdoc
  mv doc/*.in lyxdoc
  rm -f -r doc
  mv lyxdoc doc

5.3 Enter directory lyx-devel-1.3.X

5.4 Enter

  export LDFLAGS=-L/home/user/qt-3/lib -lqtmain -lqt-mt -lopengl32 -lglu32 
-lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 
-luuid -limm32 -lwinmm -lwsock32 -lwinspool

5.5 Edit file ./config/qt.m4: Remove line 239 (i.e., remove MinGW support - 
don't laugh)

5.6 Enter

./autogen.sh

5.7 Edit file ./configure: Change line 12520 (move conftest.$ac_ext in front of 
FLAGS)

  ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS $CPPFLAGS 
$LDFLAGS $LIBS 5'

5.8 Configure LyX

  ./configure --without-x --with-pspell 
--with-extra-prefix=/c/Programme/Aspell-0.60.4 \
  --with-frontend=qt --disable-maintainer-mode --disable-debug 
--enable-optimization   \
  --with-qt-dir=/home/user/qt-3 --prefix=/c/Programme/LyX-1.3.7

For LyX-1.4:

  export PATH=/c/Programme/Python23:$PATH (you need Python!)
  set CXXFLAGS=-gstabs(reduces debug symbol size)

  ./configure --without-x --with-aspell 
--with-extra-prefix=/c/Programme/Aspell-0.60.4 \
  --with-frontend=qt --disable-maintainer-mode --enable-debug 
--enable-optimization   \
  --with-qt-dir=/home/user/qt-3 --prefix=/c/Programme/LyX-1.4.0 \
  --disable-pch --disable-stdlib-debug --enable-concept-checks

5.9 Enter

  make
  make 

Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:

Hello Angus,

With the shared version all demos and examples compile and execute OK.
Ouf... But the linkage only took an hour and sometimes more than 400
Megs! I understand why Michael insist on compiling static Qt.

I had lots of trouble trying to compile aspell so I gave up.


You can always go back to this later.


Now onto lyx...
The configure fails with:

checking types of arguments for select... int,int *,struct timeval *


Your configure.ac has DOS-style line endings. I believe that there's some
magic in the build_lyxwin.sh script to clean that up...


You're right but it failed apparently:

sed: -e expression #2, char 2: Unterminated `s' command



Try the attached dos2unix.sed script as
$ sed -f dos2unix.sed configure.ac  tmp


it does the same:
sed: file dos2unix.sed line 1: Unterminated `s' command

I guess my version of sed is bad but I cannot find any other on mingw site.

Sorry for all this. I'll maybe wait for a formal (beta) delivery of lyx 1.4

Thanks a lot anyway,
Abdel.



$ mv tmp configure.ac





s/
$//




s/$/
/




Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Michael Gerz

Abdel wrote:

Sorry for all this. I'll maybe wait for a formal (beta) delivery of 
lyx 1.4


I don't see any reason why you shouldn't be able to create a working LyX 
1.4 binary using MinGW. If there is anything wrong with my recipe, 
please let me know.


Michael


Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Michael Gerz a écrit :

Abdel wrote:

With the shared version all demos and examples compile and execute OK. 
Ouf... But the linkage only took an hour and sometimes more than 400 
Megs! I understand why Michael insist on compiling static Qt.


Well, I told you! (What is the shared version good for, as long as LyX 
is the only app using qtwin? (Why do people make their lives more 
difficult than necessary? (You are wasting your time)))


I completely agree and I first try the static version but all the demo 
and examples crashed, including the Qtdesigner. I'll try to find 
sometime to compile in debug mode and see what's happening.





I had lots of trouble trying to compile aspell so I gave up.


Why? It should be pretty simple. Did you follow my recipe? Did you 
download the right version (0.60.4)?


Yes. I modified './common/file_util.cpp' as you recommended. Plus I had 
to put '#undef printf' at the end of './common/gettext.h'. Then the 
compilation stopped with the following:


Making all in .
D:\mingw\bin\make.exe[1]: Entering directory 
`D:/msys/home/yns/src/aspell-0.60.4'
/bin/perl gen/mk-static-filter.pl modules/filter/url-filter.info 
modules/filter/email-filter.info modules/filter/tex-filter.info 
modules/filter/sgml-filter.info modules/filter/html-filter.info 
modules/filter/context-filter.info modules/filter/nroff-filter.info 
modules/filter/texinfo-filter.info
process_begin: CreateProcess((null), /bin/perl gen/mk-static-filter.pl 
modules/filter/url-filter.info modules/filter/email-filter.info 
modules/filter/tex-filter.info modules/filter/sgml-filter.info 
modules/filter/html-filter.info modules/filter/context-filter.info 
modules/filter/nroff-filter.info modules/filter/texinfo-filter.info, 
...) failed.

make (e=3): The system cannot find the path specified.
D:\mingw\bin\make.exe[1]: *** [gen/static_filters.src.cpp] Error 3
D:\mingw\bin\make.exe[1]: Leaving directory 
`D:/msys/home/yns/src/aspell-0.60.4'

D:\mingw\bin\make.exe: *** [all-recursive] Error 1

So I gave up.

Have you installed all the latest 
MinGW packages?


I had many problems in the past with the MSYS DTK (1.0.11) so I had 
installed the latest mingw package manually in the mingw directory 
(including perl, automake and autoconf). I guess this is source of all 
my problems. I will try a parallel install of MSYS+MINGW and see what 
happens.


Abdel.




Michael




--

1 MinGW  MSYS

1.1 Download the following packages from http://www.mingw.org/download.shtml

  binutils-2.16.91-...tar.gz
  gcc-core-3.4.4-...tar.gz
  gcc-g++-3.4.4-...tar.gz
  mingw32-make-3.80.0-3.tar.gz
  mingw-runtime-3.9.tar.gz
  mingw-utils-0.3.tar.gz
  MSYS-1.0.11-...exe
  msys-autoconf-2.59.tar.bz2
  msys-automake-1.8.2.tar.bz2
  msysDTK-1.0.1.exe
  msys-libtool-1.5.tar.bz2
  w32api-3.5.tar.gz

1.2 Install in C:\MinGW

  binutils, gcc-core, gcc-g++, mingw32-make, mingw-runtime,
  mingw-utils, w32api

1.3 Install ... in C:\msys

  MSYS, msys-autoconf, msys-automake, msysDTK, msys-libtool

--

2. Gettext  Libiconv

2.1 Download the following packages from 
http://www.gnu.org/software/gettext/gettext.html

  gettext-tools-0.13.1.bin.woe32.zip
  gettext-runtime-0.13.1.bin.woe32.zip
  libiconv-1.9.1.bin.woe32.zip

2.2 Extract the three packages in C:\MinGW

--

3 qtwin

3.1 Get the latest CVS version

Open the MSYS window/bash. In your home directory, enter

  cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin login
  return (no password)
  cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin co \
 -r QT_WIN32_3_3_BRANCH qt-3

3.2 Compile a static (!) QT library (dynamic linking with MinGW causes 
nightmares!)

Open Window command line (run cmd.exe) and enter 


  cd path_to_your_qtwin_dir
  set QMAKESPEC=win32-g++
  setenv.bat
  configure.bat -release -static

--


4. Aspell

4.1 Download the following packages from http://aspell.net/

  aspell-0.60.4.tar.gz
  aspell6-en-6.0-0.tar.bz2
  aspell6-de-20030222-1.tar.bz2

4.2 Extract all files in your MSYS home directory 

4.3 Enter 


  cd aspell-0.60.4
  ./configure --enable-static --disable-shared 
--prefix=c:/Programme/Aspell-0.60.4

4.4 Edit file ./common/file_util.cpp: Add before line 29

  #include asc_ctype.hpp

4.5 Enter

  make
  make install

4.6 Compile the German dictionary 


  cd ../aspell6-de-20030222-1
  export PATH=/c/Programme/Aspell-0.60.4/bin:$PATH
  ./configure
  make
  make install

4.7 Repeat 4.6 for the English dictionary


Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Michael Gerz

Abdel wrote:

I completely agree and I first try the static version but all the demo 
and examples crashed, including the Qtdesigner. I'll try to find 
sometime to compile in debug mode and see what's happening.


Ah. I forgot to mention: Ignore this!

There is a bug in qtwin/src/kernel/qapplication_win.cpp which doesn't 
show up if you run LyX but makes all qtwin examples fail. If you change 
qCreateCommandLine to


void qCreateCommandLine( QStringList cmd_lst, int argc, 
QMemArraypchar argv )

{
   argc = 0;
   /* set size of argv ( + 1 because of \0 for last element ) */
   argv.resize( argc + 1 );
   argv[ 0 ] = NULL;
}

the problem vanishes (which drops all cmd line args, of course, but I 
don't care about them... but maybe the qtwin guy does (Christian???))


Yes. I modified './common/file_util.cpp' as you recommended. Plus I 
had to put '#undef printf' at the end of './common/gettext.h'. Then 
the compilation stopped with the following:


Making all in .
D:\mingw\bin\make.exe[1]: Entering directory 
`D:/msys/home/yns/src/aspell-0.60.4'
/bin/perl gen/mk-static-filter.pl modules/filter/url-filter.info 
modules/filter/email-filter.info modules/filter/tex-filter.info 
modules/filter/sgml-filter.info modules/filter/html-filter.info 
modules/filter/context-filter.info modules/filter/nroff-filter.info 
modules/filter/texinfo-filter.info
process_begin: CreateProcess((null), /bin/perl gen/mk-static-filter.pl 
modules/filter/url-filter.info modules/filter/email-filter.info 
modules/filter/tex-filter.info modules/filter/sgml-filter.info 
modules/filter/html-filter.info modules/filter/context-filter.info 
modules/filter/nroff-filter.info modules/filter/texinfo-filter.info, 
...) failed.

make (e=3): The system cannot find the path specified.
D:\mingw\bin\make.exe[1]: *** [gen/static_filters.src.cpp] Error 3
D:\mingw\bin\make.exe[1]: Leaving directory 
`D:/msys/home/yns/src/aspell-0.60.4'

D:\mingw\bin\make.exe: *** [all-recursive] Error 1


This doesn't look like an Aspell-specific error. You should definitely 
re-install MinGW.


I had many problems in the past with the MSYS DTK (1.0.11) so I had 
installed the latest mingw package manually in the mingw directory 
(including perl, automake and autoconf). I guess this is source of all 
my problems. I will try a parallel install of MSYS+MINGW and see what 
happens.


You should install MSYS-1.0.11 and msysDTK-1.0.1 before you install all 
other msys packages. I guess there is some overlapping. And rename the 
directory of the former MinGW installation. Having two different 
versions of MinGW on the same machine looks like another promising 
source of problems...


Michael



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Michael Gerz a écrit :

Abdel wrote:

I completely agree and I first try the static version but all the demo 
and examples crashed, including the Qtdesigner. I'll try to find 
sometime to compile in debug mode and see what's happening.


Ah. I forgot to mention: Ignore this!


ok... Next time I'll compile static.

You should install MSYS-1.0.11 and msysDTK-1.0.1 before you install all 
other msys packages. I guess there is some overlapping. And rename the 
directory of the former MinGW installation. Having two different 
versions of MinGW on the same machine looks like another promising 
source of problems...


IMHO, this all MSYS-AutoXXX-Perl is a mess! You should really think 
about changing your building process with something that is really 
portable: scons is good candidate (http://www.scons.org). It's written 
in python (you will get rid of perl :-)).


Abdel.



Michael






Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Angus Leeming
Abdel wrote:

 Angus Leeming a écrit :
 Abdel wrote:
 Hello Angus,

 With the shared version all demos and examples compile and execute OK.
 Ouf... But the linkage only took an hour and sometimes more than 400
 Megs! I understand why Michael insist on compiling static Qt.

 I had lots of trouble trying to compile aspell so I gave up.
 
 You can always go back to this later.
 
 Now onto lyx...
 The configure fails with:

 checking types of arguments for select... int,int *,struct timeval *
 
 Your configure.ac has DOS-style line endings. I believe that there's
 some magic in the build_lyxwin.sh script to clean that up...
 
 You're right but it failed apparently:
 
 sed: -e expression #2, char 2: Unterminated `s' command
 
 
 Try the attached dos2unix.sed script as
 $ sed -f dos2unix.sed configure.ac  tmp
 
 it does the same:
 sed: file dos2unix.sed line 1: Unterminated `s' command

Ok. We have several options.

1. If you have the MSYS-DTK installed then you'll have dos2unix.exe:

  $ dos2unix.exe configure.ac

However, that changes more than just line endings; it may or may not break
stuff...

2. Recreate my sed script yourself. From an MSYS terminal window:

  $ sed 's/^M$//' configure.ac  tmp
  $ mv tmp configure.ac

where ^M is generated as the key sequence Cntl-V Cntl-M.

3. Try the scripts (attached) again. This time they're compressed so the
transport process doesn't mess them up.

  $ gunzip dos2unix.sed.gz
  $ sed -f dos2unix.sed configure.ac  tmp

4. Use the 1.4 configure script at.
   http://www.lyx.org/~leeming/configure.gz
Don't run autogen.sh or it'll be overwritten.

 Sorry for all this. I'll maybe wait for a formal (beta) delivery of lyx
 1.4

shrugAnd who is going to compile that?/shrug

-- 
Angus

dos2unix.sed.gz
Description: GNU Zip compressed data


unix2dos.sed.gz
Description: GNU Zip compressed data


Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:


Angus Leeming a écrit :

Abdel wrote:

Hello Angus,


sed: -e expression #2, char 2: Unterminated `s' command


Try the attached dos2unix.sed script as
$ sed -f dos2unix.sed configure.ac  tmp

it does the same:
sed: file dos2unix.sed line 1: Unterminated `s' command


Ok. We have several options.


Option 2 below was fine bu I also had to correct configure. I had to 
change configure as recommended by Mickael in his recipe:


5.7 Edit file ./configure: Change line 12520 (move conftest.$ac_ext in 
front of FLAGS)


ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS $CPPFLAGS 
$LDFLAGS $LIBS 5'


But in my case it was lines 12001 and 15515.


 1. If you have the MSYS-DTK installed then you'll have dos2unix.exe:

   $ dos2unix.exe configure.ac

 However, that changes more than just line endings; it may or may not 
break

 stuff...

 2. Recreate my sed script yourself. From an MSYS terminal window:

   $ sed 's/^M$//' configure.ac  tmp
   $ mv tmp configure.ac

 where ^M is generated as the key sequence Cntl-V Cntl-M.

 3. Try the scripts (attached) again. This time they're compressed so the
 transport process doesn't mess them up.

   $ gunzip dos2unix.sed.gz
   $ sed -f dos2unix.sed configure.ac  tmp

 4. Use the 1.4 configure script at.
http://www.lyx.org/~leeming/configure.gz
 Don't run autogen.sh or it'll be overwritten.

Now the fun begins...

| sed 's/\\//g'  layouts_l10n.pot
sed: -e expression #2, char 8: Unterminated `s' command
make[3]: *** [layouts_l10n.pot] Error 1
make[3]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
make[2]: *** [LyX.pot-update] Error 2
make[2]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
D:\mingw\bin\make.exe[1]: *** [LyX.pot] Error 2
D:\mingw\bin\make.exe[1]: Leaving directory 
`D:/msys/home/yns/src/lyx-devel/po'

D:\mingw\bin\make.exe: *** [all-recursive] Error 1

This looks like the same kind of error. I looked at the po/Makefile but 
I don't know sed at all. Line 735 is this:


${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc \
| sed 's/\\//g'  $@

Is that a correct sed expression? I tried a make clean  make and then, 
there is a different error:


$ cd po

[EMAIL PROTECTED] ~/src/lyx-devel/po
$ make clean
FIND: Parameter format not correct
rm -f *.insert-header
rm -f remove-potcdate.sed
rm -f stamp-poT
rm -f core core.* LyX.po LyX.1po LyX.2po *.new.po
rm -fr *.o

[EMAIL PROTECTED] ~/src/lyx-devel/po
$ make
FIND: Parameter format not correct
make LyX.pot-update
FIND: Parameter format not correct
make[1]: Entering directory `D:/msys/home/yns/src/lyx-devel/po'
sed -e '/^#/d' remove-potcdate.sin  t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
make l10n_pots
FIND: Parameter format not correct
make[2]: Entering directory `D:/msys/home/yns/src/lyx-devel/po'
cat xforms_l10n.pot qt_l10n.pot layouts_l10n.pot languages_l10n.pot 
ui_l10n.pot  | \
msguniq -o LyX.po  rm -f  xforms_l10n.pot qt_l10n.pot layouts_l10n.pot 
languag es_l10n.pot ui_l10n.pot

stdin:5: end-of-line within string
stdin:6: end-of-line within string
stdin:7: end-of-line within string
stdin:8: end-of-line within string
D:\mingw\bin\msguniq.exe: stdin: warning: Charset 
ISO-8859-1Content-Transfer- 
 Encoding: is not a portable encoding name.
Message conversion to 
user's charset  might not work.

D:\mingw\bin\msguniq.exe: found 4 fatal errors
make[2]: *** [l10n_pots] Error 1
make[2]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
make[1]: *** [LyX.pot-update] Error 2
make[1]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
D:\mingw\bin\make.exe: *** [LyX.pot] Error 2





Sorry for all this. I'll maybe wait for a formal (beta) delivery of lyx
1.4


shrugAnd who is going to compile that?/shrug


For my defense I'd say that I have invested a lot of time already on 
that. I think I am close but it's really not fun.


Thanks,
Abdel.



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Paul A. Rubin

Abdel wrote:


My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).


Sorry, late arrival to this thread, so I apologize if I'm repeating 
something said elsewhere.  The version of sed you're using is known to 
choke on DOS scripts (due to the CR/LF line terminators IIRC). 
Upgrading to sed 4.anything should eliminate at least that problem. 
This was documented (repeatedly and painfully) in the user list.


Paul



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Paul A. Rubin a écrit :

Abdel wrote:


My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).


Sorry, late arrival to this thread, so I apologize if I'm repeating 
something said elsewhere.  The version of sed you're using is known to 
choke on DOS scripts (due to the CR/LF line terminators IIRC). Upgrading 
to sed 4.anything should eliminate at least that problem. This was 
documented (repeatedly and painfully) in the user list.


The only version of sed-4 for windows is from GnuWin32 not Mingw nor 
MSYS. So I am a bit scared at the consequence of replacing it because 
the build process is so fragile. And I was told to stick with MSYS and 
Mingw...


Anyway, lyx is now in the link stage (ld taking 400 megs, crossing my 
fingers) but it's a partial build because I was not able to build the po 
subdir. I'll try to replace sed and see what's happening.


Thanks for the info,
Abdel.



Paul






Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Angus Leeming
Abdel wrote:
 For my defense I'd say that I have invested a lot of time already on
 that. I think I am close but it's really not fun.

Courage!

Why not skip the po directory for now and try
  $ cd src  make

-- 
Angus



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Good morning Angus,

Angus Leeming a écrit :

Abdel wrote:

For my defense I'd say that I have invested a lot of time already on
that. I think I am close but it's really not fun.


Courage!

Why not skip the po directory for now and try
  $ cd src  make


Yes that's what I did yesterday. But lyx-qt.exe failed to link at the 
end... Memory exhausted! 500 Megs of ram and 700 Megs of VM were used 
but that wasn't enough :-( . I have compiled the static version of qt 
this night. Let's see if it is better.


Abdel.



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Michael Gerz

Abdel wrote:

With the shared version all demos and examples compile and execute OK. 
Ouf... But the linkage only took an hour and sometimes more than 400 
Megs! I understand why Michael insist on compiling static Qt.


Well, I told you! (What is the shared version good for, as long as LyX 
is the only app using qtwin? (Why do people make their lives more 
difficult than necessary? (You are wasting your time)))



I had lots of trouble trying to compile aspell so I gave up.


Why? It should be pretty simple. Did you follow my recipe? Did you 
download the right version (0.60.4)? Have you installed all the latest 
MinGW packages?


Michael
--

1 MinGW & MSYS

1.1 Download the following packages from http://www.mingw.org/download.shtml

  binutils-2.16.91-...tar.gz
  gcc-core-3.4.4-...tar.gz
  gcc-g++-3.4.4-...tar.gz
  mingw32-make-3.80.0-3.tar.gz
  mingw-runtime-3.9.tar.gz
  mingw-utils-0.3.tar.gz
  MSYS-1.0.11-...exe
  msys-autoconf-2.59.tar.bz2
  msys-automake-1.8.2.tar.bz2
  msysDTK-1.0.1.exe
  msys-libtool-1.5.tar.bz2
  w32api-3.5.tar.gz

1.2 Install in C:\MinGW

  binutils, gcc-core, gcc-g++, mingw32-make, mingw-runtime,
  mingw-utils, w32api

1.3 Install ... in C:\msys

  MSYS, msys-autoconf, msys-automake, msysDTK, msys-libtool

--

2. Gettext & Libiconv

2.1 Download the following packages from 
http://www.gnu.org/software/gettext/gettext.html

  gettext-tools-0.13.1.bin.woe32.zip
  gettext-runtime-0.13.1.bin.woe32.zip
  libiconv-1.9.1.bin.woe32.zip

2.2 Extract the three packages in C:\MinGW

--

3 qtwin

3.1 Get the latest CVS version

Open the MSYS window/bash. In your home directory, enter

  cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin login
   (no password)
  cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin co \
 -r QT_WIN32_3_3_BRANCH qt-3

3.2 Compile a static (!) QT library (dynamic linking with MinGW causes 
nightmares!)

Open Window command line (run cmd.exe) and enter 

  cd 
  set QMAKESPEC=win32-g++
  setenv.bat
  configure.bat -release -static

--

4. Aspell

4.1 Download the following packages from http://aspell.net/

  aspell-0.60.4.tar.gz
  aspell6-en-6.0-0.tar.bz2
  aspell6-de-20030222-1.tar.bz2

4.2 Extract all files in your MSYS home directory 

4.3 Enter 

  cd aspell-0.60.4
  ./configure --enable-static --disable-shared 
--prefix=c:/Programme/Aspell-0.60.4

4.4 Edit file ./common/file_util.cpp: Add before line 29

  #include "asc_ctype.hpp"

4.5 Enter

  make
  make install

4.6 Compile the German dictionary 

  cd ../aspell6-de-20030222-1
  export PATH=/c/Programme/Aspell-0.60.4/bin:$PATH
  ./configure
  make
  make install

4.7 Repeat 4.6 for the English dictionary

--

5. LyX

5.1 Get the latest CVS version

Open the MSYS window/bash. In your home directory, enter

  export CVSROOT=:pserver:[EMAIL PROTECTED]:/cvs/lyx
  cvs login
  lyx
  cvs checkout -r BRANCH_1_3_X -d lyx-devel-1.3.X lyx-devel

5.2 Get the latest CVS docs (for LyX 1.3.X only)

  cd lyx-devel-1.3.X/lib
  cvs checkout -r BRANCH_1_3_X lyxdoc
  mv doc/*.in lyxdoc
  rm -f -r doc
  mv lyxdoc doc

5.3 Enter directory "lyx-devel-1.3.X"

5.4 Enter

  export LDFLAGS="-L/home/user/qt-3/lib -lqtmain -lqt-mt -lopengl32 -lglu32 
-lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 
-luuid -limm32 -lwinmm -lwsock32 -lwinspool"

5.5 Edit file ./config/qt.m4: Remove line 239 (i.e., remove MinGW support - 
don't laugh)

5.6 Enter

./autogen.sh

5.7 Edit file ./configure: Change line 12520 (move conftest.$ac_ext in front of 
FLAGS)

  ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS $CPPFLAGS 
$LDFLAGS $LIBS >&5'

5.8 Configure LyX

  ./configure --without-x --with-pspell 
--with-extra-prefix=/c/Programme/Aspell-0.60.4 \
  --with-frontend=qt --disable-maintainer-mode --disable-debug 
--enable-optimization   \
  --with-qt-dir=/home/user/qt-3 --prefix=/c/Programme/LyX-1.3.7

For LyX-1.4:

  export PATH=/c/Programme/Python23:$PATH (you need Python!)
  set CXXFLAGS=-gstabs(reduces debug symbol size)

  ./configure --without-x --with-aspell 
--with-extra-prefix=/c/Programme/Aspell-0.60.4 \
  --with-frontend=qt --disable-maintainer-mode --enable-debug 
--enable-optimization   \
  --with-qt-dir=/home/user/qt-3 --prefix=/c/Programme/LyX-1.4.0 \
  --disable-pch --disable-stdlib-debug --enable-concept-checks

5.9 Enter

  make
  make install

5.10 Create 

Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:

Hello Angus,

With the shared version all demos and examples compile and execute OK.
Ouf... But the linkage only took an hour and sometimes more than 400
Megs! I understand why Michael insist on compiling static Qt.

I had lots of trouble trying to compile aspell so I gave up.


You can always go back to this later.


Now onto lyx...
The configure fails with:

checking types of arguments for select... int,int *,struct timeval *


Your configure.ac has DOS-style line endings. I believe that there's some
magic in the build_lyxwin.sh script to clean that up...


You're right but it failed apparently:

sed: -e expression #2, char 2: Unterminated `s' command



Try the attached dos2unix.sed script as
$ sed -f dos2unix.sed configure.ac > tmp


it does the same:
sed: file dos2unix.sed line 1: Unterminated `s' command

I guess my version of sed is bad but I cannot find any other on mingw site.

Sorry for all this. I'll maybe wait for a formal (beta) delivery of lyx 1.4

Thanks a lot anyway,
Abdel.



$ mv tmp configure.ac





s/
$//




s/$/
/




Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Michael Gerz

Abdel wrote:

Sorry for all this. I'll maybe wait for a formal (beta) delivery of 
lyx 1.4


I don't see any reason why you shouldn't be able to create a working LyX 
1.4 binary using MinGW. If there is anything wrong with my recipe, 
please let me know.


Michael


Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Michael Gerz a écrit :

Abdel wrote:

With the shared version all demos and examples compile and execute OK. 
Ouf... But the linkage only took an hour and sometimes more than 400 
Megs! I understand why Michael insist on compiling static Qt.


Well, I told you! (What is the shared version good for, as long as LyX 
is the only app using qtwin? (Why do people make their lives more 
difficult than necessary? (You are wasting your time)))


I completely agree and I first try the static version but all the demo 
and examples crashed, including the Qtdesigner. I'll try to find 
sometime to compile in debug mode and see what's happening.





I had lots of trouble trying to compile aspell so I gave up.


Why? It should be pretty simple. Did you follow my recipe? Did you 
download the right version (0.60.4)?


Yes. I modified './common/file_util.cpp' as you recommended. Plus I had 
to put '#undef printf' at the end of './common/gettext.h'. Then the 
compilation stopped with the following:


Making all in .
D:\mingw\bin\make.exe[1]: Entering directory 
`D:/msys/home/yns/src/aspell-0.60.4'
/bin/perl gen/mk-static-filter.pl modules/filter/url-filter.info 
modules/filter/email-filter.info modules/filter/tex-filter.info 
modules/filter/sgml-filter.info modules/filter/html-filter.info 
modules/filter/context-filter.info modules/filter/nroff-filter.info 
modules/filter/texinfo-filter.info
process_begin: CreateProcess((null), /bin/perl gen/mk-static-filter.pl 
modules/filter/url-filter.info modules/filter/email-filter.info 
modules/filter/tex-filter.info modules/filter/sgml-filter.info 
modules/filter/html-filter.info modules/filter/context-filter.info 
modules/filter/nroff-filter.info modules/filter/texinfo-filter.info, 
...) failed.

make (e=3): The system cannot find the path specified.
D:\mingw\bin\make.exe[1]: *** [gen/static_filters.src.cpp] Error 3
D:\mingw\bin\make.exe[1]: Leaving directory 
`D:/msys/home/yns/src/aspell-0.60.4'

D:\mingw\bin\make.exe: *** [all-recursive] Error 1

So I gave up.

Have you installed all the latest 
MinGW packages?


I had many problems in the past with the MSYS DTK (1.0.11) so I had 
installed the latest mingw package manually in the mingw directory 
(including perl, automake and autoconf). I guess this is source of all 
my problems. I will try a parallel install of MSYS+MINGW and see what 
happens.


Abdel.




Michael




--

1 MinGW & MSYS

1.1 Download the following packages from http://www.mingw.org/download.shtml

  binutils-2.16.91-...tar.gz
  gcc-core-3.4.4-...tar.gz
  gcc-g++-3.4.4-...tar.gz
  mingw32-make-3.80.0-3.tar.gz
  mingw-runtime-3.9.tar.gz
  mingw-utils-0.3.tar.gz
  MSYS-1.0.11-...exe
  msys-autoconf-2.59.tar.bz2
  msys-automake-1.8.2.tar.bz2
  msysDTK-1.0.1.exe
  msys-libtool-1.5.tar.bz2
  w32api-3.5.tar.gz

1.2 Install in C:\MinGW

  binutils, gcc-core, gcc-g++, mingw32-make, mingw-runtime,
  mingw-utils, w32api

1.3 Install ... in C:\msys

  MSYS, msys-autoconf, msys-automake, msysDTK, msys-libtool

--

2. Gettext & Libiconv

2.1 Download the following packages from 
http://www.gnu.org/software/gettext/gettext.html

  gettext-tools-0.13.1.bin.woe32.zip
  gettext-runtime-0.13.1.bin.woe32.zip
  libiconv-1.9.1.bin.woe32.zip

2.2 Extract the three packages in C:\MinGW

--

3 qtwin

3.1 Get the latest CVS version

Open the MSYS window/bash. In your home directory, enter

  cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin login
   (no password)
  cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/qtwin co \
 -r QT_WIN32_3_3_BRANCH qt-3

3.2 Compile a static (!) QT library (dynamic linking with MinGW causes 
nightmares!)

Open Window command line (run cmd.exe) and enter 


  cd 
  set QMAKESPEC=win32-g++
  setenv.bat
  configure.bat -release -static

--


4. Aspell

4.1 Download the following packages from http://aspell.net/

  aspell-0.60.4.tar.gz
  aspell6-en-6.0-0.tar.bz2
  aspell6-de-20030222-1.tar.bz2

4.2 Extract all files in your MSYS home directory 

4.3 Enter 


  cd aspell-0.60.4
  ./configure --enable-static --disable-shared 
--prefix=c:/Programme/Aspell-0.60.4

4.4 Edit file ./common/file_util.cpp: Add before line 29

  #include "asc_ctype.hpp"

4.5 Enter

  make
  make install

4.6 Compile the German dictionary 


  cd ../aspell6-de-20030222-1
  export PATH=/c/Programme/Aspell-0.60.4/bin:$PATH
  ./configure
  make
  make install

4.7 Repeat 4.6 for the English dictionary

--

5. LyX


Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Michael Gerz

Abdel wrote:

I completely agree and I first try the static version but all the demo 
and examples crashed, including the Qtdesigner. I'll try to find 
sometime to compile in debug mode and see what's happening.


Ah. I forgot to mention: Ignore this!

There is a bug in qtwin/src/kernel/qapplication_win.cpp which doesn't 
show up if you run LyX but makes all qtwin examples fail. If you change 
qCreateCommandLine to


void qCreateCommandLine( QStringList _lst, int , 
QMemArray  )

{
   argc = 0;
   /* set size of argv ( + 1 because of \0 for last element ) */
   argv.resize( argc + 1 );
   argv[ 0 ] = NULL;
}

the problem vanishes (which drops all cmd line args, of course, but I 
don't care about them... but maybe the qtwin guy does (Christian???))


Yes. I modified './common/file_util.cpp' as you recommended. Plus I 
had to put '#undef printf' at the end of './common/gettext.h'. Then 
the compilation stopped with the following:


Making all in .
D:\mingw\bin\make.exe[1]: Entering directory 
`D:/msys/home/yns/src/aspell-0.60.4'
/bin/perl gen/mk-static-filter.pl modules/filter/url-filter.info 
modules/filter/email-filter.info modules/filter/tex-filter.info 
modules/filter/sgml-filter.info modules/filter/html-filter.info 
modules/filter/context-filter.info modules/filter/nroff-filter.info 
modules/filter/texinfo-filter.info
process_begin: CreateProcess((null), /bin/perl gen/mk-static-filter.pl 
modules/filter/url-filter.info modules/filter/email-filter.info 
modules/filter/tex-filter.info modules/filter/sgml-filter.info 
modules/filter/html-filter.info modules/filter/context-filter.info 
modules/filter/nroff-filter.info modules/filter/texinfo-filter.info, 
...) failed.

make (e=3): The system cannot find the path specified.
D:\mingw\bin\make.exe[1]: *** [gen/static_filters.src.cpp] Error 3
D:\mingw\bin\make.exe[1]: Leaving directory 
`D:/msys/home/yns/src/aspell-0.60.4'

D:\mingw\bin\make.exe: *** [all-recursive] Error 1


This doesn't look like an Aspell-specific error. You should definitely 
re-install MinGW.


I had many problems in the past with the MSYS DTK (1.0.11) so I had 
installed the latest mingw package manually in the mingw directory 
(including perl, automake and autoconf). I guess this is source of all 
my problems. I will try a parallel install of MSYS+MINGW and see what 
happens.


You should install MSYS-1.0.11 and msysDTK-1.0.1 before you install all 
other msys packages. I guess there is some overlapping. And rename the 
directory of the former MinGW installation. Having two different 
versions of MinGW on the same machine looks like another promising 
source of problems...


Michael



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Michael Gerz a écrit :

Abdel wrote:

I completely agree and I first try the static version but all the demo 
and examples crashed, including the Qtdesigner. I'll try to find 
sometime to compile in debug mode and see what's happening.


Ah. I forgot to mention: Ignore this!


ok... Next time I'll compile static.

You should install MSYS-1.0.11 and msysDTK-1.0.1 before you install all 
other msys packages. I guess there is some overlapping. And rename the 
directory of the former MinGW installation. Having two different 
versions of MinGW on the same machine looks like another promising 
source of problems...


IMHO, this all MSYS-AutoXXX-Perl is a mess! You should really think 
about changing your building process with something that is really 
portable: scons is good candidate (http://www.scons.org). It's written 
in python (you will get rid of perl :-)).


Abdel.



Michael






Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Angus Leeming
Abdel wrote:

> Angus Leeming a écrit :
>> Abdel wrote:
>>> Hello Angus,
>>>
>>> With the shared version all demos and examples compile and execute OK.
>>> Ouf... But the linkage only took an hour and sometimes more than 400
>>> Megs! I understand why Michael insist on compiling static Qt.
>>>
>>> I had lots of trouble trying to compile aspell so I gave up.
>> 
>> You can always go back to this later.
>> 
>>> Now onto lyx...
>>> The configure fails with:
>>>
>>> checking types of arguments for select... int,int *,struct timeval *
>> 
>> Your configure.ac has DOS-style line endings. I believe that there's
>> some magic in the build_lyxwin.sh script to clean that up...
> 
> You're right but it failed apparently:
> 
> sed: -e expression #2, char 2: Unterminated `s' command
> 
>> 
>> Try the attached dos2unix.sed script as
>> $ sed -f dos2unix.sed configure.ac > tmp
> 
> it does the same:
> sed: file dos2unix.sed line 1: Unterminated `s' command

Ok. We have several options.

1. If you have the MSYS-DTK installed then you'll have dos2unix.exe:

  $ dos2unix.exe configure.ac

However, that changes more than just line endings; it may or may not break
stuff...

2. Recreate my sed script yourself. From an MSYS terminal window:

  $ sed 's/^M$//' configure.ac > tmp
  $ mv tmp configure.ac

where ^M is generated as the key sequence Cntl-V Cntl-M.

3. Try the scripts (attached) again. This time they're compressed so the
transport process doesn't mess them up.

  $ gunzip dos2unix.sed.gz
  $ sed -f dos2unix.sed configure.ac > tmp

4. Use the 1.4 configure script at.
   http://www.lyx.org/~leeming/configure.gz
Don't run autogen.sh or it'll be overwritten.

> Sorry for all this. I'll maybe wait for a formal (beta) delivery of lyx
> 1.4

And who is going to compile that?

-- 
Angus

dos2unix.sed.gz
Description: GNU Zip compressed data


unix2dos.sed.gz
Description: GNU Zip compressed data


Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:


Angus Leeming a écrit :

Abdel wrote:

Hello Angus,


sed: -e expression #2, char 2: Unterminated `s' command


Try the attached dos2unix.sed script as
$ sed -f dos2unix.sed configure.ac > tmp

it does the same:
sed: file dos2unix.sed line 1: Unterminated `s' command


Ok. We have several options.


Option 2 below was fine bu I also had to correct configure. I had to 
change configure as recommended by Mickael in his recipe:


5.7 Edit file ./configure: Change line 12520 (move conftest.$ac_ext in 
front of FLAGS)


ac_link='$CXX -o conftest$ac_exeext conftest.$ac_ext $CXXFLAGS $CPPFLAGS 
$LDFLAGS $LIBS >&5'


But in my case it was lines 12001 and 15515.

>
> 1. If you have the MSYS-DTK installed then you'll have dos2unix.exe:
>
>   $ dos2unix.exe configure.ac
>
> However, that changes more than just line endings; it may or may not 
break

> stuff...
>
> 2. Recreate my sed script yourself. From an MSYS terminal window:
>
>   $ sed 's/^M$//' configure.ac > tmp
>   $ mv tmp configure.ac
>
> where ^M is generated as the key sequence Cntl-V Cntl-M.
>
> 3. Try the scripts (attached) again. This time they're compressed so the
> transport process doesn't mess them up.
>
>   $ gunzip dos2unix.sed.gz
>   $ sed -f dos2unix.sed configure.ac > tmp
>
> 4. Use the 1.4 configure script at.
>http://www.lyx.org/~leeming/configure.gz
> Don't run autogen.sh or it'll be overwritten.

Now the fun begins...

| sed 's/\\//g' > layouts_l10n.pot
sed: -e expression #2, char 8: Unterminated `s' command
make[3]: *** [layouts_l10n.pot] Error 1
make[3]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
make[2]: *** [LyX.pot-update] Error 2
make[2]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
D:\mingw\bin\make.exe[1]: *** [LyX.pot] Error 2
D:\mingw\bin\make.exe[1]: Leaving directory 
`D:/msys/home/yns/src/lyx-devel/po'

D:\mingw\bin\make.exe: *** [all-recursive] Error 1

This looks like the same kind of error. I looked at the po/Makefile but 
I don't know sed at all. Line 735 is this:


${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc \
| sed 's/\\//g' > $@

Is that a correct sed expression? I tried a make clean && make and then, 
there is a different error:


$ cd po

[EMAIL PROTECTED] ~/src/lyx-devel/po
$ make clean
FIND: Parameter format not correct
rm -f *.insert-header
rm -f remove-potcdate.sed
rm -f stamp-poT
rm -f core core.* LyX.po LyX.1po LyX.2po *.new.po
rm -fr *.o

[EMAIL PROTECTED] ~/src/lyx-devel/po
$ make
FIND: Parameter format not correct
make LyX.pot-update
FIND: Parameter format not correct
make[1]: Entering directory `D:/msys/home/yns/src/lyx-devel/po'
sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
make l10n_pots
FIND: Parameter format not correct
make[2]: Entering directory `D:/msys/home/yns/src/lyx-devel/po'
cat xforms_l10n.pot qt_l10n.pot layouts_l10n.pot languages_l10n.pot 
ui_l10n.pot  | \
msguniq -o LyX.po && rm -f  xforms_l10n.pot qt_l10n.pot layouts_l10n.pot 
languag es_l10n.pot ui_l10n.pot

:5: end-of-line within string
:6: end-of-line within string
:7: end-of-line within string
:8: end-of-line within string
D:\mingw\bin\msguniq.exe: : warning: Charset 
"ISO-8859-1Content-Transfer- 
 Encoding:" is not a portable encoding name.
Message conversion to 
user's charset  might not work.

D:\mingw\bin\msguniq.exe: found 4 fatal errors
make[2]: *** [l10n_pots] Error 1
make[2]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
make[1]: *** [LyX.pot-update] Error 2
make[1]: Leaving directory `D:/msys/home/yns/src/lyx-devel/po'
D:\mingw\bin\make.exe: *** [LyX.pot] Error 2





Sorry for all this. I'll maybe wait for a formal (beta) delivery of lyx
1.4


And who is going to compile that?


For my defense I'd say that I have invested a lot of time already on 
that. I think I am close but it's really not fun.


Thanks,
Abdel.



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Paul A. Rubin

Abdel wrote:


My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).


Sorry, late arrival to this thread, so I apologize if I'm repeating 
something said elsewhere.  The version of sed you're using is known to 
choke on DOS scripts (due to the CR/LF line terminators IIRC). 
Upgrading to sed 4.anything should eliminate at least that problem. 
This was documented (repeatedly and painfully) in the user list.


Paul



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Paul A. Rubin a écrit :

Abdel wrote:


My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).


Sorry, late arrival to this thread, so I apologize if I'm repeating 
something said elsewhere.  The version of sed you're using is known to 
choke on DOS scripts (due to the CR/LF line terminators IIRC). Upgrading 
to sed 4.anything should eliminate at least that problem. This was 
documented (repeatedly and painfully) in the user list.


The only version of sed-4 for windows is from GnuWin32 not Mingw nor 
MSYS. So I am a bit scared at the consequence of replacing it because 
the build process is so fragile. And I was told to stick with MSYS and 
Mingw...


Anyway, lyx is now in the link stage (ld taking 400 megs, crossing my 
fingers) but it's a partial build because I was not able to build the po 
subdir. I'll try to replace sed and see what's happening.


Thanks for the info,
Abdel.



Paul






Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Angus Leeming
Abdel wrote:
> For my defense I'd say that I have invested a lot of time already on
> that. I think I am close but it's really not fun.

Courage!

Why not skip the po directory for now and try
  $ cd src && make

-- 
Angus



Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-22 Thread Abdel

Good morning Angus,

Angus Leeming a écrit :

Abdel wrote:

For my defense I'd say that I have invested a lot of time already on
that. I think I am close but it's really not fun.


Courage!

Why not skip the po directory for now and try
  $ cd src && make


Yes that's what I did yesterday. But lyx-qt.exe failed to link at the 
end... Memory exhausted! 500 Megs of ram and 700 Megs of VM were used 
but that wasn't enough :-( . I have compiled the static version of qt 
this night. Let's see if it is better.


Abdel.



Re: qt3-win: cannot compile with mingw

2005-12-21 Thread Angus Leeming
Abdel wrote:
 The path seems OK here. First entries are:
 D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;
 
 Maybe is it a problem of mingw32-make? I am using version 3.80.
 
 I am lost :-(

I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.

To build LyX itself: have a look at the README and .sh scripts in
development/Win32/packaging

 I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go
 farther but fail at some point during the compilation. VC++6 is not
 supported by lyx anyway (AFAIK).

That's right. LyX is written in modern C++ and VC6 doesn't understand it.

-- 
Angus



Re: qt3-win: cannot compile with mingw

2005-12-21 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:

The path seems OK here. First entries are:
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;

Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(


I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.


Hum yes but all the examples crash. VC6 says:
Unhandled exception in demo.exe: 0xC005: Access Violation.
I am affraid that lyx will do the same. I guess this is because I 
compiled qt with -static (on the advice of Michael Gerz), I'll try the 
shared version.




To build LyX itself: have a look at the README and .sh scripts in
development/Win32/packaging


OK.




I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go
farther but fail at some point during the compilation. VC++6 is not
supported by lyx anyway (AFAIK).


That's right. LyX is written in modern C++ and VC6 doesn't understand it.


Well, in my experience, combined with STLport and a few pragma, it can 
accept pretty advanced C++. AFAIC, only some advanced template use cases 
are not supported.


Thanks,
Abdel.



Re: qt3-win: cannot compile with mingw

2005-12-21 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:

The path seems OK here. First entries are:
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;

Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(


I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.


Hum yes but all the examples crash. VC6 says:
Unhandled exception in demo.exe: 0xC005: Access Violation.
I am affraid that lyx will do the same. I guess this is because I
compiled qt with -static (on the advice of Michael Gerz), I'll try the
shared version.



To build LyX itself: have a look at the README and .sh scripts in
development/Win32/packaging


OK.




I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go
farther but fail at some point during the compilation. VC++6 is not
supported by lyx anyway (AFAIK).


That's right. LyX is written in modern C++ and VC6 doesn't understand it.


Well, in my experience, combined with STLport and a few pragma, it can
accept pretty advanced C++. AFAIK, only some advanced template use cases
are not supported.

Thanks,
Abdel.



lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-21 Thread Abdel

Abdel a écrit :

Angus Leeming a écrit :

Abdel wrote:

The path seems OK here. First entries are:
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;

Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(


I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.


Hum yes but all the examples crash. VC6 says:
Unhandled exception in demo.exe: 0xC005: Access Violation.
I am affraid that lyx will do the same. I guess this is because I
compiled qt with -static (on the advice of Michael Gerz), I'll try the
shared version.


Hello Angus,

With the shared version all demos and examples compile and execute OK. 
Ouf... But the linkage only took an hour and sometimes more than 400 
Megs! I understand why Michael insist on compiling static Qt.


I had lots of trouble trying to compile aspell so I gave up.

Now onto lyx... I am using your build_lyxwin.sh adapted to my config. I 
also modified the configure call to: 	
CONFIGURE=../configure --prefix='/d/program/lyx-140' --without-x 
--without-pspell --without-aspell --with-included-gettext 
--with-frontend=qt QTDIR='$QT_DIR'


The configure fails with:

checking types of arguments for select... int,int *,struct timeval *
../configure: line 34812: syntax error near unexpected token `s/^\\(['
../configure: line 34812: ` 
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p'

Failed to configure LyX

My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).



Please find below the output of autogen.sh and make distclean:

[EMAIL PROTECTED] ~/src/lyx-devel
$ ./autogen.sh
Using automake (GNU automake) 1.9.6
Using autoconf (GNU Autoconf) 2.59
Locating GNU m4... /bin/m4
Generate acinclude.m4... done.
Building macros...
.
done.
Building config header template...
.
done.
Building Makefile templates...
.
done.
Building configure...
   .
done.
Building lib/configure ... done.

run ./configure ; make


[EMAIL PROTECTED] ~/src/lyx-devel
$ ./configure --prefix='/d/program/lyx-140' --without-x --without-pspell 
--without-aspell --with-included-gettext --with-fro

ntend=qt QTDIR='/home/yns/src/qt-3'
configuring LyX version 1.4.0cvs
WARNING: This is a development version. Expect bugs.
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking what packaging should be used... windows
checking for install target... LyX
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... ./configure: eval: line 1: 
unexpected EOF while looking for matching `'

./configure: eval: line 2: syntax error: unexpected end of file
no
checking whether make sets $(MAKE)... (cached) no
checking for a BSD-compatible install... /bin/install -c
checking for gawk... (cached) gawk
checking for kpsewhich... kpsewhich
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for a Python interpreter with version = 1.5.2... python
checking for python... /d/program/Python24/python
checking for python version... 2.4
checking for python platform... win32
checking for python script directory... 
d:\program\Python24\Lib\site-packages
checking for python extension module directory... 
d:\program\Python24\Lib\site-packages

checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking what frontend should be used for the GUI... qt
checking for a good enough C++ compiler... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether the C++ compiler understands explicit... yes
checking whether C library functions are already in the global 
namespace... no

checking for conforming std::count... yes
checking how to run the C++ preprocessor... g++ -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for 

Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-21 Thread Angus Leeming
Abdel wrote:
 Hello Angus,
 
 With the shared version all demos and examples compile and execute OK.
 Ouf... But the linkage only took an hour and sometimes more than 400
 Megs! I understand why Michael insist on compiling static Qt.
 
 I had lots of trouble trying to compile aspell so I gave up.

You can always go back to this later.

 Now onto lyx...
 The configure fails with:
 
 checking types of arguments for select... int,int *,struct timeval *

Your configure.ac has DOS-style line endings. I believe that there's some
magic in the build_lyxwin.sh script to clean that up...

Try the attached dos2unix.sed script as
$ sed -f dos2unix.sed configure.ac  tmp
$ mv tmp configure.ac

-- 
Anguss/
$//
s/$/
/


Re: qt3-win: cannot compile with mingw

2005-12-21 Thread Angus Leeming
Abdel wrote:
> The path seems OK here. First entries are:
> D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;
> 
> Maybe is it a problem of mingw32-make? I am using version 3.80.
> 
> I am lost :-(

I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.

To build LyX itself: have a look at the README and .sh scripts in
development/Win32/packaging

> I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go
> farther but fail at some point during the compilation. VC++6 is not
> supported by lyx anyway (AFAIK).

That's right. LyX is written in modern C++ and VC6 doesn't understand it.

-- 
Angus



Re: qt3-win: cannot compile with mingw

2005-12-21 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:

The path seems OK here. First entries are:
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;

Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(


I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.


Hum yes but all the examples crash. VC6 says:
Unhandled exception in demo.exe: 0xC005: Access Violation.
I am affraid that lyx will do the same. I guess this is because I 
compiled qt with -static (on the advice of Michael Gerz), I'll try the 
shared version.




To build LyX itself: have a look at the README and .sh scripts in
development/Win32/packaging


OK.




I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go
farther but fail at some point during the compilation. VC++6 is not
supported by lyx anyway (AFAIK).


That's right. LyX is written in modern C++ and VC6 doesn't understand it.


Well, in my experience, combined with STLport and a few pragma, it can 
accept pretty advanced C++. AFAIC, only some advanced template use cases 
are not supported.


Thanks,
Abdel.



Re: qt3-win: cannot compile with mingw

2005-12-21 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:

The path seems OK here. First entries are:
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;

Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(


I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.


Hum yes but all the examples crash. VC6 says:
Unhandled exception in demo.exe: 0xC005: Access Violation.
I am affraid that lyx will do the same. I guess this is because I
compiled qt with -static (on the advice of Michael Gerz), I'll try the
shared version.



To build LyX itself: have a look at the README and .sh scripts in
development/Win32/packaging


OK.




I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go
farther but fail at some point during the compilation. VC++6 is not
supported by lyx anyway (AFAIK).


That's right. LyX is written in modern C++ and VC6 doesn't understand it.


Well, in my experience, combined with STLport and a few pragma, it can
accept pretty advanced C++. AFAIK, only some advanced template use cases
are not supported.

Thanks,
Abdel.



lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-21 Thread Abdel

Abdel a écrit :

Angus Leeming a écrit :

Abdel wrote:

The path seems OK here. First entries are:
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;

Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(


I see that you eventually managed to get mails through to the Qt/Win free
mailing list and that your problem is now resolved.


Hum yes but all the examples crash. VC6 says:
Unhandled exception in demo.exe: 0xC005: Access Violation.
I am affraid that lyx will do the same. I guess this is because I
compiled qt with -static (on the advice of Michael Gerz), I'll try the
shared version.


Hello Angus,

With the shared version all demos and examples compile and execute OK. 
Ouf... But the linkage only took an hour and sometimes more than 400 
Megs! I understand why Michael insist on compiling static Qt.


I had lots of trouble trying to compile aspell so I gave up.

Now onto lyx... I am using your build_lyxwin.sh adapted to my config. I 
also modified the configure call to: 	
CONFIGURE="../configure --prefix='/d/program/lyx-140' --without-x 
--without-pspell --without-aspell --with-included-gettext 
--with-frontend=qt QTDIR='$QT_DIR'"


The configure fails with:

checking types of arguments for select... int,int *,struct timeval *
../configure: line 34812: syntax error near unexpected token `"s/^\\(['
../configure: line 34812: ` 
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"'

Failed to configure LyX

My sed version is the one with MSYS-1.0.11 (GNU sed 3.02).
Please note that I am not using MSYS DTK, I have hand installed the 
needed software (autoconf, automake, libtool, etc).



Please find below the output of autogen.sh and make distclean:

[EMAIL PROTECTED] ~/src/lyx-devel
$ ./autogen.sh
Using automake (GNU automake) 1.9.6
Using autoconf (GNU Autoconf) 2.59
Locating GNU m4... /bin/m4
Generate acinclude.m4... done.
Building macros...
.
done.
Building config header template...
.
done.
Building Makefile templates...
.
done.
Building configure...
   .
done.
Building lib/configure ... done.

run "./configure ; make"


[EMAIL PROTECTED] ~/src/lyx-devel
$ ./configure --prefix='/d/program/lyx-140' --without-x --without-pspell 
--without-aspell --with-included-gettext --with-fro

ntend=qt QTDIR='/home/yns/src/qt-3'
configuring LyX version 1.4.0cvs
WARNING: This is a development version. Expect bugs.
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking what packaging should be used... windows
checking for install target... LyX
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... ./configure: eval: line 1: 
unexpected EOF while looking for matching `"'

./configure: eval: line 2: syntax error: unexpected end of file
no
checking whether make sets $(MAKE)... (cached) no
checking for a BSD-compatible install... /bin/install -c
checking for gawk... (cached) gawk
checking for kpsewhich... kpsewhich
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for a Python interpreter with version >= 1.5.2... python
checking for python... /d/program/Python24/python
checking for python version... 2.4
checking for python platform... win32
checking for python script directory... 
d:\program\Python24\Lib\site-packages
checking for python extension module directory... 
d:\program\Python24\Lib\site-packages

checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
checking what frontend should be used for the GUI... qt
checking for a good enough C++ compiler... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether the C++ compiler understands explicit... yes
checking whether C library functions are already in the global 
namespace... no

checking for conforming std::count... yes
checking how to run the C++ preprocessor... g++ -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for 

Re: lyx configure fails (was Re: qt3-win: cannot compile with mingw)

2005-12-21 Thread Angus Leeming
Abdel wrote:
> Hello Angus,
> 
> With the shared version all demos and examples compile and execute OK.
> Ouf... But the linkage only took an hour and sometimes more than 400
> Megs! I understand why Michael insist on compiling static Qt.
> 
> I had lots of trouble trying to compile aspell so I gave up.

You can always go back to this later.

> Now onto lyx...
> The configure fails with:
> 
> checking types of arguments for select... int,int *,struct timeval *

Your configure.ac has DOS-style line endings. I believe that there's some
magic in the build_lyxwin.sh script to clean that up...

Try the attached dos2unix.sed script as
$ sed -f dos2unix.sed configure.ac > tmp
$ mv tmp configure.ac

-- 
Anguss/
$//
s/$/
/


Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Angus Leeming
YOUNES Abdelrazak (M3SYSTEM) wrote:
 Sorry for disturbing this list but the kde-cygwin mailing list is
 apparently dead :-(

It's not. It's fine. Last mails to the list are dated today (20 Dec).
Admittedly, it's a very low volume mailing list...

Personally, I read it as a newsgroup gmane.comp.kde.devel.cygwin You
could also try the web interface
http://news.gmane.org/gmane.comp.kde...

 The first one was about an hypothetical cygwin make which I never
 installed. I have double-checked but there is no cygwin reference in
 the path nor in the registry. Finally I just hacked the
 configure.bat to just use mingw32-make.

You need to specify some environment variables to tell Qt's configure
script what flavour of compilation environment you're using. This was
all detailed quite nicely on a qt/win free web page, but I can't find
it anymore since they changed web sites.

Now *this* is something you should get them to fix!

I'll post my own personal wrapper to configure this evening if I get
the chance.

Angus



Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Abdel

Angus Leeming a écrit :

YOUNES Abdelrazak (M3SYSTEM) wrote:

Sorry for disturbing this list but the kde-cygwin mailing list is
apparently dead :-(


It's not. It's fine. Last mails to the list are dated today (20 Dec).
Admittedly, it's a very low volume mailing list...

Personally, I read it as a newsgroup gmane.comp.kde.devel.cygwin You
could also try the web interface
http://news.gmane.org/gmane.comp.kde...


Actually, this is exactly what I did. I tried to post to 
gmane.comp.kde.devel.cygwin with thunderbird. (The same I do with 
lyx-devel) I received a failure notice from 	 [EMAIL PROTECTED]:


[EMAIL PROTECTED]:
Sorry, no mailbox here by that name. (#5.1.1)


The first one was about an hypothetical cygwin make which I never
installed. I have double-checked but there is no cygwin reference in
the path nor in the registry. Finally I just hacked the
configure.bat to just use mingw32-make.


You need to specify some environment variables to tell Qt's configure
script what flavour of compilation environment you're using. This was
all detailed quite nicely on a qt/win free web page, but I can't find
it anymore since they changed web sites.

Now *this* is something you should get them to fix!

I'll post my own personal wrapper to configure this evening if I get
the chance.


Well I think I have used yours already:

set QTDIR=D:\install\qt\qt-3
set MINGW=D:\mingw
set MSYS=D:\msys
set PATH=%QTDIR%\bin;%MINGW%\bin;%MSYS%\bin;%PATH%
set QMAKESPEC=win32-g++
cd qt-3
configure.bat -fast -verbose


Abdel.



Angus






Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Angus Leeming
Abdel wrote:

 Well I think I have used yours already:
 
 set QTDIR=D:\install\qt\qt-3
 set MINGW=D:\mingw
 set MSYS=D:\msys
 set PATH=%QTDIR%\bin;%MINGW%\bin;%MSYS%\bin;%PATH%
 set QMAKESPEC=win32-g++
 cd qt-3
 configure.bat -fast -verbose

and echo statements indicate that these environment variables are all
as you'd expect?

echo %QTDIR%
echo %MINGW%
echo %MSYS%
echo %PATH%
echo %QMAKESPEC%

I ask because I've had problems using
  set PATH=...;%PATH%
in the past.

-- 
Angus



Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:


Well I think I have used yours already:

set QTDIR=D:\install\qt\qt-3
set MINGW=D:\mingw
set MSYS=D:\msys
set PATH=%QTDIR%\bin;%MINGW%\bin;%MSYS%\bin;%PATH%
set QMAKESPEC=win32-g++
cd qt-3
configure.bat -fast -verbose


and echo statements indicate that these environment variables are all
as you'd expect?

echo %QTDIR%
echo %MINGW%
echo %MSYS%
echo %PATH%
echo %QMAKESPEC%


Yes.



I ask because I've had problems using
  set PATH=...;%PATH%
in the past.


The path seems OK here. First entries are: 
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;


Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(
I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go 
farther but fail at some point during the compilation. VC++6 is not 
supported by lyx anyway (AFAIK).


Thanks,
Abdel.




Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Angus Leeming
YOUNES Abdelrazak (M3SYSTEM) wrote:
> Sorry for disturbing this list but the kde-cygwin mailing list is
> apparently dead :-(

It's not. It's fine. Last mails to the list are dated today (20 Dec).
Admittedly, it's a very low volume mailing list...

Personally, I read it as a newsgroup gmane.comp.kde.devel.cygwin You
could also try the web interface
http://news.gmane.org/gmane.comp.kde...

> The first one was about an hypothetical cygwin make which I never
> installed. I have double-checked but there is no cygwin reference in
> the path nor in the registry. Finally I just hacked the
> configure.bat to just use mingw32-make.

You need to specify some environment variables to tell Qt's configure
script what flavour of compilation environment you're using. This was
all detailed quite nicely on a qt/win free web page, but I can't find
it anymore since they changed web sites.

Now *this* is something you should get them to fix!

I'll post my own personal wrapper to configure this evening if I get
the chance.

Angus



Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Abdel

Angus Leeming a écrit :

YOUNES Abdelrazak (M3SYSTEM) wrote:

Sorry for disturbing this list but the kde-cygwin mailing list is
apparently dead :-(


It's not. It's fine. Last mails to the list are dated today (20 Dec).
Admittedly, it's a very low volume mailing list...

Personally, I read it as a newsgroup gmane.comp.kde.devel.cygwin You
could also try the web interface
http://news.gmane.org/gmane.comp.kde...


Actually, this is exactly what I did. I tried to post to 
gmane.comp.kde.devel.cygwin with thunderbird. (The same I do with 
lyx-devel) I received a failure notice from 	 [EMAIL PROTECTED]:


<[EMAIL PROTECTED]>:
Sorry, no mailbox here by that name. (#5.1.1)


The first one was about an hypothetical cygwin make which I never
installed. I have double-checked but there is no cygwin reference in
the path nor in the registry. Finally I just hacked the
configure.bat to just use mingw32-make.


You need to specify some environment variables to tell Qt's configure
script what flavour of compilation environment you're using. This was
all detailed quite nicely on a qt/win free web page, but I can't find
it anymore since they changed web sites.

Now *this* is something you should get them to fix!

I'll post my own personal wrapper to configure this evening if I get
the chance.


Well I think I have used yours already:

set QTDIR=D:\install\qt\qt-3
set MINGW=D:\mingw
set MSYS=D:\msys
set PATH=%QTDIR%\bin;%MINGW%\bin;%MSYS%\bin;%PATH%
set QMAKESPEC=win32-g++
cd qt-3
configure.bat -fast -verbose


Abdel.



Angus






Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Angus Leeming
Abdel wrote:

> Well I think I have used yours already:
> 
> set QTDIR=D:\install\qt\qt-3
> set MINGW=D:\mingw
> set MSYS=D:\msys
> set PATH=%QTDIR%\bin;%MINGW%\bin;%MSYS%\bin;%PATH%
> set QMAKESPEC=win32-g++
> cd qt-3
> configure.bat -fast -verbose

and echo statements indicate that these environment variables are all
as you'd expect?

echo %QTDIR%
echo %MINGW%
echo %MSYS%
echo %PATH%
echo %QMAKESPEC%

I ask because I've had problems using
  set PATH=...;%PATH%
in the past.

-- 
Angus



Re: qt3-win: cannot compile with mingw

2005-12-20 Thread Abdel

Angus Leeming a écrit :

Abdel wrote:


Well I think I have used yours already:

set QTDIR=D:\install\qt\qt-3
set MINGW=D:\mingw
set MSYS=D:\msys
set PATH=%QTDIR%\bin;%MINGW%\bin;%MSYS%\bin;%PATH%
set QMAKESPEC=win32-g++
cd qt-3
configure.bat -fast -verbose


and echo statements indicate that these environment variables are all
as you'd expect?

echo %QTDIR%
echo %MINGW%
echo %MSYS%
echo %PATH%
echo %QMAKESPEC%


Yes.



I ask because I've had problems using
  set PATH=...;%PATH%
in the past.


The path seems OK here. First entries are: 
D:\install\qt\qt-3\bin;D:\mingw\bin;D:\msys\bin;


Maybe is it a problem of mingw32-make? I am using version 3.80.

I am lost :-(
I have try to compile with win32-msvc (I have VC++ 6.0) also. It does go 
farther but fail at some point during the compilation. VC++6 is not 
supported by lyx anyway (AFAIK).


Thanks,
Abdel.