[CMake] cmake vista tutorial?

Craig Miller craig.miller at spatialminds.com
Thu Aug 28 19:00:06 EDT 2008


Yeah, I did the same (google) yesterday and couldn't find an answer either..
so here I am with you fine folks.  :-)

Craig


-----Original Message-----
From: Mike Jackson [mailto:mike.jackson at bluequartz.net] 
Sent: Thursday, August 28, 2008 3:55 PM
To: Craig Miller
Cc: Mike Jackson; Cmake Mailing List
Subject: Re: [CMake] cmake vista tutorial?

This has been seen before if you google a bit. What I could not find  
was a solution.

----
Mike
Sent from my iPod

On Aug 28, 2008, at 17:58, "Craig Miller"  
<craig.miller at spatialminds.com> wrote:

> Thank you Mike.  I deleted the cache related file/directory and  
> tried again
> by  executing CMakeSetup.exe from within the Visual Studio 2005  
> Command
> Prompt (which has all Visual Studio environment variables set).  I  
> receive
> the same error message.
>
> Craig
>
>
> -----Original Message-----
> From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On  
> Behalf Of
> Mike Jackson
> Sent: Thursday, August 28, 2008 2:35 PM
> To: Cmake Mailing List
> Subject: Re: [CMake] cmake vista tutorial?
>
> Craig, Sending to the list as I have no idea about CMAKE_RC_COMPILER.
> The only thing I could suggest would be the following:
>
> Open up the "Visual Studio Command Prompt" and launch CMakeSetup.exe
> from the command prompt. Maybe something in your environment is either
> NOT getting picked up or something is NOT set correctly (as CMake sees
> it). That basic of a CMake file really _Should_ work without a
> problem. I do not have Vista to test only XP.
>
> Also, when you re-run be sure you are using a clean build directory.
> No trace of anything that CMake has generated in the past. It is safe
> to just delete everything in the "build" directory (from my quick
> tutorial) as CMake will regenerate it.
>
> Just some thoughts. Let us (the list) know what happens.
>
> ----------------------------------------
> Mike Jackson - BlueQuartz Software Consulting
> <www.bluequartz.net>
> mike.jackson at bluequartz.net
>
>
>
> On Aug 28, 2008, at 5:04 PM, Craig Miller wrote:
>
>> Mike,
>>
>> Thank you for the reply.  Filling in the missing blanks in the
>> tutorial, ultimately, the steps I attempted were exactly as you
>> describe.
>>
>> As there doesn't seem to be a tutorial that addresses the Vista
>> specific issues, I'll just follow the tutorial directions (same as
>> yours) and post when I get to each specific error.  I'll document
>> what I'm doing with screenshots and when it is all working I'll
>> provide the document to the maintainers of the website to use as
>> they see fit.
>>
>> Here is where I'm at.
>>
>> 1.        Installed cmake 2.6.1 via the Windows Installer
>> 2.       Created a CMakeLists.txt file in my src directory
>>
>> # Start CMakeLists.txt
>> project(Union)
>> add_executable(Union union.cpp)
>> #End CMakeLists.txt
>> 3.       Fired up CMakeSetup and set the src and build directories.
>> 4.       Set the build type (nmake)
>> 5.       Received an error (picture attached).
>>
>> CMake Error:  your RC compiler : "CMAKE_RC_COMPILER-NOTFOUND" was
>> not found.  Please set CMAKE_RC_COMPILER to a valid compiler path or
>> name.  (Press Cancel to suppress any further messages.)
>>
>> Note: Pressing cancel causes CMakeSetup to hang until Vista
>> eventually prompts to shut it down.
>>
>> Craig
>>
>>
>> From: Mike Jackson [mailto:mike.jackson at bluequartz.net]
>> Sent: Thursday, August 28, 2008 5:24 AM
>> To: Craig Miller
>> Cc: cmake at cmake.org
>> Subject: Re: [CMake] cmake vista tutorial?
>>
>> Craig, here are some tips from using CMake that might help you get
>> over the "hump".
>>
>> You _first_ need to have a valid CMakeLists.txt file. The simplest
>> file would be:
>>
>> # Start CMakeLists.txt
>> project(HelloWorld)
>> add_executable(HelloWorld main.cpp)
>> #End CMakeLists.txt
>>
>> Put that in a folder called "HelloWorld" on you drive.
>> Then also in that folder create your "main.cpp" source file:
>>
>> // --- Start main.cpp
>>
>> #include <iostream>
>> int main (int argc, char const *argv[])
>> {
>>  std::cout << "HelloWorld" << std::endl;
>>  return 0;
>> }
>>
>> Create a Second folder _within_ the "HelloWorld" folder named "Build"
>>
>> NOW run CMakeSetup.exe.
>>
>> Fill in the text fields for "Where are the source files" with C:/
>> Path/to/HelloWorld
>> and "Where to build the project" with C:/Path/To/HelloWorld/Build
>>
>> Click the "Configure" button. Select the "Visual Studio 2005
>> Project" as the type of project files to generate.
>> When the is complete, click the "Generate" button. After that is
>> complete, cmakesetup.exe will quit. Look in the "Build" folder for
>> "HelloWorld.sln" which will be your VS solution file. Open that up
>> and compile and run..
>>
>> Let us know if that works.
>>
>> Mike Jackson
>> www.bluequartz.net
>>
>>
>> On Thu, Aug 28, 2008 at 12:10 AM, Craig Miller
> <craig.miller at spatialminds.com
>>> wrote:
>> I've read good things about cmake and would like to start using it.
>> I spent the afternoon reading the online tutorials and trying to get
>> a simple hello world c++ project setup and running.  I started with
>> the documentation athttp://www.cmake.org/HTML/Documentation.html and
>> first followed the "Installing CMake" tutorial which was straight
>> forward enough.  I then tried following the "Running CMake" tutorial
>> and things started falling apart.  There seemed to be a number of
>> mandatory steps missing from the tutorial.  Before I throw in the
>> towel, is there a recent tutorial that walks through setting up an
>> entire project from beginning to end using the latest cmake and
>> running under Vista(VS 2005 via nmake)?
>>
>>
>>
>> As I know some will ask, a few of the items that weren't addressed
>> in the tutorial included:
>>
>>
>>
>> -          Instructions to run the CMakeSetup.exe w/o having first
>> created the CMakeLists.txt file in the src directory.
>>
>> -          No mention that CMake must be run in an environment where
>> the Visual Studio vcvars.bat has been executed (which isn't likely
>> if you are running the GUI from the start menu).
>>
>> -          No mention of security issues related to Vista.  After
>> attempting to run several programs as Administrator and still
>> failing, I gave up after spending a fair amount of time w/ google
>> looking for answers.  Vista seems to be introducing the most
>> problems as a result of improved security.
>>
>> Any links to recent tutorials would be very appreciated.
>>
>>
>>
>> Thank you.
>>
>> Craig
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com
>> Version: 8.0.138 / Virus Database: 270.6.10/1638 - Release Date:
>> 8/27/2008 7:06 PM
>> <CMAKE_RC_COMPILER-NOTFOUND.jpg>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.6.10/1638 - Release Date:  
> 8/27/2008
> 7:06 PM
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake

No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.169 / Virus Database: 270.6.10/1638 - Release Date: 8/27/2008
7:06 PM




More information about the CMake mailing list