[CMake] Windows Path Issues
david at zemon.name
david at zemon.name
Tue Aug 5 16:34:41 EDT 2014
Sorry about that. I am using "Git Bash" which is definitely a confusing environment. The compiler is PropGCC - the target is an embedded system. PropGCC ships with GNU Make 3.81 (and "make --version" confirms that is the version of make in my PATH).
Perhaps the output of "bash --version" will help:
bash-3.1$ bash --version
GNU bash, version 3.1.0(1)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.
bash-3.1$
Thanks,
David
-----Original Message-----
From: "Ivan Hrasko" <abhrasko at gmail.com>
Sent: Tuesday, August 5, 2014 2:26pm
To: david at zemon.name
Cc: cmake at cmake.org
Subject: Re: [CMake] Windows Path Issues
1. What your environment exactly is? It does not look like Windows only (because I see in your log: bash-3.1$ cmake -G "Unix Makefiles" . ), so I expect you are using something like Cygwin and when you use this kind of environment you can
have problems with paths. For example C:/software/propgcc/bin/propeller-elf-gcc is not a valid path for Cygwin, because cygwin uses /cygdrive/ in its path for things which are located in Windows.
2. When I use cmake on Windows (just Windows, cmd, not Cygwin or else) I use "MinGW Makefiles" not "Unix Makefiles" with GNU compilers.
2014-08-05 19:56 GMT+02:00 <[ david at zemon.name ]( mailto:david at zemon.name )>:
I'm generally a Linux guy but need this project to work on all three main platforms.
I have my toolchain file working nicely in Linux, but for some reason I'm getting an error on Windows. Here's top of the console output:
bash-3.1$ cmake -G "Unix Makefiles" .
-- The C compiler identification is GNU 4.6.1
-- The CXX compiler identification is GNU 4.6.1
-- The COGCXX compiler identification is GNU 4.6.1
-- The ECOGC compiler identification is GNU 4.6.1
-- The ECOGCXX compiler identification is GNU 4.6.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/software/propgcc/bin/propeller-elf-gcc
CMake Error at CMakeLists.txt:6 (project):
The CMAKE_C_COMPILER:
C:/software/propgcc/bin/propeller-elf-gcc
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
This doesn't make too much sense to me. Anyone know why it would find the compiler at first and then loose it? The path that it lists is perfectly valid.
Thanks,
David
--
Powered by [ www.kitware.com ]( http://www.kitware.com )
Please keep messages on-topic and check the CMake FAQ at: [ http://www.cmake.org/Wiki/CMake_FAQ ]( http://www.cmake.org/Wiki/CMake_FAQ )
Kitware offers various services to support the CMake community. For more information on each offering, please visit:
CMake Support: [ http://cmake.org/cmake/help/support.html ]( http://cmake.org/cmake/help/support.html )
CMake Consulting: [ http://cmake.org/cmake/help/consulting.html ]( http://cmake.org/cmake/help/consulting.html )
CMake Training Courses: [ http://cmake.org/cmake/help/training.html ]( http://cmake.org/cmake/help/training.html )
Visit other Kitware open-source projects at [ http://www.kitware.com/opensource/opensource.html ]( http://www.kitware.com/opensource/opensource.html )
Follow this link to subscribe/unsubscribe:
[ http://public.kitware.com/mailman/listinfo/cmake ]( http://public.kitware.com/mailman/listinfo/cmake )
--
Ivan Hrasko
<[ abhrasko at gmail.com ]( mailto:abhrasko at gmail.com )>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140805/ab87bf34/attachment.html>
More information about the CMake
mailing list