Git Product home page Git Product logo

Comments (13)

Haythem-kmal avatar Haythem-kmal commented on June 14, 2024 1

Many thanks for keeping this great SDK alive :)
I managed to generate the package on windows 10 following your instructions @philip-lamb

@megazillia4499
Don't forget to add a backslash between "Program" and "Files", as a space in directory names can be mistakenly recognised as something else

So you path should be like so
C:/Program\ Files/Unity/Hub/Editor/2019.2.17f1/Editor/unity.exe

This is my package.sh modified file just as a reference
package.zip

from arunityx.

philip-lamb avatar philip-lamb commented on June 14, 2024

This may be an oddity in git-bash's line-handling or possibly its sed implementation, since it's treating the zero-length string to the -i as the filename.

Please try editing the packaging script, and change the failing line to this:
sed -Ei "" -e "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

If that works, I'll patch the original.

from arunityx.

megazillia4499 avatar megazillia4499 commented on June 14, 2024

I apologize in advanced if i make a mistake following your instructions but i pasted the exact code snippet you sent on line 53 of 'package.sh'. Then ran 'build.sh' and 'package.sh' and received the following.

SharedScreenshot2

from arunityx.

philip-lamb avatar philip-lamb commented on June 14, 2024

Yeah, git-bash is interpreting the empty command-line parameter as the filename. I'll formulate a workaround in git-bash tomorrow.

from arunityx.

philip-lamb avatar philip-lamb commented on June 14, 2024

OK, checked it and the Linux sed doesn't conform to its manpage; there needs to be no space between the -i and "" parts of that line. So try: sed -Ei"" -e "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

from arunityx.

megazillia4499 avatar megazillia4499 commented on June 14, 2024

Ok so the issues appears to have changed, it attempts to locate a file but cant.

/Applications/Unity/Unity.app/Contents/MacOS/Unity: No such file or directory
so the console shows the following:

SharedScreenshot

from arunityx.

megazillia4499 avatar megazillia4499 commented on June 14, 2024

Is this something that should be installed during build.sh's execution or is it attempting to locate unity on my system? will attempt to run the MacOs build and try again as that's where it is searching.

from arunityx.

philip-lamb avatar philip-lamb commented on June 14, 2024

Ermm, yeah OK yes the script assumes its running on macOS, and is looking for Unity.app in the standard location on macOS. This packaging script was really only intended for running on the CI system, so there could be other gotchas. The same syntax would work provided you replace /Applications/Unity/Unity.app/Contents/MacOS/Unity with the path to unity.exe on your system.

from arunityx.

megazillia4499 avatar megazillia4499 commented on June 14, 2024

so if the path was (on windows)
C:\Program Files\Unity\Hub\Editor\2019.2.17f1\Editor\Unity.exe

shouldn't the line be:

c/Program_Files/Unity/Hub/Editor/2019.2.17f1/Editor/Unity -quit -batchmode -nographics -stackTraceLogType Full -executeMethod ARToolKitPackager.CreatePackage -projectPath $ARUNITYX_HOME/Source/Package ARUnityX-${VERSION}.unitypackage

as that doesn't seem to be working, it just says that the file or directory isn't found

from arunityx.

philip-lamb avatar philip-lamb commented on June 14, 2024

I think you forgot the initial slash on the pathname; it'll need to be /c/Program\ Files/Unity/Hub/Editor/2019.2.17f1/Editor/Unity.

from arunityx.

megazillia4499 avatar megazillia4499 commented on June 14, 2024

Thank you both! I got the package file. Note: when the package is created, it works in the unity project it makes but displays the following error anytime the package is imported into another project:

Package corrupted, deduced GUID exists but at different destination path, refusing import.

from arunityx.

philip-lamb avatar philip-lamb commented on June 14, 2024

This implies that you're trying to import the package into a project where the package's files were previously imported. Try importing into a clean project or completely removing the package's files from the project before re-importing.

from arunityx.

jpmdodev avatar jpmdodev commented on June 14, 2024

Same problems here. Solved following these instructions. Thank you all! :)

from arunityx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.