Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Linking needs to be fixed on Ubuntu #29

Open
zacharycarter opened this issue Apr 29, 2017 · 6 comments
Open

Linking needs to be fixed on Ubuntu #29

zacharycarter opened this issue Apr 29, 2017 · 6 comments
Assignees
Labels
Milestone

Comments

@zacharycarter
Copy link
Member

Trying to link bgfx on ubuntu produces the following error :

Hint:  [Link]
Hint: operation successful (71798 lines compiled; 2.779 sec total; 208.863MiB peakmem; Debug Build) [SuccessX]
Hint: /home/zc/projects/frag/examples/desktop/00-hello-world/main  [Exec]
../vendor/bgfx/.build/linux64_gcc/bin/libbgfx-shared-libDebug.so: undefined symbol: glXGetFBConfigAttrib
libbgfx-shared-libRelease.so: cannot open shared object file: No such file or directory
could not load: libbgfx-shared-lib(Debug|Release).so
Error: execution of an external program failed: '/home/zc/projects/frag/examples/desktop/00-hello-world/main '

Probably due to linking order / transitive OpenGL dependency.

@zacharycarter zacharycarter added this to the 0.1 milestone Apr 29, 2017
@zacharycarter zacharycarter self-assigned this Apr 29, 2017
@anthonyfinch
Copy link

Let me know if I can help testing anything here!

@zacharycarter
Copy link
Member Author

@anthonyfinch you can indeed!

I believe I have a makefile for bgfx shared that should work.

Here's a gist : https://gist.github.com/zacharycarter/cfd9b242024b1727d3fe6f90241c3f7d

The key lines are :
https://gist.github.com/zacharycarter/cfd9b242024b1727d3fe6f90241c3f7d#file-bgfx-shared-lib-make-L61
(Note - this has to be included in whatever target you're building, the example has it included in all targets.)

This should get things working on ubuntu. I'll patch the version of bgfx frag uses tomorrow for linux to include this fix.

@anthonyfinch
Copy link

@zacharycarter - once I figured out where to use this file ( ;) ) it worked for me, looks good.

@anthonyfinch
Copy link

Oh - actually maybe worth mentioning as well - before this worked for me I realised I did not have the header files for glut installed (freeglut3-dev on ubuntu.) Might be worth adding to the docs somewhere which libraries you will need.

@zacharycarter
Copy link
Member Author

@anthonyfinch good call when I get around to working on the docu this section I will add it to the dependencies section for linux.

@bitnom
Copy link

bitnom commented Jun 27, 2017

I have that package and I'm still getting this error

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

No branches or pull requests

3 participants