Re: Windows build automake version problem.

2006-04-01 Thread Joost Verburg

Bo Peng wrote:

The weird part is, -I./interfaces/cc/ has aspell.h. Any clue?

Bo


Yes, you should upgrade to the latest candidate releases of MinGW/gcc. 
The current stable version (3.4.2) gives this error.


Joost


Re: Windows build automake version problem.

2006-04-01 Thread Enrico Forestieri
On Fri, Mar 31, 2006 at 07:24:33PM -0600, Bo Peng wrote:

 The weird part is, -I./interfaces/cc/ has aspell.h. Any clue?

If you are using the mingw compiler, I think that your problems
may come from using make instead of mingw32-make.

-- 
Enrico


Re: Windows build automake version problem.

2006-04-01 Thread Joost Verburg

Bo Peng wrote:

The weird part is, -I./interfaces/cc/ has aspell.h. Any clue?

Bo


Yes, you should upgrade to the latest candidate releases of MinGW/gcc. 
The current stable version (3.4.2) gives this error.


Joost


Re: Windows build automake version problem.

2006-04-01 Thread Enrico Forestieri
On Fri, Mar 31, 2006 at 07:24:33PM -0600, Bo Peng wrote:

> The weird part is, -I./interfaces/cc/ has aspell.h. Any clue?

If you are using the mingw compiler, I think that your problems
may come from using make instead of mingw32-make.

-- 
Enrico


Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Bo Peng a écrit :

Dear list,



[...]


So I run autogen.sh myself:

sh-2.04$ ./autogen.sh
Using automake (GNU automake) 1.8.2
This automake version is not supported by LyX.
LyX only supports automake 1.9.

I checked mingw website (and the instruction), 1.8.2 is the current
release, and was used by others.


Hello Bo,

You have to switch to cygwin (which should have automake-1.9) and run 
autogen.sh from there. Then you can switch back to msys for the 
configure.sh step. Or you can try to do everything from cygwin by 
giving the -mno-cygwin option to gcc so that the mingw version of gcc is 
used.


Abdel.



Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
 You have to switch to cygwin (which should have automake-1.9) and run
 autogen.sh from there. Then you can switch back to msys for the

Thanks. Lyx is compiling. However, aspell still does not work. The
latest error message is

if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./g
n  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALED
R=\/c/mingw/share/locale\ -I/c/mingw/include  -g -O2 -fno-exceptions -MT modu
es/speller/default/editdist.lo -MD -MP -MF $depbase.Tpo -c -o modules/speller
default/editdist.lo modules/speller/default/editdist.cpp; \
then mv -f $depbase.Tpo $depbase.Plo; else rm -f $depbase.Tpo; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./
odules/speller/default/ -DLOCALEDIR=\/c/mingw/share/locale\ -I/c/mingw/includ
 -g -O2 -fno-exceptions -MT modules/speller/default/editdist.lo -MD -MP -MF mod
les/speller/default/.deps/editdist.Tpo -c modules/speller/default/editdist.cpp
-DDLL_EXPORT -DPIC -o modules/speller/default/.libs/editdist.o
depbase=`echo modules/speller/default/primes.lo | sed 's|[^/]*$|.deps/|;s|\.lo
||'`; \
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./g
n  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALED
R=\/c/mingw/share/locale\ -I/c/mingw/include  -g -O2 -fno-exceptions -MT modu
es/speller/default/primes.lo -MD -MP -MF $depbase.Tpo -c -o modules/speller/d
fault/primes.lo modules/speller/default/primes.cpp; \
then mv -f $depbase.Tpo $depbase.Plo; else rm -f $depbase.Tpo; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./
odules/speller/default/ -DLOCALEDIR=\/c/mingw/share/locale\ -I/c/mingw/includ
 -g -O2 -fno-exceptions -MT modules/speller/default/primes.lo -MD -MP -MF modul
