Re: [CMake] QtCreator generator?

2011-11-12 Thread David Cole
On Fri, Nov 11, 2011 at 6:05 PM, David Doria daviddo...@gmail.com wrote:
 On Fri, Nov 11, 2011 at 5:56 PM, John Drescher dresche...@gmail.com wrote:
 There should have been a *.sln file that you open.?


 Not for a Code Blocks -NMake Makefile project.

 John

 Ok, I guess I am getting my two threads confused.

 To use QtCreator
 The consensus is to use the Code Blocks - NMake Generator. This has
 generated successfully a .cbp file (Code Block Project, I'm assuming).
 However, QtCreator seems unaware that this is a project and just opens it as
 plain text? How do I now open this project in QtCreator?

 To use Visual Studio 2010 Express
 If the VS PlatformSDK that David Cole mentioned is installed properly,
 does a Visual Studio 2010 Express generator appear in the list of
 generators? If not, which one am I supposed to use?

 Thanks,

 David

 --

 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at:
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake


There is no difference in the generator w.r.t. Express vs.
non-Express -- just use Visual Studio 10
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] QtCreator generator?

2011-11-11 Thread David Doria
I saw a discussion about this back in March, but I didn't see any
conclusions/resolutions. Is there a way to generate a QtCreator
project using CMake? I tried the CMake support that was built into
QtCreator itself, but it seems very awkward (you couldn't view/set
variables, etc).

Thanks,

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread David Cole
On Fri, Nov 11, 2011 at 1:08 PM, David Doria daviddo...@gmail.com wrote:
 I saw a discussion about this back in March, but I didn't see any
 conclusions/resolutions. Is there a way to generate a QtCreator
 project using CMake? I tried the CMake support that was built into
 QtCreator itself, but it seems very awkward (you couldn't view/set
 variables, etc).

 Thanks,

 David
 --

 Powered by www.kitware.com

 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the CMake FAQ at: 
 http://www.cmake.org/Wiki/CMake_FAQ

 Follow this link to subscribe/unsubscribe:
 http://www.cmake.org/mailman/listinfo/cmake


I think it's true that QtCreator knows how to connect to a CMake build
tree generated with the CodeBlocks - Unix Makefiles generator.

Somebody out there, please correct me if I'm wrong. I don't use
QtCreator myself, but I think that's the way to do it.

I've heard rumor you can simply open the top level CMakeLists.txt file
in QtCreator, too, and it knows how to find all the source based on
that. Don't know if it will generate a build tree for you if there's
not one to start with...


HTH,
David C.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread Alexander Neundorf
On Friday 11 November 2011, David Cole wrote:
 On Fri, Nov 11, 2011 at 1:08 PM, David Doria daviddo...@gmail.com wrote:
  I saw a discussion about this back in March, but I didn't see any
  conclusions/resolutions. Is there a way to generate a QtCreator
  project using CMake? I tried the CMake support that was built into
  QtCreator itself, but it seems very awkward (you couldn't view/set
  variables, etc).

I think that's true for all project files generated by cmake. You set up most 
things in the CMakeLists.txt, and then use what cmake generates as project 
files.

  
  Thanks,
  
  David
  --
 
 I think it's true that QtCreator knows how to connect to a CMake build
 tree generated with the CodeBlocks - Unix Makefiles generator.
 
 Somebody out there, please correct me if I'm wrong. I don't use
 QtCreator myself, but I think that's the way to do it.
 
 I've heard rumor you can simply open the top level CMakeLists.txt file
 in QtCreator, too, and it knows how to find all the source based on
 that. 

When opening a project from a CMakeLists.txt in CodeBlocks, it runs cmake on 
the CMakeLists.txt with the CodeBlocks generator, and loads the resulting 
codeblocks project file.

The one which parses the cmake files itself and reimplements most cmake 
commands is KDevelop4.

Alex
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread David Doria
 I think it's true that QtCreator knows how to connect to a CMake build
 tree generated with the CodeBlocks - Unix Makefiles generator.

I tried to use this generator, but I get errors like
cmake_c_compiler_env_var is undefined. Shouldn't it find the
compiler for the VS2010Express installation?

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread Alexander Neundorf
On Friday 11 November 2011, David Doria wrote:
  I think it's true that QtCreator knows how to connect to a CMake build
  tree generated with the CodeBlocks - Unix Makefiles generator.
 
 I tried to use this generator, but I get errors like
 cmake_c_compiler_env_var is undefined. Shouldn't it find the
 compiler for the VS2010Express installation?

Please post the full output from cmake, this makes helping much easier.

