Comments (4)
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.
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.
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.
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)
- D3D11 storage buffers do not compile on wine HOT 1
- Seems .c file not generated in bindgen, producing errors HOT 2
- test
- Sokol Fetch Http response 200 is reported as an error HOT 7
- [sokol_gfx d3d11] update_image is wrong for 3d textures HOT 10
- Offscreen with alpha background. Is it possible? HOT 4
- [webgpu] Bindgroups cache breaks down with init/uninit pattern.
- macOS huge memory usage when window minimized HOT 1
- Questions regarding default GL version HOT 5
- App Window Size on Android HOT 3
- Default value _sg_gl_uniform_t::gl_loc when uniform_desc's name isn't given in sokol_gfx HOT 1
- sokol_gfx.h: wrong define in log related to SOKOL_TRACE_HOOKS HOT 1
- WebGPU TextureView validation error HOT 6
- sokol_fetch on Android
- partial updates to buffers/textures (e.g. offset and size args to glBufferSubData, glTexSubImage) HOT 1
- Right shift is recognized as "invalid key" on Windows. HOT 9
- SAPP_EVENT_CHAR for Space is fired when Ctrl+Space is pressed. HOT 2
- Key events on Linux always use the **first** keyboard layout in the system's keyboard layout list. HOT 1
- Continuous Bind Slots Restriction Unnecessary? HOT 3
- Feature request: Please drop the direct use of int, short, etc in favour of int_least32_t, int_least16_t
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sokol.