s/speller/default/.deps/primes.Tpo -c modules/speller/default/primes.cpp  -DDLL
EXPORT -DPIC -o modules/speller/default/.libs/primes.o
depbase=`echo modules/speller/default/language.lo | sed 's|[^/]*$|.deps/|;s|\.
o$||'`; \
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./g
n  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALED
R=\/c/mingw/share/locale\ -I/c/mingw/include  -g -O2 -fno-exceptions -MT modu
es/speller/default/language.lo -MD -MP -MF $depbase.Tpo -c -o modules/speller
default/language.lo modules/speller/default/language.cpp; \
then mv -f $depbase.Tpo $depbase.Plo; else rm -f $depbase.Tpo; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./
odules/speller/default/ -DLOCALEDIR=\/c/mingw/share/locale\ -I/c/mingw/includ
 -g -O2 -fno-exceptions -MT modules/speller/default/language.lo -MD -MP -MF mod
les/speller/default/.deps/language.Tpo -c modules/speller/default/language.cpp
-DDLL_EXPORT -DPIC -o modules/speller/default/.libs/language.o
modules/speller/default/language.cpp:24:24: langinfo.h: No such file or directo
y
make[1]: *** [modules/speller/default/language.lo] Error 1
make[1]: Leaving directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'

Any idea?


Re: Windows build automake version problem.

2006-03-31 Thread Angus Leeming
Bo Peng wrote:
 Thanks. Lyx is compiling. However, aspell still does not work. The
 latest error message is
 Any idea?

Have you had a look at the build_aspell.sh script in
development/Win32/packaging ?

-- 
Angus



Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Bo Peng a écrit :

modules/speller/default/language.cpp:24:24: langinfo.h: No such file or directo
y
make[1]: *** [modules/speller/default/language.lo] Error 1
make[1]: Leaving directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'

Any idea?


Might be a gettext or a libiconv issue. Did you install them?

