[Insight-users] A challenge to all Windows users

Michael Jackson mike.jackson at bluequartz.net
Wed Dec 23 12:01:16 EST 2009


What exactly is it about MinGW that you like? Going down this path is  
MUCH more difficult than installing VS from Microsoft.
_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio

On Dec 23, 2009, at 11:38 AM, URI wrote:

>
> Kevin-
>
> This is exactly what I'm looking for thanks.  Unfortunately this  
> didn't work
> for me.  As soon as I hit "Configure" for the first time in CMake I  
> get the
> following (all in red):
>
> ===================================================
> CMake Error: CMake was unable to find a build program corresponding to
> "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably  
> need to
> select a different build tool.
> CMake Error: CMake was unable to find a build program corresponding to
> "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably  
> need to
> select a different build tool.
> CMake Error: Error required internal CMake variable not set, cmake  
> may be
> not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake  
> may be
> not be built correctly.
> Missing variable is:
> CMAKE_C_COMPILER
> CMake Error: Could not find cmake module
> file:C:/ITKBuild/CMakeFiles/CMakeCCompiler.cmake
> CMake Error: Error required internal CMake variable not set, cmake  
> may be
> not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake  
> may be
> not be built correctly.
> Missing variable is:
> CMAKE_CXX_COMPILER
> CMake Error: Could not find cmake module
> file:C:/ITKBuild/CMakeFiles/CMakeCXXCompiler.cmake
> CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
> CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
> Configuring incomplete, errors occurred!
> ===================================================
>
> I even tried this on two different computers (Win7 64-bit and a  
> WinXP 32-bit
> machine that I had never installed any of these programs on before,  
> so I
> know that one is unspoiled).  I see by your addition the path  
> variable that
> you installed MinGW to C:\MinGW which is where I installed it as  
> well.  I
> also double-checked that my path variable has additions for both  
> MinGW and
> CMake.
>
>
> Let me ask you for a few more specifics in your instructions:
>
> 1.  You said "I installed mingw with the c++ compiler added to the  
> default
> options."  Please tell me all options that you selected.  When I run  
> the
> installer the only default that is selected is "MinGW base tools",  
> so that
> means the only things I had selected were "MinGW base tools" and "g++
> compiler".
>
> 2. To what directory did you install CMake?  The default for me is
> “C:\Program Files (x86)\CMake 2.8”, should I use this?
>
> 3. When you unzipped the Insight source, where did you put it?
>
> 4. What is the exact name and path of the build directory you used?
>
> 5. When configuring CMake you said "I browsed to the Insight source
> directory."  Please specify exactly which directory you used.  It  
> seems like
> it should be obvious, but I have made mistakes here in the past.
>
> 6. After hitting "Configure" you say to choose "MinGW MakeFiles".  I  
> also
> see four options to choose from: Use default native compilers, Specify
> native compiler, etc.  The first one is the default, is this what  
> you used?
>
>
>
>
> On 12/22/2009 12:03 PM, URI wrote:
>
> I am a long haired and bearded Linux guy who hasn't used Windows
> regularly since Windows 98 so not only was the system unspoiled but so
> was I. I used Windows 7 32-bit.
>
> I'm typing this up after the fact because I wasn't sure it would  
> work at
> all given how much trouble you had. So I'm sorry if I miss something.
>
> I downloaded the mingw installer MinGW-5.1.6.exe.
> http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/MinGW%205.1.6/MinGW-5.1.6.exe/download
>
> I downloaded the CMake installer.
> http://www.cmake.org/files/v2.8/cmake-2.8.0-win32-x86.exe
>
> I downloaded the Insight source zip file.
> http://voxel.dl.sourceforge.net/sourceforge/itk/InsightToolkit-3.16.0.zip
>
>
>
> I installed mingw with the c++ compiler added to the default options.
> I added ";C:\MinGW\bin" at the end of the Windows PATH.
>
> I installed CMake letting the installer add to PATH.
>
> I unzipped the Insight source.
> I created a Build directory outside of the Insight source directory.
>
> I ran the CMake GUI.
> I browsed to the Insight source directory.
> I browsed to the build directory.
> I hit configure.
> I selected "MinGW MakeFiles"...
> ...
> I waited...
> ...
> I waited...
> I hit configure again.
> I hit generate.
>
> I opened up a windows command prompt.
> I cd'ed to my build directory.
> I typed "mingw32-make" and hit enter.
> I waited...
>
> The build went fine, and it is testing itself now.
>
>
> -- 
> View this message in context: http://n2.nabble.com/A-challenge-to-all-Windows-users-tp4204581p4209470.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list