Thanks
Alex
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread David Doria
On Fri, Nov 11, 2011 at 12:42 PM, Alexander Neundorf
a.neundorf-w...@gmx.net wrote:
 On Friday 11 November 2011, David Doria wrote:
  I think it's true that QtCreator knows how to connect to a CMake build
  tree generated with the CodeBlocks - Unix Makefiles generator.

 I tried to use this generator, but I get errors like
 cmake_c_compiler_env_var is undefined. Shouldn't it find the
 compiler for the VS2010Express installation?

 Please post the full output from cmake, this makes helping much easier.

Sure thing - here you go:

CMake Error: CMake was unable to find a build program corresponding to
Unix 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:/Test/TestITK/build/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:/Test/TestITK/build/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!

Thanks,

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread Alexander Neundorf
On Friday 11 November 2011, David Doria wrote:
 On Fri, Nov 11, 2011 at 12:42 PM, Alexander Neundorf
 
 a.neundorf-w...@gmx.net wrote:
  On Friday 11 November 2011, David Doria wrote:
   I think it's true that QtCreator knows how to connect to a CMake
   build tree generated with the CodeBlocks - Unix Makefiles
   generator.
  
  I tried to use this generator, but I get errors like
  cmake_c_compiler_env_var is undefined. Shouldn't it find the
  compiler for the VS2010Express installation?
  
  Please post the full output from cmake, this makes helping much easier.
 
 Sure thing - here you go:

Ok. one more: how exactly did you run cmake ?
From the command line or cmake-gui ?

Which generator did you choose ?
It should be the CodeBlocks - NMake Makefiles one. 
This then needs to be run from a terminal which has the VisualStudio 
environment variables set.

Then cmake should know what to look for (nmake) and halso find it.
Or is this different with VS2010Express ? (I have never used this)

Alex

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread David Doria
 Ok. one more: how exactly did you run cmake ?
 From the command line or cmake-gui ?

From the CMake-GUI.

 Which generator did you choose ?
 It should be the CodeBlocks - NMake Makefiles one.

I had chosen CodeBlocks - Unix Makefiles. I just tried again with
CodeBlocks - NMake Makefiles, and I get a message box that says:
mspdb100.dll is missing.

 This then needs to be run from a terminal which has the VisualStudio
 environment variables set.

Since I am running the GUI, I'd have to set the global Windows
environment variables, right? Which variables do I need to set?

Thanks for your help so far - we'll get to the bottom of this. I'll
post a tutorial on the wiki once we get it working. I'd imagine this
is a pretty common setup.

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread Alexander Neundorf
On Friday 11 November 2011, David Doria wrote:
  Ok. one more: how exactly did you run cmake ?
  From the command line or cmake-gui ?
 
 From the CMake-GUI.
 
  Which generator did you choose ?
  It should be the CodeBlocks - NMake Makefiles one.
 
 I had chosen CodeBlocks - Unix Makefiles. I just tried again with
 CodeBlocks - NMake Makefiles, and I get a message box that says:
 mspdb100.dll is missing.
 
  This then needs to be run from a terminal which has the VisualStudio
  environment variables set.
 
 Since I am running the GUI, I'd have to set the global Windows
 environment variables, right? Which variables do I need to set?

I think you have to run the GUI from a terminal where the variables are set up 
already. There was usually such an entry in the start menu. I don't know 
whether this is also the case with VSExpress.

Alex
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread Michael Jackson

On Nov 11, 2011, at 4:44 PM, Alexander Neundorf wrote:

 On Friday 11 November 2011, David Doria wrote:
 Ok. one more: how exactly did you run cmake ?
 From the command line or cmake-gui ?
 
 From the CMake-GUI.
 
 Which generator did you choose ?
 It should be the CodeBlocks - NMake Makefiles one.
 
 I had chosen CodeBlocks - Unix Makefiles. I just tried again with
 CodeBlocks - NMake Makefiles, and I get a message box that says:
 mspdb100.dll is missing.
 
 This then needs to be run from a terminal which has the VisualStudio
 environment variables set.
 
 Since I am running the GUI, I'd have to set the global Windows
 environment variables, right? Which variables do I need to set?
 
 I think you have to run the GUI from a terminal where the variables are set 
 up 
 already. There was usually such an entry in the start menu. I don't know 
 whether this is also the case with VSExpress.
 
 Alex
 --

That is the best way I have found to run CMake on Windows when multiple Visual 
Studios are installed. There is a Command Prompt short cut called Visual 
Studio Command Prompt that will have all the compiler paths setup for you. 
What I do is launch that command prompt then issue cmake-gui.exe from there 
and then CMake will know what compilers I want. Note that there are actually 2 
different Visual Studio command prompts: one for 32 bit compiles (Win32) and 
one for the 64 bit compiles (Win64)