If you want, I have compiled Aspell 0.60.4 plus some dictionnaries do 
you want them, I can zip my installation directory and put it on my web 
site (it's quite big).


Abdel.



Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
 Have you had a look at the build_aspell.sh script in
 development/Win32/packaging ?

Yes. It fixes a #include issue. But I still get the error.

Bo


Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
 Might be a gettext or a libiconv issue. Did you install them?

Yes. But I was lazy enough to get them directly from mingw website. I
will install them again. :-(

Bo


Re: Windows build automake version problem.

2006-03-31 Thread Enrico Forestieri
On Fri, Mar 31, 2006 at 03:55:02PM +0200, Abdelrazak Younes wrote:
 Bo Peng a écrit :
 Dear list,
 
 
 [...]
 
 So I run autogen.sh myself:
 
 sh-2.04$ ./autogen.sh
 Using automake (GNU automake) 1.8.2
 This automake version is not supported by LyX.
 LyX only supports automake 1.9.
 
 I checked mingw website (and the instruction), 1.8.2 is the current
 release, and was used by others.
 
 Hello Bo,
 
 You have to switch to cygwin (which should have automake-1.9) and run 
 autogen.sh from there. Then you can switch back to msys for the 
 configure.sh step. Or you can try to do everything from cygwin by 
 giving the -mno-cygwin option to gcc so that the mingw version of gcc is 
 used.

No, please, don't do that if you don't know what you are doing!
Dragons are there!

-- 
Enrico


Re: Windows build automake version problem.

2006-03-31 Thread Enrico Forestieri
On Fri, Mar 31, 2006 at 08:17:42AM -0600, Bo Peng wrote:
  You have to switch to cygwin (which should have automake-1.9) and run
  autogen.sh from there. Then you can switch back to msys for the
 
 Thanks. Lyx is compiling. However, aspell still does not work. The
 latest error message is
 ...
 Any idea?

Please, attached find the patch I apply to fix aspell compilation.
It works for me.

-- 
Enrico
--- common/file_util.cpp.orig   2004-11-15 13:29:54.0 +0100
+++ common/file_util.cpp2005-12-30 23:26:42.0 +0100
@@ -26,6 +26,7 @@
 
 #ifdef WIN32

+#  include asc_ctype.hpp
 #  include io.h
 #  define ACCESS _access
 #  include windows.h

--- common/config.cpp.orig  2005-06-22 07:32:30.0 +0200
+++ common/config.cpp   2005-12-31 04:20:50.0 +0100
@@ -42,6 +42,7 @@
 
 #include iostream.hpp
 
+#undef printf
 #define DEFAULT_LANG en_US
 
 // NOTE: All filter options are now stored with he f- prefix.  However



Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Enrico Forestieri a écrit :

On Fri, Mar 31, 2006 at 03:55:02PM +0200, Abdelrazak Younes wrote:

Bo Peng a écrit :

Dear list,


[...]


So I run autogen.sh myself:

sh-2.04$ ./autogen.sh
Using automake (GNU automake) 1.8.2
This automake version is not supported by LyX.
LyX only supports automake 1.9.

I checked mingw website (and the instruction), 1.8.2 is the current
release, and was used by others.

Hello Bo,

You have to switch to cygwin (which should have automake-1.9) and run 
autogen.sh from there. Then you can switch back to msys for the 
configure.sh step. Or you can try to do everything from cygwin by 
giving the -mno-cygwin option to gcc so that the mingw version of gcc is 
used.


No, please, don't do that if you don't know what you are doing!
Dragons are there!


:-)

Bo is a big guy...



Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
 Bo is a big guy...

Big or not, I am suffering. mingw tools are *slow* and there are
caveats here and there.

I will post a complete log of what I have done after I install
everything, if that will ever happen.

Bo


Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Enrico Forestieri a écrit :

On Fri, Mar 31, 2006 at 08:17:42AM -0600, Bo Peng wrote:

You have to switch to cygwin (which should have automake-1.9) and run
autogen.sh from there. Then you can switch back to msys for the

Thanks. Lyx is compiling. However, aspell still does not work. The
latest error message is
...
Any idea?


Please, attached find the patch I apply to fix aspell compilation.
It works for me.


Ah yes, I forgot about this one... Maybe someone should report that to 
the Aspell developers...


Isn't there a gcc option to undefine a macro? I mean the opposite of -D ?

Abdel.







--- common/file_util.cpp.orig   2004-11-15 13:29:54.0 +0100
+++ common/file_util.cpp2005-12-30 23:26:42.0 +0100
@@ -26,6 +26,7 @@
 
 #ifdef WIN32


+#  include asc_ctype.hpp
 #  include io.h
 #  define ACCESS _access
 #  include windows.h

--- common/config.cpp.orig  2005-06-22 07:32:30.0 +0200
+++ common/config.cpp   2005-12-31 04:20:50.0 +0100
@@ -42,6 +42,7 @@
 
 #include iostream.hpp
 
+#undef printf

 #define DEFAULT_LANG en_US
 
 // NOTE: All filter options are now stored with he f- prefix.  However






Re: Windows build automake version problem.

2006-03-31 Thread Michael Gerz

Abdelrazak Younes wrote:


Please, attached find the patch I apply to fix aspell compilation.
It works for me.



Ah yes, I forgot about this one... Maybe someone should report that to 
the Aspell developers...



I have sent a bug report to Kevin Atkinson. No reply yet.

Michael




--- common/file_util.cpp.orig   2004-11-15 13:29:54.0 +0100
+++ common/file_util.cpp2005-12-30 23:26:42.0 +0100
@@ -26,6 +26,7 @@
 
 #ifdef WIN32


+#  include asc_ctype.hpp
 #  include io.h
 #  define ACCESS _access
 #  include windows.h

--- common/config.cpp.orig  2005-06-22 07:32:30.0 +0200
+++ common/config.cpp   2005-12-31 04:20:50.0 +0100
@@ -42,6 +42,7 @@
 
 #include iostream.hpp
 
+#undef printf

 #define DEFAULT_LANG en_US
 
 // NOTE: All filter options are now stored with he f- prefix.  
However




Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
It is my 10th attempts (remove cygwin, change place etc) to build
aspell, I am getting the same problem:


make[1]: Entering directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'
depbase=`echo prog/aspell.o | sed 's|[^/]*$|.deps/|;s|\.o$||'`; \
if g++ -DHAVE_CONFIG_H -I. -I. -I./gen  -I./gen -I./common
-I./interfaces/cc/ -I./modules/speller/default/
-DLOCALEDIR=\/mingw/share/locale\   -g -O2 -fno-exceptions -MT
prog/aspell.o -MD -MP -MF $depbase.Tpo -c -o prog/aspell.o
prog/aspell.cpp; \
then mv -f $depbase.Tpo $depbase.Po; else rm -f $depbase.Tpo; exit 1; fi
prog/aspell.cpp:28:20: aspell.h: No such file or directory
In file included from prog/check_funs.hpp:10,
 from prog/aspell.cpp:38:
prog/checker_string.hpp:29: error: expected `)' before '*' token
prog/checker_string.hpp:107: error: ISO C++ forbids declaration of
`AspellSpeller' with no type
prog/checker_string.hpp:107: error: expected `;' before '*' token
prog/aspell.cpp:56:28: speller_impl.hpp: No such file or directory
prog/aspell.cpp:57:20: data.hpp: No such file or directory
prog/aspell.cpp:66: error: `aspeller' has not been declared
prog/aspell.cpp:66: error: expected nested-name-specifier before Conv
prog/aspell.cpp:66: confused by earlier errors, bailing out
make[1]: *** [prog/aspell.o] Error 1
make[1]: Leaving directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'
make: *** [all-recursive] Error 1


The weird part is, -I./interfaces/cc/ has aspell.h. Any clue?

Bo


Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Bo Peng a écrit :

Dear list,



[...]


So I run autogen.sh myself:

sh-2.04$ ./autogen.sh
Using automake (GNU automake) 1.8.2
This automake version is not supported by LyX.
LyX only supports automake 1.9.

I checked mingw website (and the instruction), 1.8.2 is the current
release, and was used by others.


Hello Bo,

You have to switch to cygwin (which should have automake-1.9) and run 
"autogen.sh" from there. Then you can switch back to msys for the 
"configure.sh" step. Or you can try to do everything from cygwin by 
giving the -mno-cygwin option to gcc so that the mingw version of gcc is 
used.


Abdel.



Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
> You have to switch to cygwin (which should have automake-1.9) and run
> "autogen.sh" from there. Then you can switch back to msys for the

Thanks. Lyx is compiling. However, aspell still does not work. The
latest error message is

if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./g
n  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALED
R=\"/c/mingw/share/locale\" -I/c/mingw/include  -g -O2 -fno-exceptions -MT modu
es/speller/default/editdist.lo -MD -MP -MF "$depbase.Tpo" -c -o modules/speller
default/editdist.lo modules/speller/default/editdist.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./
odules/speller/default/ -DLOCALEDIR=\"/c/mingw/share/locale\" -I/c/mingw/includ
 -g -O2 -fno-exceptions -MT modules/speller/default/editdist.lo -MD -MP -MF mod
les/speller/default/.deps/editdist.Tpo -c modules/speller/default/editdist.cpp
-DDLL_EXPORT -DPIC -o modules/speller/default/.libs/editdist.o
depbase=`echo modules/speller/default/primes.lo | sed 's|[^/]*$|.deps/&|;s|\.lo
||'`; \
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./g
n  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALED
R=\"/c/mingw/share/locale\" -I/c/mingw/include  -g -O2 -fno-exceptions -MT modu
es/speller/default/primes.lo -MD -MP -MF "$depbase.Tpo" -c -o modules/speller/d
fault/primes.lo modules/speller/default/primes.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./
odules/speller/default/ -DLOCALEDIR=\"/c/mingw/share/locale\" -I/c/mingw/includ
 -g -O2 -fno-exceptions -MT modules/speller/default/primes.lo -MD -MP -MF modul
s/speller/default/.deps/primes.Tpo -c modules/speller/default/primes.cpp  -DDLL
EXPORT -DPIC -o modules/speller/default/.libs/primes.o
depbase=`echo modules/speller/default/language.lo | sed 's|[^/]*$|.deps/&|;s|\.
o$||'`; \
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./g
n  -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALED
R=\"/c/mingw/share/locale\" -I/c/mingw/include  -g -O2 -fno-exceptions -MT modu
es/speller/default/language.lo -MD -MP -MF "$depbase.Tpo" -c -o modules/speller
default/language.lo modules/speller/default/language.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./
odules/speller/default/ -DLOCALEDIR=\"/c/mingw/share/locale\" -I/c/mingw/includ
 -g -O2 -fno-exceptions -MT modules/speller/default/language.lo -MD -MP -MF mod
les/speller/default/.deps/language.Tpo -c modules/speller/default/language.cpp
-DDLL_EXPORT -DPIC -o modules/speller/default/.libs/language.o
modules/speller/default/language.cpp:24:24: langinfo.h: No such file or directo
y
make[1]: *** [modules/speller/default/language.lo] Error 1
make[1]: Leaving directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'

Any idea?


Re: Windows build automake version problem.

2006-03-31 Thread Angus Leeming
Bo Peng wrote:
> Thanks. Lyx is compiling. However, aspell still does not work. The
> latest error message is
> Any idea?

Have you had a look at the build_aspell.sh script in
development/Win32/packaging ?

-- 
Angus



Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Bo Peng a écrit :

modules/speller/default/language.cpp:24:24: langinfo.h: No such file or directo
y
make[1]: *** [modules/speller/default/language.lo] Error 1
make[1]: Leaving directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'

Any idea?


Might be a gettext or a libiconv issue. Did you install them?

If you want, I have compiled Aspell 0.60.4 plus some dictionnaries do 
you want them, I can zip my installation directory and put it on my web 
site (it's quite big).


Abdel.



Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
> Have you had a look at the build_aspell.sh script in
> development/Win32/packaging ?

Yes. It fixes a #include issue. But I still get the error.

Bo


Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
> Might be a gettext or a libiconv issue. Did you install them?

Yes. But I was lazy enough to get them directly from mingw website. I
will install them again. :-(

Bo


Re: Windows build automake version problem.

2006-03-31 Thread Enrico Forestieri
On Fri, Mar 31, 2006 at 03:55:02PM +0200, Abdelrazak Younes wrote:
> Bo Peng a écrit :
> >Dear list,
> >
> 
> [...]
> 
> >So I run autogen.sh myself:
> >
> >sh-2.04$ ./autogen.sh
> >Using automake (GNU automake) 1.8.2
> >This automake version is not supported by LyX.
> >LyX only supports automake 1.9.
> >
> >I checked mingw website (and the instruction), 1.8.2 is the current
> >release, and was used by others.
> 
> Hello Bo,
> 
> You have to switch to cygwin (which should have automake-1.9) and run 
> "autogen.sh" from there. Then you can switch back to msys for the 
> "configure.sh" step. Or you can try to do everything from cygwin by 
> giving the -mno-cygwin option to gcc so that the mingw version of gcc is 
> used.

No, please, don't do that if you don't know what you are doing!
Dragons are there!

-- 
Enrico


Re: Windows build automake version problem.

2006-03-31 Thread Enrico Forestieri
On Fri, Mar 31, 2006 at 08:17:42AM -0600, Bo Peng wrote:
> > You have to switch to cygwin (which should have automake-1.9) and run
> > "autogen.sh" from there. Then you can switch back to msys for the
> 
> Thanks. Lyx is compiling. However, aspell still does not work. The
> latest error message is
> ...
> Any idea?

Please, attached find the patch I apply to fix aspell compilation.
It works for me.

-- 
Enrico
--- common/file_util.cpp.orig   2004-11-15 13:29:54.0 +0100
+++ common/file_util.cpp2005-12-30 23:26:42.0 +0100
@@ -26,6 +26,7 @@
 
 #ifdef WIN32

+#  include "asc_ctype.hpp"
 #  include 
 #  define ACCESS _access
 #  include 

--- common/config.cpp.orig  2005-06-22 07:32:30.0 +0200
+++ common/config.cpp   2005-12-31 04:20:50.0 +0100
@@ -42,6 +42,7 @@
 
 #include "iostream.hpp"
 
+#undef printf
 #define DEFAULT_LANG "en_US"
 
 // NOTE: All filter options are now stored with he "f-" prefix.  However



Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Enrico Forestieri a écrit :

On Fri, Mar 31, 2006 at 03:55:02PM +0200, Abdelrazak Younes wrote:

Bo Peng a écrit :

Dear list,


[...]


So I run autogen.sh myself:

sh-2.04$ ./autogen.sh
Using automake (GNU automake) 1.8.2
This automake version is not supported by LyX.
LyX only supports automake 1.9.

I checked mingw website (and the instruction), 1.8.2 is the current
release, and was used by others.

Hello Bo,

You have to switch to cygwin (which should have automake-1.9) and run 
"autogen.sh" from there. Then you can switch back to msys for the 
"configure.sh" step. Or you can try to do everything from cygwin by 
giving the -mno-cygwin option to gcc so that the mingw version of gcc is 
used.


No, please, don't do that if you don't know what you are doing!
Dragons are there!


:-)

Bo is a big guy...



Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
> Bo is a big guy...

Big or not, I am suffering. mingw tools are *slow* and there are
caveats here and there.

I will post a complete log of what I have done after I install
everything, if that will ever happen.

Bo


Re: Windows build automake version problem.

2006-03-31 Thread Abdelrazak Younes

Enrico Forestieri a écrit :

On Fri, Mar 31, 2006 at 08:17:42AM -0600, Bo Peng wrote:

You have to switch to cygwin (which should have automake-1.9) and run
"autogen.sh" from there. Then you can switch back to msys for the

Thanks. Lyx is compiling. However, aspell still does not work. The
latest error message is
...
Any idea?


Please, attached find the patch I apply to fix aspell compilation.
It works for me.


Ah yes, I forgot about this one... Maybe someone should report that to 
the Aspell developers...


Isn't there a gcc option to undefine a macro? I mean the opposite of "-D" ?

Abdel.







--- common/file_util.cpp.orig   2004-11-15 13:29:54.0 +0100
+++ common/file_util.cpp2005-12-30 23:26:42.0 +0100
@@ -26,6 +26,7 @@
 
 #ifdef WIN32


+#  include "asc_ctype.hpp"
 #  include 
 #  define ACCESS _access
 #  include 

--- common/config.cpp.orig  2005-06-22 07:32:30.0 +0200
+++ common/config.cpp   2005-12-31 04:20:50.0 +0100
@@ -42,6 +42,7 @@
 
 #include "iostream.hpp"
 
+#undef printf

 #define DEFAULT_LANG "en_US"
 
 // NOTE: All filter options are now stored with he "f-" prefix.  However






Re: Windows build automake version problem.

2006-03-31 Thread Michael Gerz

Abdelrazak Younes wrote:


Please, attached find the patch I apply to fix aspell compilation.
It works for me.



Ah yes, I forgot about this one... Maybe someone should report that to 
the Aspell developers...



I have sent a bug report to Kevin Atkinson. No reply yet.

Michael




--- common/file_util.cpp.orig   2004-11-15 13:29:54.0 +0100
+++ common/file_util.cpp2005-12-30 23:26:42.0 +0100
@@ -26,6 +26,7 @@
 
 #ifdef WIN32


+#  include "asc_ctype.hpp"
 #  include 
 #  define ACCESS _access
 #  include 

--- common/config.cpp.orig  2005-06-22 07:32:30.0 +0200
+++ common/config.cpp   2005-12-31 04:20:50.0 +0100
@@ -42,6 +42,7 @@
 
 #include "iostream.hpp"
 
+#undef printf

 #define DEFAULT_LANG "en_US"
 
 // NOTE: All filter options are now stored with he "f-" prefix.  
However




Re: Windows build automake version problem.

2006-03-31 Thread Bo Peng
It is my 10th attempts (remove cygwin, change place etc) to build
aspell, I am getting the same problem:


make[1]: Entering directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'
depbase=`echo prog/aspell.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
if g++ -DHAVE_CONFIG_H -I. -I. -I./gen  -I./gen -I./common
-I./interfaces/cc/ -I./modules/speller/default/
-DLOCALEDIR=\"/mingw/share/locale\"   -g -O2 -fno-exceptions -MT
prog/aspell.o -MD -MP -MF "$depbase.Tpo" -c -o prog/aspell.o
prog/aspell.cpp; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
prog/aspell.cpp:28:20: aspell.h: No such file or directory
In file included from prog/check_funs.hpp:10,
 from prog/aspell.cpp:38:
prog/checker_string.hpp:29: error: expected `)' before '*' token
prog/checker_string.hpp:107: error: ISO C++ forbids declaration of
`AspellSpeller' with no type
prog/checker_string.hpp:107: error: expected `;' before '*' token
prog/aspell.cpp:56:28: speller_impl.hpp: No such file or directory
prog/aspell.cpp:57:20: data.hpp: No such file or directory
prog/aspell.cpp:66: error: `aspeller' has not been declared
prog/aspell.cpp:66: error: expected nested-name-specifier before "Conv"
prog/aspell.cpp:66: confused by earlier errors, bailing out
make[1]: *** [prog/aspell.o] Error 1
make[1]: Leaving directory `/d/lyx-devel/downloads/aspell-0.60.4/aspell-0.60.4'
make: *** [all-recursive] Error 1


The weird part is, -I./interfaces/cc/ has aspell.h. Any clue?

Bo