понеділок 01 березень 2010 23:59:24 Alexander Neundorf ви написали:
> On Monday 01 March 2010, Oleg Kravchenko wrote:
> > неділя 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
> > > > 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.
> 
> Thanks.
> Attached is another small patch for CMakeFindBinutils.cmake. Please apply
>  and post again the output.
> I think what happens is the following:
> cmake determines the toolchain prefix and the location correctly
> ("i686-pc-mingw32-" and "/usr/bin" respectively).
> Then it goes into CMakeFindBinutils.cmake to search for ar. But since you
>  have already set this in your toolchain file, the find_program() call
>  doesn't search for it (since it is already set).
> Since it doesn't search for it, the CMAKE_AR variable doesn't get stored in
> the cache, so it is empty later on.
> 
> Let's see if we can verify this with the attached patch.
> 
> Alex
> 

Thanks :)
In attachment output logs
$ cmake -DCMAKE_TOOLCHAIN_FILE=~/i686-pc-mingw32.cmake . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=TRUE
-- CMAKE_C_COMPILER was preset: -i686-pc-mingw32-gcc-
-- CMAKE_C_COMPILER now set to: -/usr/bin/i686-pc-mingw32-gcc-
-- Toolchain location: -/usr/bin-
-- The C compiler identification is GNU
-- C Compiler ID: -GNU-
-- Toolchain prefix: --
-- Getting toolchain location...
-- Got toolchain location: -i686-pc-mingw32-- match1: -i686-pc-mingw32--
-- FindBinUtils ar: -i686-pc-mingw32-ar- toolchain prefix: -i686-pc-mingw32--
-- Searching for the tools...
-- Found ar: -i686-pc-mingw32-ar-
-- The CXX compiler identification is GNU
-- FindBinUtils ar: -i686-pc-mingw32-ar- toolchain prefix: -i686-pc-mingw32--
-- Searching for the tools...
-- Found ar: --
-- 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/win32/project
$ make tinyxml
/usr/bin/cmake -H/home/kaa/projects/win32/project -B/home/kaa/projects/win32/project --check-build-system CMakeFiles/Makefile.cmake 0
make -f CMakeFiles/Makefile2 tinyxml
make[1]: Entering directory `/home/kaa/projects/win32/project'
/usr/bin/cmake -H/home/kaa/projects/win32/project -B/home/kaa/projects/win32/project --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/kaa/projects/win32/project/CMakeFiles 4
make -f CMakeFiles/Makefile2 tinyxml_build/CMakeFiles/tinyxml.dir/all
make[2]: Entering directory `/home/kaa/projects/win32/project'
make -f tinyxml_build/CMakeFiles/tinyxml.dir/build.make tinyxml_build/CMakeFiles/tinyxml.dir/depend
make[3]: Entering directory `/home/kaa/projects/win32/project'
cd /home/kaa/projects/win32/project && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/kaa/projects/win32/project /home/kaa/projects/win32/shared/tinyxml /home/kaa/projects/win32/project /home/kaa/projects/win32/project/tinyxml_build /home/kaa/projects/win32/project/tinyxml_build/CMakeFiles/tinyxml.dir/DependInfo.cmake --color=
Scanning dependencies of target tinyxml
make[3]: Leaving directory `/home/kaa/projects/win32/project'
make -f tinyxml_build/CMakeFiles/tinyxml.dir/build.make tinyxml_build/CMakeFiles/tinyxml.dir/build
make[3]: Entering directory `/home/kaa/projects/win32/project'
/usr/bin/cmake -E cmake_progress_report /home/kaa/projects/win32/project/CMakeFiles 5
[ 25%] Building CXX object tinyxml_build/CMakeFiles/tinyxml.dir/tinystr.cpp.obj
cd /home/kaa/projects/win32/project/tinyxml_build && /usr/bin/i686-pc-mingw32-g++   -D_CRT_SECURE_NO_WARNINGS -D_LIB -g -I/home/kaa/projects/win32/shared/tinyxml/../include   -o CMakeFiles/tinyxml.dir/tinystr.cpp.obj -c /home/kaa/projects/win32/shared/tinyxml/tinystr.cpp
/usr/bin/cmake -E cmake_progress_report /home/kaa/projects/win32/project/CMakeFiles 6
[ 50%] Building CXX object tinyxml_build/CMakeFiles/tinyxml.dir/tinyxml.cpp.obj
cd /home/kaa/projects/win32/project/tinyxml_build && /usr/bin/i686-pc-mingw32-g++   -D_CRT_SECURE_NO_WARNINGS -D_LIB -g -I/home/kaa/projects/win32/shared/tinyxml/../include   -o CMakeFiles/tinyxml.dir/tinyxml.cpp.obj -c /home/kaa/projects/win32/shared/tinyxml/tinyxml.cpp
/usr/bin/cmake -E cmake_progress_report /home/kaa/projects/win32/project/CMakeFiles 7
[ 75%] Building CXX object tinyxml_build/CMakeFiles/tinyxml.dir/tinyxmlerror.cpp.obj
cd /home/kaa/projects/win32/project/tinyxml_build && /usr/bin/i686-pc-mingw32-g++   -D_CRT_SECURE_NO_WARNINGS -D_LIB -g -I/home/kaa/projects/win32/shared/tinyxml/../include   -o CMakeFiles/tinyxml.dir/tinyxmlerror.cpp.obj -c /home/kaa/projects/win32/shared/tinyxml/tinyxmlerror.cpp
/usr/bin/cmake -E cmake_progress_report /home/kaa/projects/win32/project/CMakeFiles 8
[100%] Building CXX object tinyxml_build/CMakeFiles/tinyxml.dir/tinyxmlparser.cpp.obj
cd /home/kaa/projects/win32/project/tinyxml_build && /usr/bin/i686-pc-mingw32-g++   -D_CRT_SECURE_NO_WARNINGS -D_LIB -g -I/home/kaa/projects/win32/shared/tinyxml/../include   -o CMakeFiles/tinyxml.dir/tinyxmlparser.cpp.obj -c /home/kaa/projects/win32/shared/tinyxml/tinyxmlparser.cpp
Linking CXX static library /home/kaa/projects/win32/target/Debug/libtinyxml.a
cd /home/kaa/projects/win32/project/tinyxml_build && /usr/bin/cmake -P CMakeFiles/tinyxml.dir/cmake_clean_target.cmake
cd /home/kaa/projects/win32/project/tinyxml_build && /usr/bin/cmake -E cmake_link_script CMakeFiles/tinyxml.dir/link.txt --verbose=1
"" cr /home/kaa/projects/win32/target/Debug/libtinyxml.a  CMakeFiles/tinyxml.dir/tinystr.cpp.obj CMakeFiles/tinyxml.dir/tinyxml.cpp.obj CMakeFiles/tinyxml.dir/tinyxmlerror.cpp.obj CMakeFiles/tinyxml.dir/tinyxmlparser.cpp.obj
Error running link command: No such file or directory
make[3]: *** [/home/kaa/projects/win32/target/Debug/libtinyxml.a] Error 2
make[3]: Leaving directory `/home/kaa/projects/win32/project'
make[2]: *** [tinyxml_build/CMakeFiles/tinyxml.dir/all] Error 2
make[2]: Leaving directory `/home/kaa/projects/win32/project'
make[1]: *** [tinyxml_build/CMakeFiles/tinyxml.dir/rule] Error 2
make[1]: Leaving directory `/home/kaa/projects/win32/project'
make: *** [tinyxml] Error 2
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to