kiwi: resource.c missing for successful Cmake?
This is probably more due to my lack of cmake understanding but I can’t get it to generate successfully.
CMake Error at src/CMakeLists.txt:51 (add_library):
Cannot find source file:
resources.c
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: CMake can not determine linker language for target: KiWi
CMake Error in src/CMakeLists.txt:
Exporting the target "KiWi" is not allowed since its linker language cannot
be determined
Any info on what is happening here? Is it just me? Can you provide a successful cmake configuration as an example, pretty please? 😃
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 36 (20 by maintainers)
Commits related to this issue
- use cmake_binary_dir to point to resources.c #29 — committed to mobius3/kiwi by mobius3 6 years ago
- properly specify file2c output path (#29) — committed to mobius3/kiwi by mobius3 6 years ago
- file2c: avoid using VLA in make_identifier (#29) — committed to mobius3/kiwi by mobius3 6 years ago
- VC++ fixes (#29) — committed to mobius3/kiwi by mobius3 6 years ago
- fix make_identifier not reading corrent size (#29) — committed to mobius3/kiwi by mobius3 6 years ago
@krystcich well I have tested it with Android previously and it worked. It wasn’t through CMake though. There is an
Android.mkmakefile on KiWi’s source root that I used to build it in the past but I’ll admit that I havent tested it nowadays. It builds a static library as well (and statically links to SDL), you can use it to link to your main.so, depending on your project’s rootAndroid.mk. SDL2 sources has an android example that I used as a base and edited to build one of the examples and link with KiWi. I’d say thats the path to go. Let me know if you succeed and how (I’d only ask you to open another issue regarding this).Building a shared library out of KiWi seems to not hurt anyone so I’ll make it happen.
That is good to know. I’ll boot Windows today and I’ll try to provide a proper fix.
Hello! Here’s what worked for me:
Hope that helps somehow!