Using cmake to configure a 32 bit project on Windows 64 Bit OS

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Using cmake to configure a 32 bit project on Windows 64 Bit OS

Michael Jackson
I tried the following:

  Open the "Visual Studio 2008 Command Prompt"
  Navigate to my project.
  CMake -G "Visual Studio 9 2008" ../

 and I get the error that says the C compiler can not compile a simple
test program. Looking at the error log it would seem that cl.exe isn't
on the path anywhere. I double checked by running vcvars.bat again but
nothing.

Pretty sure I just did the standard install for VS 2008 Standard
Edition. This is on Windows 7 x64. Maybe I can't build 32 bit apps
with the standard edition?

Dunno but I bet there is someone in CMake land who has hit this
problem and I am sure it is something simple that I am missing.

Thanks for any help
_________________________________________________________
Mike Jackson                  [hidden email]
BlueQuartz Software                    www.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
Reply | Threaded
Open this post in threaded view
|

Re: Using cmake to configure a 32 bit project on Windows 64 Bit OS

John Drescher-2
On Wed, Sep 9, 2009 at 2:52 PM, Mike Jackson
<[hidden email]> wrote:

> I tried the following:
>
>  Open the "Visual Studio 2008 Command Prompt"
>  Navigate to my project.
>  CMake -G "Visual Studio 9 2008" ../
>
>  and I get the error that says the C compiler can not compile a simple
> test program. Looking at the error log it would seem that cl.exe isn't
> on the path anywhere. I double checked by running vcvars.bat again but
> nothing.
>
> Pretty sure I just did the standard install for VS 2008 Standard
> Edition. This is on Windows 7 x64. Maybe I can't build 32 bit apps
> with the standard edition?
>
> Dunno but I bet there is someone in CMake land who has hit this
> problem and I am sure it is something simple that I am missing.
>

Did you run CMake from the 32 bit command prompt or the x64 one?

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
Reply | Threaded
Open this post in threaded view
|

Re: Using cmake to configure a 32 bit project on Windows 64 Bit OS

Michael Jackson
Evidently, after a bunch of google searches the problem is that the
VS2008 installer does not seem to install the 32 bit cl.exe programs
unless you choose to install EVERYTHING. I most likely did not select
that option as all I wanted was C++ development. I didn't see the need
for the VB, C# and Web stuff. Stupid Me...
_____________________________________________________
Mike Jackson                  [hidden email]

On Wed, Sep 9, 2009 at 3:01 PM, John Drescher <[hidden email]> wrote:

> On Wed, Sep 9, 2009 at 2:52 PM, Mike Jackson
> <[hidden email]> wrote:
>> I tried the following:
>>
>>  Open the "Visual Studio 2008 Command Prompt"
>>  Navigate to my project.
>>  CMake -G "Visual Studio 9 2008" ../
>>
>>  and I get the error that says the C compiler can not compile a simple
>> test program. Looking at the error log it would seem that cl.exe isn't
>> on the path anywhere. I double checked by running vcvars.bat again but
>> nothing.
>>
>> Pretty sure I just did the standard install for VS 2008 Standard
>> Edition. This is on Windows 7 x64. Maybe I can't build 32 bit apps
>> with the standard edition?
>>
>> Dunno but I bet there is someone in CMake land who has hit this
>> problem and I am sure it is something simple that I am missing.
>>
>
> Did you run CMake from the 32 bit command prompt or the x64 one?
>
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Using cmake to configure a 32 bit project on Windows 64 Bit OS

Michael Jackson
And just to follow up, all I had to do was "Add Components" to the
already installed VC++ tools to add the "Visual C#" package and now it
looks like I am in business.. Sorry for the noise.

_________________________________________________________
Mike Jackson                  [hidden email]


On Wed, Sep 9, 2009 at 3:15 PM, Mike Jackson
<[hidden email]> wrote:

