Jarrod Roberson
2008-Feb-28 20:43 UTC
[Xapian-discuss] Can't get xapian-core 1.05 to build under windows xp
Here is the output I get from nmake. I am not a guru at getting C programs to build under windows, I never had any troubles I could not solve on OSX :-( I am using the released sources, I have Visual Studio 2005, I have the make files from lemur. I read ALL the readme.txt file before starting. And this is what I get. C:\Documents and Settings\jroberson\My Documents\DOWNLOADS\xapian- core-1.0.5\win32>nmake Microsoft (R) Program Maintenance Utility Version 6.00.9782.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. Building Xapian on Win32 if not exist C:\Perl\bin\perl.exe exit(1) copy config.h.win32 ..\config.h 1 file(s) copied. copy win32_api.mak ..\api\Makefile 1 file(s) copied. copy win32_backends.mak ..\backends\Makefile 1 file(s) copied. copy win32_backends_flint.mak ..\backends\flint\Makefile 1 file(s) copied. copy win32_backends_inmemory.mak ..\backends\inmemory\Makefile 1 file(s) copied. copy win32_backends_multi.mak ..\backends\multi\Makefile 1 file(s) copied. copy win32_backends_remote.mak ..\backends\remote\Makefile 1 file(s) copied. copy win32_backends_quartz.mak ..\backends\quartz\Makefile 1 file(s) copied. copy win32_bin.mak ..\bin\Makefile 1 file(s) copied. copy win32_common.mak ..\common\Makefile 1 file(s) copied. copy win32_examples.mak ..\examples\Makefile 1 file(s) copied. copy win32_expand.mak ..\expand\Makefile 1 file(s) copied. copy win32_languages_compiler.mak ..\languages\compiler\Makefile 1 file(s) copied. copy win32_languages.mak ..\languages\Makefile 1 file(s) copied. copy win32_matcher.mak ..\matcher\Makefile 1 file(s) copied. copy win32_net.mak ..\net\Makefile 1 file(s) copied. copy win32_unicode.mak ..\unicode\Makefile 1 file(s) copied. copy win32_queryparser.mak ..\queryparser\Makefile 1 file(s) copied. copy win32_tests.mak ..\tests\Makefile 1 file(s) copied. copy win32_testsuite.mak ..\tests\harness\Makefile 1 file(s) copied. if exist ..\..\xapian-bindings-1.0.5 copy ..\..\xapian- bindings-1.0.5\xapian-version.h.in ..\..\xapian-bindings- 1.0.5\xapian-version.h 1 file(s) copied. if exist ..\..\xapian-bindings-1.0.5 copy win32_bindings_python.mak ..\..\xapian-bindings-1.0.5\python\Makefile 1 file(s) copied. if not exist ..\..\xapian-bindings-1.0.5\python\doccomments.i copy doccomments.i ..\..\xapian-bindings-1.0.5\pyt hon if exist ..\..\xapian-bindings-1.0.5 copy version.rc.python..\..\xapian- bindings-1.0.5\python\version.rc 1 file(s) copied. if exist ..\..\xapian-bindings-1.0.5 copy win32_bindings_php.mak ..\..\xapian-bindings-1.0.5\php\Makefile 1 file(s) copied. if exist ..\..\xapian-bindings-1.0.5 copy version.rc.php..\..\xapian- bindings-1.0.5\php\version.rc 1 file(s) copied. if exist ..\..\xapian-omega-1.0.5 copy win32_applications_omega.mak ..\..\xapian-omega-1.0.5\Makefile if exist ..\..\xapian-omega-1.0.5 copy config.mak ..\..\xapian- omega-1.0.5 if exist ..\..\xapian-omega-1.0.5 copy config.h.omega.win32..\..\xapian- omega-1.0.5\config.h cd ..\common nmake / CFG="" DEBUG="" Microsoft (R) Program Maintenance Utility Version 6.00.9782.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. if exist "..\win32\makedepend.exe" ..\win32\makedepend.exe -- -nologo -c -Zi -I.. -I..\include -I..\common -W3 - EHsc -D "WIN32" -D "__WIN32__" -D "_WIN32" -D "_WINDOWS" -D "HAVE_VSNPRINTF" -D "HAVE_STRDUP" -D "_USE_32BIT_TIME_T" -D_CRT_SECURE_NO_DEPRECATE -I "\work\zlib123-dll\include" -O2 -MD -D NDEBUG -Fo".\\" -Tp -- .\utils.cc .\getopt.cc .\ omdebug.cc .\serialise-double.cc .\msvc_posix_wrapper.cc .\stringutils.cc .\safe.cc -I"C:\PROGRA~1\MIAF9D~1\VC98\ATL \INCLUDE;C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE;C:\PROGRA~1\MIAF9D~1\VC98\MFC\INCLUDE;C:\Program Files\Microsoft Visual Studi o\VC98\atl\include;C:\Program Files\Microsoft Visual Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC 98\include" ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/errno.h), line 24: #error ERROR : Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/limits.h), line 23: #error ERRO R: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/stdio.h), line 23: #error ERROR : Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/stdlib.h), line 24: #error ERRO R: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/string.h), line 23: #error ERRO R: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/stddef.h), line 23: #error ERRO R: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/eh.h), line 21: #error ERROR: O nly Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/eh.h), line 32: #error "eh.h is only for C++!" ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/exception), line 30: #error ERR OR: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/wchar.h), line 29: #error ERROR : Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/typeinfo), line 21: #error This header requires a C++ compiler ... ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/typeinfo), line 28: #error ERRO R: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/ctype.h), line 22: #error ERROR : Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/locale.h), line 22: #error ERRO R: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/sys/types.h), line 23: #error E RROR: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/sys/stat.h), line 23: #error ER ROR: Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading safeunistd.h, line 25): cannot find include file "unistd.h" not in ../unistd.h not in ../include/unistd.h not in ../common/unistd.h not in \work/zlib123-dll/include/unistd.h not in C:/PROGRA~1/MIAF9D~1/VC98/ATL/INCLUDE;C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE;C:/PROGRA~1/MIAF9D~1/VC98/MFC/INC LUDE;C:/Program Files/Microsoft Visual Studio/VC98/atl/include;C:/Program Files/Microsoft Visual Studio/VC98/mfc/include ;C:/Program Files/Microsoft Visual Studio/VC98/include/unistd.h not in C:/PROGRA~1/MIAF9D~1/VC98/ATL/INCLUDE/unistd.h not in C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/unistd.h not in C:/PROGRA~1/MIAF9D~1/VC98/MFC/INCLUDE/unistd.h not in C:/Program Files/Microsoft Visual Studio/VC98/atl/include/unistd.h not in C:/Program Files/Microsoft Visual Studio/VC98/mfc/include/unistd.h not in C:/Program Files/Microsoft Visual Studio/VC98/include/unistd.h ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/float.h), line 24: #error ERROR : Only Mac or Win32 targets supported! ..\win32\makedepend.exe: warning: .\utils.cc (reading C:/PROGRA~1/MIAF9D~1/VC98/INCLUDE/math.h), line 23: #error ERROR: Only Mac or Win32 targets supported! cl.exe @C:\DOCUME~1\JROBER~1\LOCALS~1\Temp\nma04064. Command line warning D4024 : unrecognized source file type '.\omdebug.cc', object file assumed Command line warning D4027 : source file '.\omdebug.cc' ignored Command line warning D4024 : unrecognized source file type '.\serialise- double.cc', object file assumed Command line warning D4027 : source file '.\serialise-double.cc' ignored Command line warning D4024 : unrecognized source file type '.\msvc_posix_wrapper.cc', object file assumed Command line warning D4027 : source file '.\msvc_posix_wrapper.cc' ignored Command line warning D4024 : unrecognized source file type '.\stringutils.cc', object file assumed Command line warning D4027 : source file '.\stringutils.cc' ignored Command line warning D4024 : unrecognized source file type '.\safe.cc', object file assumed Command line warning D4027 : source file '.\safe.cc' ignored getopt.cc .\getopt.cc(165) : error C2653: 'std' : is not a class or namespace name .\getopt.cc(165) : error C2873: 'strlen' : symbol cannot be used in a using-declaration .\getopt.cc(166) : error C2653: 'std' : is not a class or namespace name .\getopt.cc(166) : error C2873: 'strcmp' : symbol cannot be used in a using-declaration .\getopt.cc(167) : error C2653: 'std' : is not a class or namespace name .\getopt.cc(167) : error C2873: 'strncmp' : symbol cannot be used in a using-declaration .\getopt.cc(168) : error C2653: 'std' : is not a class or namespace name .\getopt.cc(168) : error C2873: 'strchr' : symbol cannot be used in a using-declaration .\getopt.cc(171) : error C2653: 'std' : is not a class or namespace name .\getopt.cc(171) : error C2873: 'getenv' : symbol cannot be used in a using-declaration NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MIAF9D~1\VC98\BIN\NMAKE.EXE' : return code '0x2' Stop. C:\Documents and Settings\jroberson\My Documents\DOWNLOADS\xapian- core-1.0.5\win32> Any thoughts or help is greatly appreciated.
Jarrod Roberson
2008-Feb-28 20:48 UTC
[Xapian-discuss] Can't get xapian-core 1.05 to build under windows xp
Ok so I thought maybe that the path with all the spaces might be causing problems. so I moved it to a shorter path without any spaces and now I get this. C:\TMP\xapian-core-1.0.5\win32>nmake Microsoft (R) Program Maintenance Utility Version 6.00.9782.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. Building Xapian on Win32 if not exist C:\Perl\bin\perl.exe exit(1) copy config.h.win32 ..\config.h 1 file(s) copied. copy win32_api.mak ..\api\Makefile 1 file(s) copied. copy win32_backends.mak ..\backends\Makefile 1 file(s) copied. copy win32_backends_flint.mak ..\backends\flint\Makefile 1 file(s) copied. copy win32_backends_inmemory.mak ..\backends\inmemory\Makefile 1 file(s) copied. copy win32_backends_multi.mak ..\backends\multi\Makefile 1 file(s) copied. copy win32_backends_remote.mak ..\backends\remote\Makefile 1 file(s) copied. copy win32_backends_quartz.mak ..\backends\quartz\Makefile 1 file(s) copied. copy win32_bin.mak ..\bin\Makefile 1 file(s) copied. copy win32_common.mak ..\common\Makefile 1 file(s) copied. copy win32_examples.mak ..\examples\Makefile 1 file(s) copied. copy win32_expand.mak ..\expand\Makefile 1 file(s) copied. copy win32_languages_compiler.mak ..\languages\compiler\Makefile 1 file(s) copied. copy win32_languages.mak ..\languages\Makefile 1 file(s) copied. copy win32_matcher.mak ..\matcher\Makefile 1 file(s) copied. copy win32_net.mak ..\net\Makefile 1 file(s) copied. copy win32_unicode.mak ..\unicode\Makefile 1 file(s) copied. copy win32_queryparser.mak ..\queryparser\Makefile 1 file(s) copied. copy win32_tests.mak ..\tests\Makefile 1 file(s) copied. copy win32_testsuite.mak ..\tests\harness\Makefile 1 file(s) copied. if exist ..\..\xapian-bindings-1.0.5 copy ..\..\xapian- bindings-1.0.5\xapian-version.h.in ..\..\xapian-bindings- 1.0.5\xapian-version.h if exist ..\..\xapian-bindings-1.0.5 copy win32_bindings_python.mak ..\..\xapian-bindings-1.0.5\python\Makefile if not exist ..\..\xapian-bindings-1.0.5\python\doccomments.i copy doccomments.i ..\..\xapian-bindings-1.0.5\pyt hon The system cannot find the path specified. 0 file(s) copied. NMAKE : fatal error U1077: 'if' : return code '0x1' Stop. C:\TMP\xapian-core-1.0.5\win32>
Charlie Hull
2008-Feb-29 09:38 UTC
[Xapian-discuss] Can't get xapian-core 1.05 to build under windows xp
Jarrod Roberson wrote:> Here is the output I get from nmake. > I am not a guru at getting C programs to build under windows, I never had > any troubles I could not solve on OSX :-( > I am using the released sources, I have Visual Studio 2005, I have the make > files from lemur. I read ALL the readme.txt file before starting. > And this is what I get. > <snip> > Any thoughts or help is greatly appreciated.It looks to me like you've got an old version of Visual C++ on the same machine (some of the paths say 'VC98') that may not be happy with .cc files. Charlie