Mike Jackson 
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread David Doria
 That is the best way I have found to run CMake on Windows when multiple 
 Visual Studios are installed. There is a Command Prompt short cut called 
 Visual Studio Command Prompt that will have all the compiler paths setup 
 for you. What I do is launch that command prompt then issue cmake-gui.exe 
 from there and then CMake will know what compilers I want. Note that there 
 are actually 2 different Visual Studio command prompts: one for 32 bit 
 compiles (Win32) and one for the 64 bit compiles (Win64)

 Mike Jackson

Great - that worked! It successfully generated a Code Blocks -NMake
Makefile project when I ran cmake-gui from the VS2010E terminal.
However, now when I open VS2010E and go to open - project, there is
no .vcproj file. How do I open this project in VS2010E?

Thanks,

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread Michael Jackson
There should have been a *.sln file that you open.?
___
Mike JacksonPrincipal Software Engineer
BlueQuartz SoftwareDayton, Ohio
mike.jack...@bluequartz.net  www.bluequartz.net

On Nov 11, 2011, at 5:23 PM, David Doria wrote:

 That is the best way I have found to run CMake on Windows when multiple 
 Visual Studios are installed. There is a Command Prompt short cut called 
 Visual Studio Command Prompt that will have all the compiler paths setup 
 for you. What I do is launch that command prompt then issue cmake-gui.exe 
 from there and then CMake will know what compilers I want. Note that there 
 are actually 2 different Visual Studio command prompts: one for 32 bit 
 compiles (Win32) and one for the 64 bit compiles (Win64)
 
 Mike Jackson
 
 Great - that worked! It successfully generated a Code Blocks -NMake
 Makefile project when I ran cmake-gui from the VS2010E terminal.
 However, now when I open VS2010E and go to open - project, there is
 no .vcproj file. How do I open this project in VS2010E?
 
 Thanks,
 
 David

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread John Drescher
 There should have been a *.sln file that you open.?


Not for a Code Blocks -NMake Makefile project.

John
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread David Doria
On Fri, Nov 11, 2011 at 5:56 PM, John Drescher dresche...@gmail.com wrote:
 There should have been a *.sln file that you open.?


 Not for a Code Blocks -NMake Makefile project.

 John

Ok, I guess I am getting my two threads confused.

*To use QtCreator*
The consensus is to use the Code Blocks - NMake Generator. This has
generated successfully a .cbp file (Code Block Project, I'm assuming).
However, QtCreator seems unaware that this is a project and just opens it
as plain text? How do I now open this project in QtCreator?

*To use Visual Studio 2010 Express*
If the VS PlatformSDK that David Cole mentioned is installed properly,
does a Visual Studio 2010 Express generator appear in the list of
generators? If not, which one am I supposed to use?

Thanks,

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] QtCreator generator?

2011-11-11 Thread Christian Ehrlicher
Am Samstag, 12. November 2011, 00:05:20 schrieb David Doria:
 On Fri, Nov 11, 2011 at 5:56 PM, John Drescher dresche...@gmail.com wrote:
  There should have been a *.sln file that you open.?
  
  Not for a Code Blocks -NMake Makefile project.
  
  John
 
 Ok, I guess I am getting my two threads confused.
 
 *To use QtCreator*
 The consensus is to use the Code Blocks - NMake Generator. This has
 generated successfully a .cbp file (Code Block Project, I'm assuming).
 However, QtCreator seems unaware that this is a project and just opens it
 as plain text? How do I now open this project in QtCreator?
 
Open the CMakeLists.txt and adjust the build dir to the one you created.


Christian
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] QtCreator generator?

2011-11-11 Thread David Doria

  *To use QtCreator*
  The consensus is to use the Code Blocks - NMake Generator. This has
  generated successfully a .cbp file (Code Block Project, I'm assuming).
  However, QtCreator seems unaware that this is a project and just opens it
  as plain text? How do I now open this project in QtCreator?
 
 Open the CMakeLists.txt and adjust the build dir to the one you created.


Christian,

I don't follow - the build dir should be specified in the cmake-gui, not in
the CMakeLists.txt file, right? I thought by creating a project for
QtCreator, we could then delete the CMakeLists.txt altogether and the
project would still work?

David
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] QtCreator generator?

2011-11-11 Thread Michael Jackson
But said he was trying to own it in visual studio express.

Mike J

On Friday, November 11, 2011, John Drescher dresche...@gmail.com wrote:
 There should have been a *.sln file that you open.?


 Not for a Code Blocks -NMake Makefile project.

 John


-- 
_
Mike Jackson  mike.jack...@bluequartz.net
BlueQuartz Softwarewww.bluequartz.net
Principal Software Engineer  Dayton, Ohio
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake