Closed ClintFlames closed 10 months ago
"NativeLibrary" is not a library itself, it is a sample of how to integrate a native library.
Yes, that's understandable. But isn't this a error with the "NativeLibrary" itself. test.h exists, but the compiler says it does not exist. And I just don't understand why.
The reason it doesn't find the file is because the way you do it the C sources are not integrated into the project at all, it only adds the Haxe files. Just because a file exists somewhere on your filesystem doesn't mean a compiler will find it.
"test.h" i was talking about is in NativeLibrary/VeryNative/src
. Looks like kincfile.js is reffering to all files in src
, so it should detect test.h too, but for some reason it doesn't.
And it does. But as I said before, you are just adding the Haxe files, you do not use kincfile.js. Locking this, all the information you need is here already.
Describe the bug When compiling project with Native Library getting compilation error:
To Reproduce Steps to reproduce the behavior:
F1 > Kha: Init Project
Commands
Renaming NativeLibrary/Sources/Main.hx to SMain (both file and class).
Add line to Main.hx main function
Add line to khafile.js before
resolve(project);
Expected behavior Expected trace 3.
Screenshots
Execution Environment:
Additional context Also i created repository with steps done https://github.com/ClintFlames/Ancnew