Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't build in Ubuntu 14.04 #3

Open
ghost opened this issue Feb 14, 2015 · 2 comments
Open

Doesn't build in Ubuntu 14.04 #3

ghost opened this issue Feb 14, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 14, 2015

I know that it's mentioned it may only work on Mac right now, but I'd really like to play around with this and I don't have a Mac.

This is the error I'm getting after running $ go get github.com/james4k/go-bgfx

# github.com/james4k/go-bgfx /usr/bin/ld: $WORK/github.com/james4k/go-bgfx/_obj/bgfx.cpp.o: undefined reference to symbol 'XFree' //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status

Any help to build this in ubuntu would be appreciated.

@james4k
Copy link
Owner

james4k commented Feb 14, 2015

There will be a number of issues getting it to build outside of Mac, but it wants to link against X11 for GL context creation. See https://github.com/james4k/go-bgfx/blob/master/bridge.go for the current linker arguments.

Eventually, would like to move context creation out of bgfx, or at least be optional.

I haven't worked on this in some time due to other priorities, so can't say when work will resume, but future projects will depend on it.

@james4k
Copy link
Owner

james4k commented Feb 14, 2015

A good interim solution would be to keep your rendering API in Go fairly high level, and do all of your bgfx rendering calls in C/C++.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant