<div dir="ltr"><div><div><div>Hi Martin,<br><br></div>Have you tried <br><br></div>cmake -G "MinGW Makefiles"<br><br>and<br><br></div>cmake -G "MSYS Makefiles" <br><br>?<br><br><br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 8:12 PM, Martin Mitáš <span dir="ltr"><<a href="mailto:mity@morous.org" target="_blank">mity@morous.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hello list,<br>
<br>
I am using cmake 2.8.11.2 on Windows 7 (64-bit). I am new to cmake so I<br>
try to experiment with simple hello world C program to learn it a bit<br>
as I would like to migrate my projects from hand written Makefiles.<br>
<br>
I have mingw (actually mingwbuilds 4.8.1 rev1 installed, see [1])<br>
installed and I am using MSYS. I also have two versions of MS Visual<br>
Studio Express installed (10 and 11).<br>
<br>
Generators for Visual Studios (both) work for me, both from cmd.exe as<br>
well as MSYS. Generators for MSYS and MinGW do not though. Output from<br>
it is below but it does not give any hint what's going wrong.<br>
<br>
I noticed that C:\cmake\share\cmake-2.8\<u></u>Modules\CMakeMSYSFindMake.<u></u>cmake<br>
checks other paths then when I have MSYS mounted, but tailoring with it<br>
has no effect. Ditto for MinGW.<br>
<br>
[1] <a href="https://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/64-bit/threads-win32/sjlj/" target="_blank">https://sourceforge.net/<u></u>projects/mingwbuilds/files/<u></u>host-windows/releases/4.8.1/<u></u>64-bit/threads-win32/sjlj/</a><br>
<br>
As said, I am completely new to cmake. Any help would be appreciated.<br>
Even an idea how to get more info from the cmake what goes wrong might<br>
help me. (Tried --debug-output and --trace but it does not say anything<br>
more for the failing commands.)<br>
<br>
Best regards,<br>
Martin Mitas<br>
<br>
<br>
==============================<u></u>====================<br>
<br>
$ rm -rf * && cmake -G 'Visual Studio 10' ..<br>
-- The C compiler identification is MSVC 16.0.40219.1<br>
-- The CXX compiler identification is MSVC 16.0.40219.1<br>
-- Check for working C compiler using: Visual Studio 10<br>
-- Check for working C compiler using: Visual Studio 10 -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler using: Visual Studio 10<br>
-- Check for working CXX compiler using: Visual Studio 10 -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: D:/prj/x/build<br>
<br>
$ rm -rf * && cmake -G 'Visual Studio 11' ..<br>
-- The C compiler identification is MSVC 17.0.50727.1<br>
-- The CXX compiler identification is MSVC 17.0.50727.1<br>
-- Check for working C compiler using: Visual Studio 11<br>
-- Check for working C compiler using: Visual Studio 11 -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler using: Visual Studio 11<br>
-- Check for working CXX compiler using: Visual Studio 11 -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: D:/prj/x/build<br>
<br>
$ rm -rf * && cmake -G MSYS ..<br>
CMake Error: Could not create named generator MSYS<br>
<br>
$ rm -rf * && cmake -G MinGW ..<br>
CMake Error: Could not create named generator MinGW<br>
<br>
$ ls ..<br>
CMakeLists.txt build hsv.c hsv.h<br>
<br>
$ cat ../CMakeLists.txt<br>
cmake_minimum_required (VERSION 2.6)<br>
project (hsv)<br>
add_executable(hsv hsv.c)<br>
<br>
$ which make<br>
/bin/make.exe<br>
<br>
$ mount<br>
C:\Users\mity\AppData\Local\<u></u>Temp on /tmp type user (binmode,noumount)<br>
c:\Progra~1\java on /java type user (binmode)<br>
c:\mingw64 on /mingw64 type user (binmode)<br>
c:\cmake on /cmake type user (binmode)<br>
c:\msys on /MinGW type user (binmode)<br>
c:\msys on /msys type user (binmode)<br>
c:\msys on /usr type user (binmode,noumount)<br>
c:\msys on / type user (binmode,noumount)<br>
c:\git on /git type user (binmode)<br>
d:\prj on /prj type user (binmode)<br>
d:\src on /src type user (binmode)<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</blockquote></div><br></div>