[CMake] MSYS is a Unix

William A. Hoffman billlist at nycap.rr.com
Mon Nov 28 12:56:41 EST 2005


Andy Cedilnik did the work on bootstrap.
He may have some ideas.  If we are building for msys, I would assume that
we do not want to use the borland compiler or nmake generator.  There
may be a few ifdef WIN32 things in the source code.


-Bill


At 12:49 PM 11/28/2005, Brandon J. Van Every wrote:
>William A. Hoffman wrote:
>
>>At 01:18 PM 11/24/2005, Brandon Van Every wrote:
>>
>>
>> 
>>
>>>I am away from my build computer at present.  After the holidays, I will try to build CMake in a recent MinGW / MSYS environment.  If a MSYS-specific version proves easy enough, does that diminish your objections to /usr/local? 
>>>   
>>
>>That would make sense to me.  If you want to build a windows program using msys compilers, then
>>use the windows CMake.  If you want to build an msys program with cmake, then use the msys
>>version of CMake.
>> 
>I tried to build cmake 2.2.2.
>./configure dies looking for sys/wait.h, which MinGW and MSYS don't have.
>d:/devel/mingw/cmake-2.2.2/Source/kwsys/ProcessUNIX.c:54:37: sys/wait.h: No such file or directory
>and then a pile of errors
>
>I edited ./bootstrap so that KWSYS_C_SOURCES=ProcessWin32 and got much farther compiling *.o files, but upon linkage I got a lot of undefined symbols.  It looks like this script assumes Unix and has no configuration for Win32.
>
>g++  -I/d/devel/mingw/cmake-2.2.2/Source   
>-I/d/devel/mingw/cmake-2.2.2/Bootstrap.cmk  cmake.o cmakewizard.o cmakemain.o cmCommandArgumentLexer.o cmCommandArgumentParser.o cmCommandArgumentParserHelper.o cmDepends.o cmDependsC.o cmMakeDepend.o cmMakefile.o cmGeneratedFileStream.o cmGlobalGenerator.o cmGlob.o cmLocalGenerator.o cmSourceFile.o cmSystemTools.o cmFileTimeComparison.o cmGlobalUnixMakefileGenerator3.o cmGlobalXCodeGenerator.o cmLocalXCodeGenerator.o cmXCodeObject.o cmXCode21Object.o cmLocalUnixMakefileGenerator3.o cmBootstrapCommands.o cmCommands.o cmTarget.o cmTest.o cmCustomCommand.o cmCacheManager.o cmListFileCache.o cmOrderLinkDirectories.o cmSourceGroup.o cmListFileLexer.o Directory.o RegularExpression.o SystemTools.o ProcessWin32.o -o cmake
>cmake.o:cmake.cxx:(.text+0x85ac): undefined reference to `cmWin32ProcessExecution::Windows9xHack(char const*)'
>cmake.o:cmake.cxx:(.text+0x9811): undefined reference to `cmGlobalNMakeMakefileGenerator::cmGlobalNMakeMakefileGenerator()'
>cmake.o:cmake.cxx:(.text$_ZN30cmGlobalNMakeMakefileGenerator3NewEv[cmGlobalNMakeMakefileGenerator::New()]+0x59): undefined reference to `cmGlobalNMakeMakefileGenerator::cmGlobalNMakeMakefileGenerator()'
>cmake.o:cmake.cxx:(.text$_ZN32cmGlobalBorlandMakefileGenerator3NewEv[cmGlobalBorlandMakefileGenerator::New()]+0x59): undefined reference to `cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator()'
>cmake.o:cmake.cxx:(.text$_ZN30cmGlobalVisualStudio6Generator3NewEv[cmGlobalVisualStudio6Generator::New()]+0x59): undefined reference to `cmGlobalVisualStudio6Generator::cmGlobalVisualStudio6Generator()'
>cmSystemTools.o:cmSystemTools.cxx:(.text+0x2b19): undefined reference to `cmWin32ProcessExecution::StartProcess(char const*, char const*, bool)'
>cmSystemTools.o:cmSystemTools.cxx:(.text+0x2bd5): undefined reference to `cmWin32ProcessExecution::~cmWin32ProcessExecution()'
>cmSystemTools.o:cmSystemTools.cxx:(.text+0x2c00): undefined reference to `cmWin32ProcessExecution::Wait(int)'
>cmSystemTools.o:cmSystemTools.cxx:(.text+0x2cdb): undefined reference to `cmWin32ProcessExecution::~cmWin32ProcessExecution()'
>cmSystemTools.o:cmSystemTools.cxx:(.text+0x2d08): undefined reference to `cmWin32ProcessExecution::~cmWin32ProcessExecution()'
>ProcessWin32.o:ProcessWin32.c:(.text+0x1f2): undefined reference to `cmsysEncodedWriteArrayProcessFwd9x'
>collect2: ld returned 1 exit status
>make: *** [cmake] Error 1
>
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list