[CMake] Error with Unix Makefiles under UWIN
Mike Jackson
mike.jackson at imts.us
Tue Jul 15 11:22:20 EDT 2008
I know UWIN probably is NOT supported but hey I'll give it a shot.
This is on WinXP, cmake 2.4.8, Visual Studio 2003.Net.
It seems cmake successfully ran under UWIN generating "Unix
Makefiles". I have a simple project (expat actually) that generates a
library (expat) and an executable (xmlwf.exe). The library _seems_ to
be created correctly (static) as I get an "expat.lib" file in the
build directory. The problem comes when linking the executable. Here
is the verbose output from the link stage.
Linking C executable ../Bin/xmlwf.exe
cd C:/Workspace/expat/uwin/xmlwf && C:/Applications/CMake-2.4.8/bin/
cmake.exe -
P CMakeFiles/xmlwf.dir/cmake_clean_target.cmake
cd C:/Workspace/expat/uwin/xmlwf && C:/Applications/UWIN/usr/bin/
cc.exe "C
MakeFiles/xmlwf.dir/codepage.obj" "CMakeFiles/xmlwf.dir/xmlfile.obj"
"CMakeFile
s/xmlwf.dir/xmlmime.obj" "CMakeFiles/xmlwf.dir/xmlwf.obj" "CMakeFiles/
xmlwf.dir
/win32filemap.obj" -o ../Bin/xmlwf.exe -LC:/Workspace/expat/uwin/
Bin -lexpat
.lib
cc: expat.lib: library not found
make[2]: *** [Bin/xmlwf.exe] Error 1
make[2]: Leaving directory `/C/Workspace/expat/uwin'
make[1]: *** [xmlwf/CMakeFiles/xmlwf.dir/all] Error 2
make[1]: Leaving directory `/C/Workspace/expat/uwin'
make: *** [all] Error 2
I am thinking the -lexpat.lib should really be -lexpat but I am not
real sure at this point. Any ideas?
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
More information about the CMake
mailing list