Giter Site home page Giter Site logo

Support M1 and Android x64 about 1kiss HOT 23 CLOSED

simdsoft avatar simdsoft commented on August 25, 2024 2
Support M1 and Android x64

from 1kiss.

Comments (23)

Niborski avatar Niborski commented on August 25, 2024 1

Yes indeed! I've modified the build script to generate the library from https://github.com/cocos2d/glsl-optimizer. Tomorrow I'll clean the scripts, modify the distribution scripts and make sure these only can be build for iOS and OSX.

From there the buildscripts should basically download and build everything (except perhaps luajit a I just cannot get those to work).

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024 1

Done. Last commit in my fork should now also generate glsl-optimizer libraries and add them to the release zip. Again I did not look at the Powershell scripts as I do not have a Windows computer or VM available for that.

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024 1

No worries, I will fix it

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024 1

Good job

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

Buildware is by the way not entirely complete as for Mac and iOS glsl_optimizer (libglcpp-library, libglsl-optimizer.a and libmesa.a) is missing. I've build these for Mac using https://github.com/aras-p/glsl-optimizer (and just change target in xcode to standard platforms; intel and apple silicon).

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

The glsl-optimizer support cmake, maybe could be add to buildware also.

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

The glsl-optimizer only for mac/ios, so no needs to build windows for it.

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

Seems we can't cross compile osx arm64(M1) through github actions:
image

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

Apple M1 support is in github action roadmap, but not complete yet, refer to: github/roadmap#528

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

Let us wait the latest action finished and dist again

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

Yes, maybe script error for openssl:

CONFIG_ALL_OPTIONS=darwin64-x86_64-cc no-tests no-comp no-async no-shared --prefix=/Users/runner/work/buildware/buildware/install_osx_arm64/openssl --openssldir=/Users/runner/work/buildware/buildware/install_osx_arm64/openssl

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

Yes, the github action only provide macos x86_64 vm currently

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

The logic check seems incorrect:
https://github.com/axys1/buildware/blob/main/1k/build1.sh#L78

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

Just ran it again in my x64 Mac and my latest commit also fixes it. No need for an M1 runner 😉

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

The openssl osx arm64 seems still failed:

/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

Might be due to the MacOS version of the runner and the commandline tools. Catelina does not support arm64 (only Big Sur and up). The scripts run correctly on a MacOS 12.5 system (Monterey). If you want I can run them for you.

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

MacOSX10.15.sdk is too "old".

from 1kiss.

halx99 avatar halx99 commented on August 25, 2024

OK, I upgrade it, and works on github action: https://github.com/axys1/buildware/actions/runs/2849072550

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

Looks like it worked 👍

from 1kiss.

Niborski avatar Niborski commented on August 25, 2024

from 1kiss.

Related Issues (5)

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.