Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on macos ( executable file not found in $PATH) #19

Open
fixitt6 opened this issue Jun 15, 2019 · 1 comment
Open

Build failed on macos ( executable file not found in $PATH) #19

fixitt6 opened this issue Jun 15, 2019 · 1 comment

Comments

@fixitt6
Copy link

fixitt6 commented Jun 15, 2019

Mohits-MacBook-Pro:CExampleProject mohit$ spatial worker build --target macos
Extracting packages 1/1 [====================] 100%
Generating bridge settings for client_direct.
Generating bridge settings for client_vtable.
Generating bridge settings for physics.
Generating managed worker configuration for physics.
Generating descriptor. 1/1 [====================] 100%
Running task 'build' for worker 'client_direct', target 'macos'
[1/7] > Build Codegen
[1/1] > Codegen Insert custom codegen step here
[1/1] < Codegen Insert custom codegen step here (100ms)
[1/7] < Build Codegen (100ms)
[2/7] > Build Install dependencies
Extracting packages 1/1 [====================] 100%
[2/7] < Build Install dependencies (720ms)
[3/7] > Build CMake configure
[3/7] < Build CMake configure (40ms)
[4/7] > Build CMake configure for Windows

  • Skipping step windows as it does not match target 'macos'.
    [4/7] < Build CMake configure for Windows (< 10ms)
    [5/7] > Build CMake configure for Linux
  • Skipping step linux as it does not match target 'macos'.
    [5/7] < Build CMake configure for Linux (< 10ms)
    [6/7] > Build CMake configure for macOS
    [6/7] < Build CMake configure for macOS (4s)
    [7/7] > Build CMake build
    [7/7] < Build CMake build (3.63s)
    succeeded (8.49s)
    Running task 'build' for worker 'client_vtable', target 'macos'
    [1/7] > Build Codegen
    [1/1] > Codegen Insert custom codegen step here
    [1/1] < Codegen Insert custom codegen step here (20ms)
    [1/7] < Build Codegen (20ms)
    [2/7] > Build Install dependencies
    [2/7] < Build Install dependencies (50ms)
    [3/7] > Build CMake configure
    [3/7] < Build CMake configure (20ms)
    [4/7] > Build CMake configure
  • Skipping step windows as it does not match target 'macos'.
    [4/7] < Build CMake configure (< 10ms)
    [5/7] > Build CMake configure
  • Skipping step linux as it does not match target 'macos'.
    [5/7] < Build CMake configure (< 10ms)
    [6/7] > Build CMake configure
    [6/7] < Build CMake configure (2.23s)
    [7/7] > Build CMake build
    [7/7] < Build CMake build (4.92s)
    succeeded (7.24s)
    Running task 'build' for worker 'physics', target 'macos'
    [1/4] > Build Codegen
    [1/2] > Codegen Dependencies
    Extracting packages 1/1 [====================] 100%
    Extracting packages 3/3 [====================] 100%
    [1/2] < Codegen Dependencies (410ms)
    [2/2] > Codegen C#
    Generating code for csharp. 1/1 [====================] 100%
    [2/2] < Codegen C# (270ms)
    [1/4] < Build Codegen (690ms)
    [2/4] > Build Linux
  • Skipping step Linux as it does not match target 'macos'.
    [2/4] < Build Linux (< 10ms)
    [3/4] > Build macOS
    Encountered an error running command: 'msbuild' with arguments '/p:Configuration=Release /p:Platform=macOS64 CsharpWorker.sln': exec: "msbuild": executable file not found in $PATH
    Please make sure the step 'macOS' defined in file '/Users/mohit/CExampleProject/workers/csharp_physics/spatialos.csharp.build.json' is configured correctly.
    [3/4] x Build macOS (< 10ms)
    error: exec: "msbuild": executable file not found in $PATH
    failed (690ms)
    Error during command execution: exec: "msbuild": executable file not found in $PATH
    'spatial worker build' failed (16.7s)
    Encountered an error during command execution.
    exit status 1
@dgavedissian
Copy link
Contributor

dgavedissian commented Jul 8, 2019

Hello @fixitt6.

Sorry for the delay, just saw this issue. This example project has both a C and C# worker, and it failed to build the C# worker because you don't have msbuild in the path. You should ensure that you have Mono installed on your Mac, which should add msbuild to your PATH. Let me know if you have any further issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants