{"action":"created","issue":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/807","repository_url":"https://api.github.com/repos/bkaradzic/bgfx","labels_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/807/labels{/name}","comments_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/807/comments","events_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/807/events","html_url":"https://github.com/bkaradzic/bgfx/issues/807","id":159291894,"number":807,"title":"Examples work fine, but my attempt segfaults on Intel chipsets in Linux?","user":{"login":"Klowner","id":9374,"avatar_url":"https://avatars.githubusercontent.com/u/9374?v=3","gravatar_id":"","url":"https://api.github.com/users/Klowner","html_url":"https://github.com/Klowner","followers_url":"https://api.github.com/users/Klowner/followers","following_url":"https://api.github.com/users/Klowner/following{/other_user}","gists_url":"https://api.github.com/users/Klowner/gists{/gist_id}","starred_url":"https://api.github.com/users/Klowner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Klowner/subscriptions","organizations_url":"https://api.github.com/users/Klowner/orgs","repos_url":"https://api.github.com/users/Klowner/repos","events_url":"https://api.github.com/users/Klowner/events{/privacy}","received_events_url":"https://api.github.com/users/Klowner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-06-08T22:36:47Z","updated_at":"2016-06-09T16:43:06Z","closed_at":"2016-06-09T16:43:06Z","body":"Firstly, I apologize for the likelihood that I'm just doing something stupid, but I've been banging my head against the wall all morning.\r\n\r\nI know you don't support build systems aside from GENie, but it looks like it's simple enough to build everything using the `amalgamated.cpp`. I also looked at `example-common.lua` and I'm fairly certain I'm building that correctly as well, especially considering everything works perfectly on my system with Nvidia graphics.\r\n\r\nHere's my little example project, I've literally just copied the hello world example over, so the entry harness stuff is all still utilized.\r\n\r\nhttps://github.com/Klowner/bgfx-example-1\r\n\r\nEverything works great on nvidia, but I get segfaults on intel. The real mind-bender for me is that the examples inside `bgfx/examples` build and run just fine on the intel system.\r\n\r\nHere's the backtrace when running on intel graphics\r\n```\r\n(gdb) run\r\nStarting program: /home/mark/bgfxtest \r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/usr/lib/libthread_db.so.1\".\r\n[New Thread 0x7ffff54b4700 (LWP 4775)]\r\n[New Thread 0x7ffff4bb2700 (LWP 4776)]\r\n\r\nThread 3 \"bgfxtest\" received signal SIGABRT, Aborted.\r\n[Switching to Thread 0x7ffff4bb2700 (LWP 4776)]\r\n0x00007ffff5ff6295 in raise () from /usr/lib/libc.so.6\r\n(gdb) bt\r\n#0  0x00007ffff5ff6295 in raise () from /usr/lib/libc.so.6\r\n#1  0x00007ffff5ff76da in abort () from /usr/lib/libc.so.6\r\n#2  0x0000000000462acc in bgfx::CallbackStub::fatal(bgfx::Fatal::Enum, char const*) ()\r\n#3  0x0000000000428f5f in bgfx::fatal(bgfx::Fatal::Enum, char const*, ...) ()\r\n#4  0x00000000004380aa in bgfx::gl::GlContext::create(unsigned int, unsigned int) ()\r\n#5  0x0000000000465b4e in bgfx::gl::RendererContextGL::setRenderContextSize(unsigned int, unsigned int, unsigned int) ()\r\n#6  0x000000000045a009 in bgfx::gl::RendererContextGL::init() ()\r\n#7  0x0000000000444c57 in bgfx::gl::rendererCreate() ()\r\n#8  0x000000000042ecdf in bgfx::rendererCreate(bgfx::RendererType::Enum) ()\r\n#9  0x000000000042e057 in bgfx::Context::rendererExecCommands(bgfx::CommandBuffer&) ()\r\n#10 0x000000000042bdef in bgfx::Context::renderFrame() ()\r\n#11 0x000000000042bc0b in bgfx::renderFrame() ()\r\n#12 0x0000000000455005 in bgfx::Context::renderThread(void*) ()\r\n#13 0x00000000004620d4 in bx::Thread::threadFunc(void*) ()\r\n#14 0x00007ffff6c0c474 in start_thread () from /usr/lib/libpthread.so.0\r\n#15 0x00007ffff60aa69d in clone () from /usr/lib/libc.so.6\r\n(gdb) \r\n```\r\nAny ideas would be greatly appreciated!\r\n"},"comment":{"url":"https://api.github.com/repos/bkaradzic/bgfx/issues/comments/224954473","html_url":"https://github.com/bkaradzic/bgfx/issues/807#issuecomment-224954473","issue_url":"https://api.github.com/repos/bkaradzic/bgfx/issues/807","id":224954473,"user":{"login":"Klowner","id":9374,"avatar_url":"https://avatars.githubusercontent.com/u/9374?v=3","gravatar_id":"","url":"https://api.github.com/users/Klowner","html_url":"https://github.com/Klowner","followers_url":"https://api.github.com/users/Klowner/followers","following_url":"https://api.github.com/users/Klowner/following{/other_user}","gists_url":"https://api.github.com/users/Klowner/gists{/gist_id}","starred_url":"https://api.github.com/users/Klowner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Klowner/subscriptions","organizations_url":"https://api.github.com/users/Klowner/orgs","repos_url":"https://api.github.com/users/Klowner/repos","events_url":"https://api.github.com/users/Klowner/events{/privacy}","received_events_url":"https://api.github.com/users/Klowner/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T16:43:06Z","updated_at":"2016-06-09T16:43:06Z","body":":joy: it does indeed help to link against the correct library. Turns out my `${OpenGL_LIBRARIES}` needed to be `${OPENGL_LIBRARIES}`, then all the `glX...` functions were handled during linking, now it works!\r\n\r\nAt least I was correct about me just doing something stupid :) Thank you so much for your help, now I can move forward."}}
{"actor":{"display_login":"Klowner"}}