Thanks for the help Clinton - I tried that out and it seemed to work. After running CMake, I went into the VTK-build directory and found VTK.cbp. I clicked on it and it open up the project in CodeBlocks. I'm not sure where to go from here. When I did this in Visual Studio, there was a project in the solution explorer called ALL_BUILD and another called INSTALL both of which I was able to build. I looked for something similar in the CodeBlocks project explorer and wasn't able to find anything. I also tried clicking "build and run" in CodeBlocks and it gave me the following message: <br>
<br>You can't "run" a commands-only target... <br><br>I can go into the project properties and change the build/target type to dynamic library, static library, console application or gui application. Do I need to change to one of these or do I need to do something else altogether?<br>
<br><br><div class="gmail_quote">On Fri, Jul 29, 2011 at 11:26 AM, Clinton Stimpson [via VTK] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4655195&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
        <br>You need to use mingw32-gcc.exe and mingw32-g++.exe as your C and CXX
<br>compiler.
<br><br>Can you just add C:/Program Files (x86)/CodeBlocks/MinGW/bin to your PATH
<br>environment variable and then have cmake-gui figure out which compilers and
<br>make programs to pick from that directory?
<br><br>Clint
<br><br>On Friday, July 29, 2011 08:01:45 am com wrote:
</div><div><div><div></div><div class="h5"><div class='shrinkable-quote'><br>> I deleted the cache in the CMAKE gui and started over again without any of
<br>> the Qt stuff - I' figured I'd add that in after the initial configure. This
<br>> is what I had set in the CMAKE gui to start.
<br>>
<br>> CMAKE_CXX_COMPILER C:/Program Files (x86)/CodeBlocks/codeblocks.exe
<br>> CMAKE_C_COMPILER C:/Program Files (x86)/CodeBlocks/codeblocks.exe
<br>> CMAKE_MAKE_PROGRAM C:/Program Files
<br>> (x86)/CodeBlocks/MinGW/bin/mingw32-make.exe
<br>> CMAKE_SH - not filled in
<br>> CMAKE_USE_RELATIVE_PATHS - unchecked
<br>>
<br>> I get this error message when I press configure.
<br>>
<br>> The C compiler identification is unknown
<br>>
<br>> The CXX compiler identification is unknown
<br>>
<br>> Check for working C compiler: C:/Program Files
<br>> (x86)/CodeBlocks/codeblocks.exe
<br>>
<br>> Check for working C compiler: C:/Program Files
<br>> (x86)/CodeBlocks/codeblocks.exe -- broken
<br>>
<br>> CMake Error at C:/Program Files (x86)/CMake
<br>> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
<br>>
<br>> The C compiler "C:/Program Files (x86)/CodeBlocks/codeblocks.exe" is not
<br>>
<br>> able to compile a simple test program.
<br>>
<br>> It fails with the following output:
<br>>
<br>> Change Dir: C:/Program Files (x86)/VTK_build/CMakeFiles/CMakeTmp
<br>>
<br>> Run Build Command:C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe
<br>>
<br>> "cmTryCompileExec/fast"
<br>>
<br>> C:/PROGRA~2/CODEBL~1/MinGW/bin/mingw32-make.exe -f
<br>>
<br>> CMakeFiles\cmTryCompileExec.dir\build.make
<br>>
<br>> CMakeFiles/cmTryCompileExec.dir/build
<br>>
<br>> mingw32-make.exe[1]: Entering directory `C:/Program Files
<br>>
<br>> (x86)/VTK_build/CMakeFiles/CMakeTmp'
<br>>
<br>> "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
<br>>
<br>> "C:\Program Files (x86)\VTK_build\CMakeFiles\CMakeTmp\CMakeFiles" 1
<br>>
<br>> Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj
<br>>
<br>> C:\PROGRA~2\CODEBL~1\CODEBL~1.EXE -o
<br>>
<br>> CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj -c "C:\Program Files
<br>>
<br>> (x86)\VTK_build\CMakeFiles\CMakeTmp\testCCompiler.c"
<br>>
<br>> mingw32-make.exe[1]: ***
<br>>
<br>> [CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj] Error -1
<br>>
<br>> mingw32-make.exe[1]: Leaving directory `C:/Program Files
<br>>
<br>> (x86)/VTK_build/CMakeFiles/CMakeTmp'
<br>>
<br>> mingw32-make.exe: *** [cmTryCompileExec/fast] Error 2
<br>>
<br>> CMake will not be able to correctly generate this project.
<br>>
<br>> Call Stack (most recent call first):
<br>>
<br>> CMakeLists.txt:9 (PROJECT)
<br>>
<br>> Not sure what to do here? This is my first time using CMAKE and I haven't
<br>> had much experience with makefiles in general, so please pardon my lack of
<br>> knowledge in this area.
<br>>
<br>> Jothy asked if I had built Qt using mingw. Yes, it was built using mingw.
<br>>
<br>>
<br>>
<br>> On Thu, Jul 28, 2011 at 9:54 AM, John Drescher-2 [via VTK] <
<br>>
</div></div></div><div class="im">> <a href="http://user/SendEmail.jtp?type=node&node=4647590&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
<br>> > On Thu, Jul 28, 2011 at 10:51 AM, com <[hidden
<br></div>> > email]<<a href="http://user/SendEmail.jtp?type=node&node=4642998&i=0" rel="nofollow" link="external" target="_blank">http://user/SendEmail.jtp?type=node&node=4642998&i=0</a>>>
<br><div><div></div><div class="h5">> >
<div class='shrinkable-quote'><br>> > wrote:
<br>> > > Thanks for the advice. I downloaded CodeBlocks and and choose the
<br>> >
<br>> > CodeBlocks
<br>> >
<br>> > > - MinGW Makefiles options in CMake. I checked to see what compiler
<br>> > > CodeBlocks is using, and it says GNU GCC Compiler - not sure if this is
<br>> >
<br>> > what
<br>> >
<br>> > > I want or if I need something else. Unfortunately I get the following
<br>> >
<br>> > error
<br>> >
<br>> > > message:
<br>> > >
<br>> > > CMake Error: CMake was unable to find a build program corresponding to
<br>> > > "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to
<br>> > > select a different build tool.
<br>> >
<br>> > Find the directory for the make that mingw uses and set this variable
<br>> > in cmake-gui
<br>> >
<br>> > John
<br>> > _______________________________________________
<br>> > Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br>> >
<br>> > Visit other Kitware open-source projects at
<br>> > <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>> >
<br>> > Please keep messages on-topic and check the VTK FAQ at:
<br>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>> >
<br>> > Follow this link to subscribe/unsubscribe:
<br>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>> >
<br>> >
<br>> > ------------------------------
<br>> >
<br>> > If you reply to this email, your message will be added to the discussion
<br>> >
<br>> > below:
<br>> >
<br>> > <a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp</a></div>
> > 4636528p4642998.html
<br>> >
<br>> > To unsubscribe from trouble setting up VTK for Qt creator, click
<br></div></div><div class="im">> > here<<a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=un" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=un</a><br>
> > subscribe_by_code&node=4636528&code=Y29tYWNrZUBnbWFpbC5jb218NDYzNjUyOHw4
<br>> > ODA1ODg2MjI=>.
<br>>
<br>> --
<br>> View this message in context:
<br></div><div class="im">> <a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4</a><br>
</div>> 636528p4647157.html Sent from the VTK - Users mailing list archive at
<br>> Nabble.com.
</div><div class="im"><br>--
<br>Clinton Stimpson
<br>Elemental Technologies, Inc
<br>Computational Simulation Software, LLC
<br><a href="http://www.csimsoft.com" target="_blank" rel="nofollow" link="external">www.csimsoft.com</a>
<br>_______________________________________________
<br></div><div class="im">Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4647590.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4647590.html</a>
        </div><div><div></div><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from trouble setting up VTK for Qt creator, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></div></div></blockquote></div><br>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/trouble-setting-up-VTK-for-Qt-creator-tp4636528p4655195.html">Re: trouble setting up VTK for Qt creator</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>