Topics

Building OpenEXR on Windows

Thanh Ha
 

Hi Everyone,

We rolled out Windows builders for the ASWF project and are having some issues building OpenEXR's IlmBase project (see the command and error below) with it (trying to confirm that the builder is good). It seems like CMake is trying to call msbuild from a C:/Windows path but we have it installed at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild"

It's not obvious to me where CMake is picking up this path. Is there a way I can tell it where to look for msbuild?

The jenkins job I've been tested is here:


Please let me know if the approach I am taking is incorrect, I'm trying to follow what's documented in the README.cmake.txt file.

Thanks,
Thanh


& "C:\Program Files\CMake\Bin\cmake" -DCMAKE_INSTALL_PREFIX=C:\lib\ilmbase -G "Visual Studio 10 Win64" ..

CMake Error at CMakeLists.txt:8 (PROJECT):
  Failed to run MSBuild command:

    C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 4.6.1586.0
    [Microsoft .NET Framework, version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    Build started 9/19/2018 12:45:34 AM.
    Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.
    
    Build FAILED.
    
    "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default target) (1) ->
      C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    
        0 Warning(s)
        1 Error(s)

Nick Porcino
 

Hi there, the script I see here: https://jenkins.aswf.io/sandbox/job/openexr-win64-master/configure seems to be incorrectly configured to run a very old Visual Studio, Visual Studio 2010.

-G "Visual Studio 10 Win64" ..

The Generator expression for CMake needs to specify version and year. We've tested OpenEXR with Visual Studio 2015 and 2017, and I see you're intending to use 2017. So, update the generator with:

-G "Visual Studio 15 2017 Win64"

HTH!

- Nick




On Wed, Sep 19, 2018 at 11:57 AM Thanh Ha <thanh.ha@...> wrote:
Hi Everyone,

We rolled out Windows builders for the ASWF project and are having some issues building OpenEXR's IlmBase project (see the command and error below) with it (trying to confirm that the builder is good). It seems like CMake is trying to call msbuild from a C:/Windows path but we have it installed at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild"

It's not obvious to me where CMake is picking up this path. Is there a way I can tell it where to look for msbuild?

The jenkins job I've been tested is here:


Please let me know if the approach I am taking is incorrect, I'm trying to follow what's documented in the README.cmake.txt file.

Thanks,
Thanh


& "C:\Program Files\CMake\Bin\cmake" -DCMAKE_INSTALL_PREFIX=C:\lib\ilmbase -G "Visual Studio 10 Win64" ..

CMake Error at CMakeLists.txt:8 (PROJECT):
  Failed to run MSBuild command:

    C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 4.6.1586.0
    [Microsoft .NET Framework, version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 9/19/2018 12:45:34 AM.
    Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default target) (1) ->
      C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

        0 Warning(s)
        1 Error(s)



--
--------------------------------
Nick Porcino @meshula
Virtual and augmented production, interactive applications, and robotics, since 1982

Thanh Ha
 

Oh yeah that makes sense, I should have thought of that. I copied what was in README and didn't think to try changing the value. I got further now with the updated generator. Will report more on progress once I have something working.

Thanks,
Thanh

On Wed, Sep 19, 2018 at 3:40 PM Nick Porcino <nick.porcino@...> wrote:
Hi there, the script I see here: https://jenkins.aswf.io/sandbox/job/openexr-win64-master/configure seems to be incorrectly configured to run a very old Visual Studio, Visual Studio 2010.

-G "Visual Studio 10 Win64" ..

The Generator expression for CMake needs to specify version and year. We've tested OpenEXR with Visual Studio 2015 and 2017, and I see you're intending to use 2017. So, update the generator with:

-G "Visual Studio 15 2017 Win64"

HTH!

- Nick




On Wed, Sep 19, 2018 at 11:57 AM Thanh Ha <thanh.ha@...> wrote:
Hi Everyone,

We rolled out Windows builders for the ASWF project and are having some issues building OpenEXR's IlmBase project (see the command and error below) with it (trying to confirm that the builder is good). It seems like CMake is trying to call msbuild from a C:/Windows path but we have it installed at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild"

It's not obvious to me where CMake is picking up this path. Is there a way I can tell it where to look for msbuild?

The jenkins job I've been tested is here:


Please let me know if the approach I am taking is incorrect, I'm trying to follow what's documented in the README.cmake.txt file.

Thanks,
Thanh


& "C:\Program Files\CMake\Bin\cmake" -DCMAKE_INSTALL_PREFIX=C:\lib\ilmbase -G "Visual Studio 10 Win64" ..

CMake Error at CMakeLists.txt:8 (PROJECT):
  Failed to run MSBuild command:

    C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 4.6.1586.0
    [Microsoft .NET Framework, version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 9/19/2018 12:45:34 AM.
    Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default target) (1) ->
      C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

        0 Warning(s)
        1 Error(s)



--
--------------------------------
Nick Porcino @meshula
Virtual and augmented production, interactive applications, and robotics, since 1982

Cary Phillips
 

I'll update the README.


On Wed, Sep 19, 2018 at 12:57 PM Thanh Ha <thanh.ha@...> wrote:
Oh yeah that makes sense, I should have thought of that. I copied what was in README and didn't think to try changing the value. I got further now with the updated generator. Will report more on progress once I have something working.

Thanks,
Thanh

On Wed, Sep 19, 2018 at 3:40 PM Nick Porcino <nick.porcino@...> wrote:
Hi there, the script I see here: https://jenkins.aswf.io/sandbox/job/openexr-win64-master/configure seems to be incorrectly configured to run a very old Visual Studio, Visual Studio 2010.

-G "Visual Studio 10 Win64" ..

The Generator expression for CMake needs to specify version and year. We've tested OpenEXR with Visual Studio 2015 and 2017, and I see you're intending to use 2017. So, update the generator with:

-G "Visual Studio 15 2017 Win64"

HTH!

- Nick




On Wed, Sep 19, 2018 at 11:57 AM Thanh Ha <thanh.ha@...> wrote:
Hi Everyone,

We rolled out Windows builders for the ASWF project and are having some issues building OpenEXR's IlmBase project (see the command and error below) with it (trying to confirm that the builder is good). It seems like CMake is trying to call msbuild from a C:/Windows path but we have it installed at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild"

It's not obvious to me where CMake is picking up this path. Is there a way I can tell it where to look for msbuild?

The jenkins job I've been tested is here:


Please let me know if the approach I am taking is incorrect, I'm trying to follow what's documented in the README.cmake.txt file.

Thanks,
Thanh


& "C:\Program Files\CMake\Bin\cmake" -DCMAKE_INSTALL_PREFIX=C:\lib\ilmbase -G "Visual Studio 10 Win64" ..

CMake Error at CMakeLists.txt:8 (PROJECT):
  Failed to run MSBuild command:

    C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 4.6.1586.0
    [Microsoft .NET Framework, version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 9/19/2018 12:45:34 AM.
    Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default target) (1) ->
      C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

        0 Warning(s)
        1 Error(s)



--
--------------------------------
Nick Porcino @meshula
Virtual and augmented production, interactive applications, and robotics, since 1982



--
Cary Phillips | R&D Supervisor | ILM | San Francisco

Nick Porcino
 

Thanks! I was still grepping to find the VS2010 reference. The root Readme.md is correct.


On Wed, Sep 19, 2018 at 2:23 PM Cary Phillips <cary@...> wrote:
I'll update the README.

On Wed, Sep 19, 2018 at 12:57 PM Thanh Ha <thanh.ha@...> wrote:
Oh yeah that makes sense, I should have thought of that. I copied what was in README and didn't think to try changing the value. I got further now with the updated generator. Will report more on progress once I have something working.

Thanks,
Thanh

On Wed, Sep 19, 2018 at 3:40 PM Nick Porcino <nick.porcino@...> wrote:
Hi there, the script I see here: https://jenkins.aswf.io/sandbox/job/openexr-win64-master/configure seems to be incorrectly configured to run a very old Visual Studio, Visual Studio 2010.

-G "Visual Studio 10 Win64" ..

The Generator expression for CMake needs to specify version and year. We've tested OpenEXR with Visual Studio 2015 and 2017, and I see you're intending to use 2017. So, update the generator with:

-G "Visual Studio 15 2017 Win64"

HTH!

- Nick




On Wed, Sep 19, 2018 at 11:57 AM Thanh Ha <thanh.ha@...> wrote:
Hi Everyone,

We rolled out Windows builders for the ASWF project and are having some issues building OpenEXR's IlmBase project (see the command and error below) with it (trying to confirm that the builder is good). It seems like CMake is trying to call msbuild from a C:/Windows path but we have it installed at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild"

It's not obvious to me where CMake is picking up this path. Is there a way I can tell it where to look for msbuild?

The jenkins job I've been tested is here:


Please let me know if the approach I am taking is incorrect, I'm trying to follow what's documented in the README.cmake.txt file.

Thanks,
Thanh


& "C:\Program Files\CMake\Bin\cmake" -DCMAKE_INSTALL_PREFIX=C:\lib\ilmbase -G "Visual Studio 10 Win64" ..

CMake Error at CMakeLists.txt:8 (PROJECT):
  Failed to run MSBuild command:

    C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe

  to get the value of VCTargetsPath:

    Microsoft (R) Build Engine version 4.6.1586.0
    [Microsoft .NET Framework, version 4.0.30319.42000]
    Copyright (C) Microsoft Corporation. All rights reserved.

    Build started 9/19/2018 12:45:34 AM.
    Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" on node 1 (default targets).
    C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
    Done Building Project "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.

    Build FAILED.

    "C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj" (default target) (1) ->
      C:\w\workspace\openexr-win64-master\IlmBase\build\CMakeFiles\3.12.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

        0 Warning(s)
        1 Error(s)



--
--------------------------------
Nick Porcino @meshula
Virtual and augmented production, interactive applications, and robotics, since 1982



--
Cary Phillips | R&D Supervisor | ILM | San Francisco



--
--------------------------------
Nick Porcino @meshula
Virtual and augmented production, interactive applications, and robotics, since 1982