Noel Huebers
2012-Mar-28 01:54 UTC
[Xapian-discuss] Compiling Omega 1.2.9 on Windows 7 64-Bit
Hi All, I 'm trying to build Omega 1.2.9, configure ran through, but when I do make I get error below. Any thoughts what I am missing? Thanks Noel make all-recursive make[1]: Entering directory `/xapian/xapian-omega-1.2.9' Making all in . make[2]: Entering directory `/xapian/xapian-omega-1.2.9' /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./commo n -I/usr/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual - Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wstrict- null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -Wlogical-op -Wmissing-de clarations -fvisibility=hidden -I/xapian/xapian-core-1.2.9/include -g -O2 -MT li btransform_la-transform.lo -MD -MP -MF .deps/libtransform_la-transform.Tpo -c -o libtransform_la-transform.lo `test -f 'transform.cc' || echo './'`transform.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./common -I/usr/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -W format-security -fno-gnu-keywords -Wundef -Wstrict-null-sentinel -Wshadow -Wstri ct-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidde n -I/xapian/xapian-core-1.2.9/include -g -O2 -MT libtransform_la-transform.lo -M D -MP -MF .deps/libtransform_la-transform.Tpo -c transform.cc -DDLL_EXPORT -DPI C -o .libs/libtransform_la-transform.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./common -I/usr/local/include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -W format-security -fno-gnu-keywords -Wundef -Wstrict-null-sentinel -Wshadow -Wstri ct-overflow=1 -Winit-self -Wlogical-op -Wmissing-declarations -fvisibility=hidde n -I/xapian/xapian-core-1.2.9/include -g -O2 -MT libtransform_la-transform.lo -M D -MP -MF .deps/libtransform_la-transform.Tpo -c transform.cc -o libtransform_la -transform.o >/dev/null 2>&1 mv -f .deps/libtransform_la-transform.Tpo .deps/libtransform_la-transform.Plo /bin/sh ./libtool --tag=CXX --mode=link g++ -Wall -W -Wredundant-decls -Wpoin ter-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-key words -Wundef -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Winit-self -W logical-op -Wmissing-declarations -fvisibility=hidden -I/xapian/xapian-core-1.2. 9/include -g -O2 -no-undefined -o libtransform.la libtransform_la-transform.l o -L/usr/local/lib -lpcre libtool: link: rm -fr .libs/libtransform.a .libs/libtransform.la libtool: link: ar cru .libs/libtransform.a .libs/libtransform_la-transform.o libtool: link: ranlib .libs/libtransform.a libtool: link: ( cd ".libs" && rm -f "libtransform.la" && cp -p "../libtransform .la" "libtransform.la" ) g++ -DHAVE_CONFIG_H -I. -I./common -DCONFIGFILE_SYSTEM=\"/usr/local/etc/omega.co nf\" -DPKGLIBBINDIR=\"/usr/local/lib/xapian-omega/bin\" -Wall -W -Wredundant-de cls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -f no-gnu-keywords -Wundef -Wstrict-null-sentinel -Wshadow -Wstrict-overflow=1 -Win it-self -Wlogical-op -Wmissing-declarations -fvisibility=hidden -I/xapian/xapian -core-1.2.9/include -g -O2 -MT freemem.o -MD -MP -MF .deps/freemem.Tpo -c -o fre emem.o freemem.cc freemem.cc: ?? 'long int get_free_physical_memory()' ?: freemem.cc:111:5: ???: 'MEMORYSTATUSEX' was not declared in this scope freemem.cc:111:20: ???: expected ';' before 'statex' freemem.cc:112:5: ???: 'statex' was not declared in this scope freemem.cc:113:33: ???: 'GlobalMemoryStatusEx' was not declared in this scope freemem.cc:116:1: [-Wreturn-type] make[2]: *** [freemem.o] Error 1 make[2]: Leaving directory `/xapian/xapian-omega-1.2.9' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/xapian/xapian-omega-1.2.9' make: *** [all] Error 2
Olly Betts
2012-Mar-28 03:42 UTC
[Xapian-discuss] Compiling Omega 1.2.9 on Windows 7 64-Bit
On Tue, Mar 27, 2012 at 09:54:00PM -0400, Noel Huebers wrote:> I 'm trying to build Omega 1.2.9, configure ran through, but when I do > make I get error below.> freemem.cc: ?$B4X?t 'long int get_free_physical_memory()' ?$BFb: > freemem.cc:111:5: ?$B%(%i!<: 'MEMORYSTATUSEX' was not declared in this scope > freemem.cc:111:20: ?$B%(%i!<: expected ';' before 'statex' > freemem.cc:112:5: ?$B%(%i!<: 'statex' was not declared in this scope > freemem.cc:113:33: ?$B%(%i!<: 'GlobalMemoryStatusEx' was not declared in this scopeHmm, can you find GlobalMemoryStatusEx in your compiler headers? It is declared in winbase.h in the Debian mingw-w64-dev cross-compiler package. Cheers, Olly
Noel Huebers
2012-Mar-28 07:27 UTC
[Xapian-discuss] Compiling Omega 1.2.9 on Windows 7 64-Bit
> Hmm, can you find GlobalMemoryStatusEx in your compiler headers? It is > declared in winbase.h in the Debian mingw-w64-dev cross-compiler > package.This is from the winbase.h (in mingw/include): #if (_WIN32_WINNT >= 0x0500) WINBASEAPI BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX); #endif Thanks Noel
Olly Betts
2012-Mar-29 02:55 UTC
[Xapian-discuss] Compiling Omega 1.2.9 on Windows 7 64-Bit
On Wed, Mar 28, 2012 at 03:27:10AM -0400, Noel Huebers wrote:> > Hmm, can you find GlobalMemoryStatusEx in your compiler headers? It is > > declared in winbase.h in the Debian mingw-w64-dev cross-compiler > > package. > > This is from the winbase.h (in mingw/include): > > #if (_WIN32_WINNT >= 0x0500) > WINBASEAPI BOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX); > #endifWhat happens if you define that suitably? E.g. add this near the top of the source file which was failing to compile: #define _WIN32_WINNT 0x0500 Cheers, Olly