CSharp/Unity pack.sh Buck Build error on Windows #561

Closed
opened 2017-05-23 06:16:34 -07:00 by jcaracciolo · 4 comments
jcaracciolo commented 2017-05-23 06:16:34 -07:00 (Migrated from github.com)

Report

Issues and Steps to Reproduce

  • Go to csharp/Unity
  • Run win.bat to generate yoga.dll
  • Run pack.sh

Expected Behavior

  • Buck to build correctly

Actual Behavior

  • Buck error
Not using buckd because watchman isn't installed.
[-] BUILDING...FINISHED 0,0s
[-] DOWNLOADING... (0,00 B/S AVG, TOTAL: 0,00 B, 0 Artifacts)
BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#default,shared)
Not using buckd because watchman isn't installed.
BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#default,shared)
Not using buckd because watchman isn't installed.
[-] BUILDING...FINISHED 0,0s
[-] DOWNLOADING... (0,00 B/S AVG, TOTAL: 0,00 B, 0 Artifacts)
BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#android-armv7,shared)
Not using buckd because watchman isn't installed.
BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#android-armv7,shared)
Not using buckd because watchman isn't installed.
[-] BUILDING...FINISHED 0,0s
[-] DOWNLOADING... (0,00 B/S AVG, TOTAL: 0,00 B, 0 Artifacts)
BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet-ios)
Not using buckd because watchman isn't installed.
# Report - [X] I have searched [existing issues](https://github.com/facebook/yoga/issues) and this is not a duplicate # Issues and Steps to Reproduce - Go to csharp/Unity - Run win.bat to generate yoga.dll - Run pack.sh # Expected Behavior - Buck to build correctly # Actual Behavior - Buck error ``` Not using buckd because watchman isn't installed. [-] BUILDING...FINISHED 0,0s [-] DOWNLOADING... (0,00 B/S AVG, TOTAL: 0,00 B, 0 Artifacts) BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#default,shared) Not using buckd because watchman isn't installed. BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#default,shared) Not using buckd because watchman isn't installed. [-] BUILDING...FINISHED 0,0s [-] DOWNLOADING... (0,00 B/S AVG, TOTAL: 0,00 B, 0 Artifacts) BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#android-armv7,shared) Not using buckd because watchman isn't installed. BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet#android-armv7,shared) Not using buckd because watchman isn't installed. [-] BUILDING...FINISHED 0,0s [-] DOWNLOADING... (0,00 B/S AVG, TOTAL: 0,00 B, 0 Artifacts) BUILD FAILED: Build target path should start with an optional cell name, then // and then a relative directory name, not an absolute directory path (found ///csharp:yoganet-ios) Not using buckd because watchman isn't installed. ```
splhack commented 2017-05-23 09:52:16 -07:00 (Migrated from github.com)

Unfortunately csharp/Unity/pack.sh was intended for macOS, since it builds iOS binary too.

Unfortunately `csharp/Unity/pack.sh` was intended for macOS, since it builds iOS binary too.
jcaracciolo commented 2017-05-23 19:38:41 -07:00 (Migrated from github.com)

I believe the script was originally intended for windows as well.

if [ \! -f yoga.dll ]; then
  echo "Launch win.bat on Windows and copy yoga.dll to here"
  exit 1
fi

Is there any workaround to this?

I believe [the script](https://github.com/facebook/yoga/blob/master/csharp/Unity/pack.sh#L14) was originally intended for windows as well. ``` if [ \! -f yoga.dll ]; then echo "Launch win.bat on Windows and copy yoga.dll to here" exit 1 fi ``` Is there any workaround to this?
splhack commented 2017-05-25 16:22:21 -07:00 (Migrated from github.com)

Just commenting out what you don't need to do, like skip buck building for Android, macOS, iOS, ...
We will be able to make the script more generic way later.

Just commenting out what you don't need to do, like skip buck building for Android, macOS, iOS, ... We will be able to make the script more generic way later.
NickGerleman commented 2023-06-05 19:05:51 -07:00 (Migrated from github.com)

The C# bindings have not had a dedicated maintainer. We are removing them from the repo as part of cleanup for the next OSS release of Yoga.

The C# bindings have not had a dedicated maintainer. We are removing them from the repo as part of cleanup for the next OSS release of Yoga.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DaddyFrosty/yoga#561
No description provided.