[CMake] CMAKE_TOOLCHAIN_FILE support, empty CMAKE_AR && CMAKE_RANLIB

Oleg Kravchenko oleg at kaa.org.ua
Mon Mar 1 12:18:30 EST 2010


неділя 28 лютий 2010 17:24:48 Alexander Neundorf ви написали:
> On Saturday 27 February 2010, Oleg Kravchenko wrote:
> > Hello i am try build tinyxml library by mingw32 on gentoo linux with
> > cmake: =dev-util/cmake-2.6.4-r3
> > =dev-util/cmake-2.8.0-r2
> >
> > But have this errors:
> > $ cmake -DCMAKE_TOOLCHAIN_FILE=~/i686-pc-mingw32.cmake -
> > DDOKAN_INCLUDE_DIR=~/projects/dokan/ -DCMAKE_BUILD_TYPE=Debug .
> > -- The C compiler identification is GNU
> > -- The CXX compiler identification is GNU
> > -- Check for working C compiler: /usr/bin/i686-pc-mingw32-gcc
> > -- Check for working C compiler: /usr/bin/i686-pc-mingw32-gcc -- works
> > -- Detecting C compiler ABI info
> > -- Detecting C compiler ABI info - done
> > -- Check for working CXX compiler: /usr/bin/i686-pc-mingw32-g++
> > -- Check for working CXX compiler: /usr/bin/i686-pc-mingw32-g++ -- works
> > -- Detecting CXX compiler ABI info
> > -- Detecting CXX compiler ABI info - done
> > -- Configuring done
> > -- Generating done
> > -- Build files have been written to: /home/kaa/projects/tinyxml
> > $ make
> > [ 12%] Building CXX object
> > tinyxml_build/CMakeFiles/tinyxml.dir/tinystr.cpp.obj
> > [ 25%] Building CXX object
> > tinyxml_build/CMakeFiles/tinyxml.dir/tinyxml.cpp.obj
> > [ 37%] Building CXX object
> > tinyxml_build/CMakeFiles/tinyxml.dir/tinyxmlerror.cpp.obj
> > [ 50%] Building CXX object
> > tinyxml_build/CMakeFiles/tinyxml.dir/tinyxmlparser.cpp.obj
> > Linking CXX static library
> > /home/kaa/projects/sqlfs/target/Debug/libtinyxml.a Error running link
> > command: No such file or directory
> > make[2]: *** [/home/kaa/projects/win32/target/Debug/libtinyxml.a] Error 2
> > make[1]: *** [tinyxml_build/CMakeFiles/tinyxml.dir/all] Error 2
> > make: *** [all] Error 2
> >
> > I "fix" problem by patching CMakeFindBinUtils.cmake
> >
> > Please fix and release 2.6.x and 2.8.x version
> 
> Strange.
> Please apply the attached patch to CMakeDetermineCCompiler.cmake and run
>  cmake again on a fresh build dir, and post the output.
> 
> Alex
> 

Hello! In attachment output log.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake_toolchain.log
Type: text/x-log
Size: 5204 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100301/81794d79/attachment.bin>


More information about the CMake mailing list