Skip to content
Discussion options

You must be logged in to vote

No — there's no install target, and copying a binary to /usr/bin wouldn't be enough anyway.

bgfx builds with GENie rather than CMake or autotools, and the makefile only has targets for generating and building projects. Nothing writes to a prefix, so there's nothing that would place an example in /usr/bin.

The bigger obstacle is that the examples resolve their assets relative to the working directory, not to the binary. GENie sets that up per project (scripts/genie.lua):

function exampleProjectDefaults()
	debugdir (path.join(BGFX_DIR, "examples/runtime"))

so an example expects to be launched with examples/runtime as its cwd, and that's where the shaders, textures and meshes it loads live. …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hardBSDk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants