armory3d/armory

Can't export to linux C

e2002e opened this issue · 2 comments

Linux C does compile an executable but renders a black screen with this message on the console:

Using OpenGL version 4.6 (forward-compatible).
[New Thread 0x7fffd63fc6c0 (LWP 19798)]
iron.data.Data:424: {url : ./data/Scene.arm, error : Could not load blob(s)}

line 424 in iron.data.Data:

kha.Assets.loadBlobFromPath(resolvePath(file), function(b: kha.Blob) {
	cachedBlobs.set(file, b);
	for (f in loadingBlobs.get(file)) f(b);
	loadingBlobs.remove(file);
	assetsLoaded++;
});

linux Krom works OK.

Does ./data/Scene.arm exist? I think the path is relative to your executable.

In the build folder, I got ./compiled/Assets/Scene.arm

I moved this to a new folder called 'data' in the c program build folder and this error disappeared, but more files aren't found so I seek for them and found out that there is a linux-hl folder with a data folder, I moved the executable into the linux-hl folder and it runs fine. Compute shader isn't working though, I though maybe a C executable would be the solution since we were able to run the kha ComputeShader sample with the correct Kink version.