floooh / sokol-samples

Sample code for https://github.com/floooh/sokol
MIT License
615 stars 79 forks source link

How to build without a build system.. with 3rd party libs #115

Closed blazer2k1 closed 1 year ago

blazer2k1 commented 1 year ago

Building the nuklear sample was a breeze, but not the case with samples requiring ozzanim and imgui. I have not tested the others with required libs so far.

Also, imgui source is not included in the samples libs folder.

floooh commented 1 year ago

Yeah, this all gets tricky quickly with the non-trivial samples and would require a lot more documentation how to setup the external dependencies and so on. TL;DR: this would be out of scope for the readme.

blazer2k1 commented 1 year ago

I see. I'm just curious to try the ozzanim example and it's just 3 files, any tips in building this dependency to work with sokol?

I just tried a library build (compile to .obj and then ar rcs) of ozzanim and I get link errors.

floooh commented 1 year ago

There's a separate ozzutil library here (basically a high level C wrapper API around the ozzanimation C++ APIs), did you integrate that too?

https://github.com/floooh/sokol-samples/tree/master/libs/ozzutil

Otherwise: what linker errors are you seeing?

blazer2k1 commented 1 year ago

Yes, that's the one I'm trying to build. I don't have python installed yet and just expected CMake to work without that fips thing which is new to me.

Still having a no build option for most of the demos are very nice, given that the actual project is focused around being minimalistic. I just wish it would also be applicable to all examples.

Otherwise: what linker errors are you seeing?

It was long, but I stopped fiddling for now.

Thanks.