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

package.sh is for mac only #6

Closed
peterGraf opened this issue Aug 21, 2018 · 8 comments
Closed

package.sh is for mac only #6

peterGraf opened this issue Aug 21, 2018 · 8 comments

Comments

@peterGraf
Copy link

Hello,

The package.sh script is for Mac only,

The last but one line, where Unity is called to create the package does not work on Windows.

I changed it for myself to

/cygdrive/c/Program\ Files/Unity-2018-1-6f1/Editor/Unity -quit -batchmode -nographics -stackTraceLogType Full -executeMethod ARToolKitPackager.CreatePackage -projectPath /home/peter/peter/Source/Repos/arunityx-master/Source/Package ARUnityX-1.0.2.unitypackage

This does not produce an error, but also does not create the ARUnityX-1.0.2.unitypackage.

Can anybody tell me what I am missing?

@EonStrife
Copy link

I am also stuck at ./package.sh. I got an error at one line before your line:

"sed -Ei "" "s/artoolkitX for Unity Version (([0-9]+.[0-9]+)(.[0-9]+)?(r[0-9]+)?)/artoolkitX for Unity Version $VERSION/" $ARUNITYX_HOME/Source/Package/Assets/ARToolKitX-Unity/Scripts/Editor/ARToolKitMenuEditor.cs"

I am using Windows 10, so it is not working because it is really for MacOS ?

@ThorstenBux
Copy link
Contributor

Hi, I've only tested it on macOS but I'm wondering what you are using the packaging script for? This script was designed to generate the artoolkitx.unitypackage plugin. Why would you need to generate the plugin? You could just use the repo or the existing plugin or?

@ThorstenBux
Copy link
Contributor

Just packaged and uploaded into Release: https://github.com/artoolkitx/arunityx/releases

@ThorstenBux
Copy link
Contributor

That should be built automatically by our CD system. But unfortunately, I need a Unity3D license to make that happen.

If any of you has a Unity3D license that is unused or can be occasionally used for CD builds I would highly appreciate it.

Thanks guys

@EonStrife
Copy link

EonStrife commented Aug 27, 2018

Cool! But I have trouble importing it:

image

It still happens after I have tried to Run as Administrator and reinstall Unity.

So I just went straight to the folder and found out that the DLL already existed before. So I renamed it, and now I can import the whole package.

However, I still got some problems, for examples :

  • Package corrupted, deduced GUID exists but at different destination path, refusing import.
  • Assertion failed on expression: 'm_PathToIndex.count(goodPath) == 0'
  • C:/Users/EonStrife/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.package-manager-ui@1.9.11/Editor/Sources/Services/Common/Resources.cs(7,79): error CS0117: UnityEditor.PackageManager.UI.PackageManagerWindow' does not contain a definition for ResourcesPath'
  • C:/Users/EonStrife/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.package-manager-ui@1.9.11/Editor/Sources/UI/Common/Alert.cs(22,30): error CS0117: UnityEditor.PackageManager.UI.Resources' does not contain a definition for Load'
  • C:/Users/EonStrife/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.package-manager-ui@1.9.11/Editor/Sources/UI/PackagesLoading.cs(37,58): error CS0122: `UnityEditor.PackageManager.UI.PackageCollection.listOperation' is inaccessible due to its protection level
  • Error building Player because scripts have compile errors in the editor
  • Build completed with a result of 'Failed'
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
  • UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I was trying to build and run BarcodeScene. I am using Unity 2018.2.5f1.

@JeffBail
Copy link
Contributor

I'm having the same issue. I'm not sure why the package would attempt to overwrite Unity's stock DLL's; it seems like those would be tightly tied to the version of Unity that you're using. I'm on Unity 2018.2.7f1.

@patildattatreya
Copy link

patildattatreya commented Jan 2, 2019

I tried to create the Unity package by compiling package.sh(on Windows 10) , but seems like it's only for MacOS. And now i downloaded the defaultUnitypackage from releases and tried to import it into Unity Project but then it ends up at the same problem as quoted by EonStrife. Can anyone help me , if anyone of you have found any solution?

@philip-lamb
Copy link
Member

It runs on Windows, provided you run from within a bash shell.

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

6 participants