Abdelrazak Younes a écrit :
Bo Peng a écrit :
Just grab the package from gnuwin32

Thanks I will try that. There are so many options.

I am trying the cygwin route, when I install the basic cygwin system,
zlib.h and zlib.a are in place. Can I use them directly?

Well, yes and no. If you use them you will end-up with an executable that will depend on cygwin. So it is better to use the mingw version and link to it dynamically with the gnuwin32 package.

By the way, I have just noticed that spelling was not functional with my method. This is because, contrarily to what I said before, g++ doesn't recognize cygwin path like /cygdrive/d/, you need to use d:/ style. So passing cygwin dependent path to --with-extra-prefix or -with-extra-inc won't be useful to g++. And passing "d:/" won't work because ':' is a delimiter... So you have to set the compiler preprocessor flag manually. But passing cygwin style path to --with-extra-lib will work so you can use --with-extra-lib="/cygdrive/d/mingw/lib:/cygdrive/d/program/Aspell-0.60.4/lib"

Just to illustrate my case, try to compile the attached file with the following commands (adjust to your local paths):
g++ -I/cygdrive/d/program/Aspell-0.60.4/include -c  config.C
g++ -Id:/program/Aspell-0.60.4/include -c  config.C

The first one won't find aspell.h :-(

Here I do :
export CPPFLAGS="-Id:/program/Aspell-0.60.4/include"
./configure --with-extra-lib="/cygdrive/d/mingw/lib:/cygdrive/d/program/Aspell-0.60.4/lib" --with-included-gettext --with-packaging=windows --prefix='d:/program/lyx-svn' --without-x --with-aspell --with-version-suffix=-svn --with-frontend=qt4 --disable-maintainer-mode --disable-debug --enable-optimization=-O3 --disable-pch --disable-stdlib-debug --enable-concept-checks --with-qt4-dir='d:/program/Qt/4.1'

I will update the wiki with these information.

Abdel.


Abdel.




// configure:33737: checking aspell.h usability
// configure:33749: g++ -c -Os -w  -I/cygdrive/d/mingw/include  
-I/cygdrive/d/program/Aspell-0.60.4/include  conftest.cc >&5
// conftest.cc:146:20: aspell.h: No such file or directory
// configure:33792: g++ -E  -I/cygdrive/d/mingw/include  
-I/cygdrive/d/program/Aspell-0.60.4/include  conftest.cc
// conftest.cc:112:20: aspell.h: No such file or directory
/* confdefs.h.  */

#define PACKAGE_NAME "LyX"
#define PACKAGE_TARNAME "lyx"
#define PACKAGE_VERSION "1.5.0svn"
#define PACKAGE_STRING "LyX 1.5.0svn"
#define PACKAGE_BUGREPORT "[email protected]"
#define DEVEL_VERSION 1
#define USE_WINDOWS_PACKAGING 1
#define PACKAGE "LyX-svn"
#define HAVE_KPSEWHICH 1
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;
#endif
#define WITH_WARNINGS 1
#define _GLIBCXX_CONCEPT_CHECKS 1
#define HAVE_STD_COUNT 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_OSTREAM 1
#define HAVE_ISTREAM 1
#define HAVE_SSTREAM 1
#define HAVE_LOCALE 1
#define HAVE_LIMITS 1
#define HAVE_IOS 1
#define MODERN_STL_STREAMS 1
#define ENABLE_ASSERTIONS 1
#define HAVE_LIBM 1
#define AIKSAURUS_H_LOCATION 
#define X_DISPLAY_MISSING 1
#define HAVE_LONG_LONG 1
#define HAVE_LONG_DOUBLE 1
#define HAVE_WCHAR_T 1
#define HAVE_WINT_T 1
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
#define HAVE_STDINT_H_WITH_UINTMAX 1
#define HAVE_INTMAX_T 1
#define HAVE_ALLOCA 1
#define HAVE_STDLIB_H 1
#define HAVE_UNISTD_H 1
#define HAVE_GETPAGESIZE 1
#define INTDIV0_RAISES_SIGFPE 1
#define HAVE_UNSIGNED_LONG_LONG 1
#define HAVE_UINTMAX_T 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDINT_H 1
#define HAVE_LIMITS_H 1
#define HAVE_LOCALE_H 1
#define HAVE_MALLOC_H 1
#define HAVE_STDDEF_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_UNISTD_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_FWPRINTF 1
#define HAVE_GETCWD 1
#define HAVE_PUTENV 1
#define HAVE_SETLOCALE 1
#define HAVE_SNPRINTF 1
#define HAVE_STRCASECMP 1
#define HAVE_STRDUP 1
#define HAVE_STRTOUL 1
#define HAVE_WCSLEN 1
#define HAVE_DECL__SNPRINTF 1
#define HAVE_DECL__SNWPRINTF 1
#define HAVE_DECL_FEOF_UNLOCKED 0
#define HAVE_DECL_FGETS_UNLOCKED 0
#define HAVE_DECL_GETC_UNLOCKED 0
#define HAVE_ICONV 1
#define ICONV_CONST 
#define ENABLE_NLS 1
#define HAVE_DIRENT_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_STRINGS_H 1
#define HAVE_LOCALE_H 1
#define HAVE_UTIME_H 1
#define HAVE_SYS_UTIME_H 1
#define HAVE_IO_H 1
#define HAVE_PROCESS_H 1
#define TIME_WITH_SYS_TIME 1
#define RETSIGTYPE void
#define uid_t int
#define gid_t int
#define HAVE_STRERROR 1
#define HAVE_DECL_ISTREAMBUF_ITERATOR 1
#define HAVE_MKDIR 1
#define HAVE__MKDIR 1
#define MKDIR_TAKES_ONE_ARG 1
#define HAVE_ZLIB_H 1
#define HAVE_CLOSE 1
#define HAVE__CLOSE 1
#define HAVE_GETPID 1
#define HAVE__GETPID 1
#define HAVE_MKTEMP 1
#define HAVE_OPEN 1
#define HAVE__OPEN 1
#define HAVE_PCLOSE 1
#define HAVE__PCLOSE 1
#define HAVE_POPEN 1
#define HAVE__POPEN 1

/* end confdefs.h.  */
#include <aspell.h>

Reply via email to