Code Monkey home page Code Monkey logo

Comments (6)

BradChase2011 avatar BradChase2011 commented on May 29, 2024

I got a little further, apparently I had to set the environment variable (PYTHON_EXE) for the python exe instead of just the path variable. I updated dependencies again, and after that I was missing choco and ninja.

I am wondering if the install docs need updated? They are the same as when we first built our own libraries and they are MUCH different now. But good news is, I am compiling now, so I guess this can be closed.

from skiasharp.

BradChase2011 avatar BradChase2011 commented on May 29, 2024

Compiling after setting the PYTHON_EXE environment variable to the actual exe instead of only the path.

from skiasharp.

BradChase2011 avatar BradChase2011 commented on May 29, 2024

I jumped the gun, externals-windows works but android does not. I can get it to compile by copying the python executable to python3.exe but I am sure thats the wrong route. The script is running cmd.exe which doesnt have the variable is my suspicion. python3 error again:

========================================
libSkiaSharp
========================================
Done. Made 113 targets from 55 files in 234ms
                                             ninja: Entering directory `out/android/x86'
[907/1395] link libskcms.a
FAILED: libskcms.a
cmd.exe /c  python3 "C:/Development/Examples/SkiaSharpNew/externals/skia/gn/rm.py" "libskcms.a" && C:/Development/Android/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-ar.exe rcs libskcms.a @libskcms.a.rsp
'python3' is not recognized as an internal or external command,
operable program or batch file.
[932/1395] compile ../../../modules/skottie/src/effects/SphereEffect.cpp
ninja: build stopped: subcommand failed.
An error occurred when executing task 'libSkiaSharp'.
Error: Process 'C:/Program Files/Python312/Python.exe' failed with error: 1
An error occurred when executing task 'externals-android'.
Error: .NET CLI: Process returned an error (exit code 1).

from skiasharp.

mattleibow avatar mattleibow commented on May 29, 2024

Do you have python3 installed into the PATH variable?

from skiasharp.

BradChase2011 avatar BradChase2011 commented on May 29, 2024

Do you have python3 installed into the PATH variable?

Yea sorry its been awhile since I looked at this but we are fully compiling now. The issue I think that needs resolved is an update to the docs as they appear really outdated. We saved a list in a "How To" so we can just keep coming back to that as its hard to remember the entire list when you only re compile every so often on updates. We have a full list of packages and programs to install and then a build list of environment variables to set as well as what not to install (Tizen) and what to skip (Tizen). Tizen has some install issues right now in VS and windows that basically kills any other development on mobile including android. They are aware of the issue but arent willing to fix it (we used to restore backups on a build machine after builds where Tizen wasnt installed). We dont target Tizen anyways, and really just need the info in the build list.

So again, I think its just the build docs need updated with everything needed like LLVM, choco, Python, Ninja, Tizen, Node.js, on and on... As well as all the environment settings to build each time, for us for some reason we have to tell it where everything is like 'PYTHON_EXE', 'LLVM_HOME', 'ANDROID_NDK_HOME', as well as adding nodejs and Python312 paths.

from skiasharp.

 avatar commented on May 29, 2024

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

from skiasharp.

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.