Compiling with OpenGL

  • FeynmanLogomaker
    28th Feb 2015 Member 0 Permalink

    I've been kind of curious as to how well TPT performs compiled with OpenGL, but when I try to compile with --opengl, it compiles all the individual files properly and then crashes and burns on the final step. Any idea how I could fix this?

     

    Here's the compiler log(it's after the individual files were all compiled properly). I think the error might be because the g++ -o compilation isn't ran with -lGL or something, but I'm not sure how to fix it.

  • boxmein
    1st Mar 2015 Former Staff 0 Permalink
    Each of those reference errors looks like an OpenGL function - maybe you need to add -lGL to when each of the files are compiled, or when the binary itself is linked together...
  • jacob1
    1st Mar 2015 Developer 0 Permalink
    Seeing config.log could help too. OpenGL is weird and even if you have the lib you might not be able to compile. I recommend just not using it, it's really buggy and not really supported anymore.

    Edit: Are you compiling using --opengl-renderer? If so you also need --opengl
    Edited once by jacob1. Last: 1st Mar 2015