> Evidently, after a bunch of google searches the problem is that the
> VS2008 installer does not seem to install the 32 bit cl.exe programs
> unless you choose to install EVERYTHING. I most likely did not select
> that option as all I wanted was C++ development. I didn't see the need
> for the VB, C# and Web stuff. Stupid Me...
> _____________________________________________________
> Mike Jackson                  [hidden email]
>
> On Wed, Sep 9, 2009 at 3:01 PM, John Drescher <[hidden email]> wrote:
>> On Wed, Sep 9, 2009 at 2:52 PM, Mike Jackson
>> <[hidden email]> wrote:
>>> I tried the following:
>>>
>>>  Open the "Visual Studio 2008 Command Prompt"
>>>  Navigate to my project.
>>>  CMake -G "Visual Studio 9 2008" ../
>>>
>>>  and I get the error that says the C compiler can not compile a simple
>>> test program. Looking at the error log it would seem that cl.exe isn't
>>> on the path anywhere. I double checked by running vcvars.bat again but
>>> nothing.
>>>
>>> Pretty sure I just did the standard install for VS 2008 Standard
>>> Edition. This is on Windows 7 x64. Maybe I can't build 32 bit apps
>>> with the standard edition?
>>>
>>> Dunno but I bet there is someone in CMake land who has hit this
>>> problem and I am sure it is something simple that I am missing.
>>>
>>
>> Did you run CMake from the 32 bit command prompt or the x64 one?
>>
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: Using cmake to configure a 32 bit project on Windows 64 Bit OS

Michael Jackson
In reply to this post by Michael Jackson
And just to follow up, all I had to do was "Add Components" to the
already installed VC++ tools to add the "Visual C#" package and now it
looks like I am in business.. Sorry for the noise.

_________________________________________________________
Mike Jackson                  [hidden email]


On Wed, Sep 9, 2009 at 3:15 PM, Mike Jackson
<[hidden email]> wrote:

> Evidently, after a bunch of google searches the problem is that the
> VS2008 installer does not seem to install the 32 bit cl.exe programs
> unless you choose to install EVERYTHING. I most likely did not select
> that option as all I wanted was C++ development. I didn't see the need
> for the VB, C# and Web stuff. Stupid Me...
> _____________________________________________________
> Mike Jackson                  [hidden email]
>
> On Wed, Sep 9, 2009 at 3:01 PM, John Drescher <[hidden email]> wrote:
>> On Wed, Sep 9, 2009 at 2:52 PM, Mike Jackson
>> <[hidden email]> wrote:
>>> I tried the following:
>>>
>>>  Open the "Visual Studio 2008 Command Prompt"
>>>  Navigate to my project.
>>>  CMake -G "Visual Studio 9 2008" ../
>>>
>>>  and I get the error that says the C compiler can not compile a simple
>>> test program. Looking at the error log it would seem that cl.exe isn't
>>> on the path anywhere. I double checked by running vcvars.bat again but
>>> nothing.
>>>
>>> Pretty sure I just did the standard install for VS 2008 Standard
>>> Edition. This is on Windows 7 x64. Maybe I can't build 32 bit apps
>>> with the standard edition?
>>>
>>> Dunno but I bet there is someone in CMake land who has hit this
>>> problem and I am sure it is something simple that I am missing.
>>>
>>
>> Did you run CMake from the 32 bit command prompt or the x64 one?
>>
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: Using cmake to configure a 32 bit project on Windows 64 Bit OS

John Drescher-2
On Wed, Sep 9, 2009 at 3:22 PM, Mike Jackson
<[hidden email]> wrote:
> And just to follow up, all I had to do was "Add Components" to the
> already installed VC++ tools to add the "Visual C#" package and now it
> looks like I am in business.. Sorry for the noise.
>

Actually thanks. I am not using 2008 for my CMake builds yet however I
do have that installed on my 64 bit xp development box. So if I do
start using 2008, I'd better make sure the 32 bit compiler is
installed..

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