Open wusikijeronii opened 3 years ago
Maybe it's an issue with the order of the libraries that are being linked? I haven't tried using this in any Unix systems, but try swapping the bxRelease
and bimgRelease
around in libs
:
"libs": [
"bgfxRelease",
"bimgRelease",
"bxRelease"
],
Maybe it's an issue with the order of the libraries that are being linked? I haven't tried using this in any Unix systems, but try swapping the
bxRelease
andbimgRelease
around inlibs
:"libs": [ "bgfxRelease", "bimgRelease", "bxRelease" ],
I forgot to write what I have got. Dynamic linking has worked. I remember the same case in my practice. I copied and pasted .so libs from .build folder to the lib folder (/lib) and it worked. Yep, it is a Linux feature. But statically linking as long as doesn't work. Mixing the order of libs doesn't get any success. Additionally, errors in the output say libs are loaded but something like a linker issue appears. The same issue may appear if you try to compile code and forget link headers to the linker.
I'm bgfx beginner and may I do something wrong. I tried to copy code from examples and paste it to the my mashine. By dynamic linking I get:
By static linking:
Error message in Russian means undefined reference in most cases. In both cases the app terminates on the line:
bgfx_init_ctor(&init);
dub.json (static):
What's wrong?