Coder Social home page Coder Social logo

Android builds without fips? about sokol HOT 4 CLOSED

RusJJ avatar RusJJ commented on July 22, 2024
Android builds without fips?

from sokol.

Comments (4)

floooh avatar floooh commented on July 22, 2024 1

I didn't want to pull abominations like Gradle into the sample build process, so instead I'm calling a python script from cmake which generates the .apk (see here: https://github.com/floooh/fips/blob/master/tools/android-create-apk.py).

Android Studio is still useful for debugging (using the externally created APK), but other then that, in my eyes not having to rely on most of the Android build system mess is actually a good thing ;)

Of course this is all sokol-sample specific. The sokol headers don't depend on any specific build system details and should work just fine with the build workflow recommended by the Android team.

What errors are you seeing when trying to build for Windows?

from sokol.

RusJJ avatar RusJJ commented on July 22, 2024 1

Are you just trying to build the sokol samples, or a project of your own?

My own. Just trying to get it starting atleast.
Thanks for the links. Hope i will get it soon!

UPD: Yeah, i got a window! Huge thanks! I just used a sokol.cpp example from pacman. Idk what i did wrong with the same logic but it works!

from sokol.

RusJJ avatar RusJJ commented on July 22, 2024

What errors are you seeing when trying to build for Windows?

Probably im missing something... Do i need GLFW/SDL/any other to get it working completely? Just trying go work with sokol_main, seems like it still tries to call int main(), i've included "_app" and "_gfx"

from sokol.

floooh avatar floooh commented on July 22, 2024

Are you just trying to build the sokol samples, or a project of your own?

If you build something of your own, and don't need Android support right away, you could also start with a fips-less project like https://github.com/floooh/cimgui-sokol-starterkit or https://github.com/floooh/pacman.c. These use relatively simple cmake files.

from sokol.

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.