nikeedev

glad cmake

Dec 21st, 2023 (edited)
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.23 KB | None | 0 0
  1. ====================[ Build | sandbox | Debug ]=================================
  2. /home/nikee/.local/share/JetBrains/Toolbox/apps/clion/bin/cmake/linux/x64/bin/cmake --build /home/nikee/dev/snow/cmake-build-debug --target sandbox -- -j 3
  3. [ 16%] Built target glad
  4. [ 66%] Built target snow
  5. [ 75%] Linking CXX executable sandbox
  6. /usr/bin/ld: ../snow/libsnow.a(Application.cpp.o): warning: relocation against `glad_glClearColor' in read-only section `.text'
  7. /usr/bin/ld: ../snow/libsnow.a(Application.cpp.o): in function `Application::loop()':
  8. /home/nikee/dev/snow/snow/src/core/Application.cpp:60:(.text+0x4de): undefined reference to `glad_glClearColor'
  9. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Application.cpp:62:(.text+0x5ab): undefined reference to `glad_glClear'
  10. /usr/bin/ld: ../snow/libsnow.a(Application.cpp.o): in function `Application::~Application()':
  11. /home/nikee/dev/snow/snow/src/core/Application.cpp:96:(.text+0x702): undefined reference to `glad_glDeleteProgram'
  12. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::Shader(char const*, char const*)':
  13. /home/nikee/dev/snow/snow/src/core/Shader.cpp:43:(.text+0x255): undefined reference to `glad_glCreateShader'
  14. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:44:(.text+0x269): undefined reference to `glad_glShaderSource'
  15. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:45:(.text+0x28c): undefined reference to `glad_glCompileShader'
  16. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:47:(.text+0x29d): undefined reference to `glad_glGetShaderiv'
  17. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:51:(.text+0x2c4): undefined reference to `glad_glGetShaderInfoLog'
  18. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:59:(.text+0x32a): undefined reference to `glad_glCreateShader'
  19. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:60:(.text+0x33e): undefined reference to `glad_glShaderSource'
  20. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:61:(.text+0x361): undefined reference to `glad_glCompileShader'
  21. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:63:(.text+0x372): undefined reference to `glad_glGetShaderiv'
  22. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:67:(.text+0x399): undefined reference to `glad_glGetShaderInfoLog'
  23. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:75:(.text+0x3ff): undefined reference to `glad_glCreateProgram'
  24. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:76:(.text+0x411): undefined reference to `glad_glAttachShader'
  25. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:77:(.text+0x42d): undefined reference to `glad_glAttachShader'
  26. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:78:(.text+0x449): undefined reference to `glad_glLinkProgram'
  27. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:80:(.text+0x45d): undefined reference to `glad_glGetProgramiv'
  28. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:83:(.text+0x487): undefined reference to `glad_glGetProgramInfoLog'
  29. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:87:(.text+0x4f0): undefined reference to `glad_glDeleteShader'
  30. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:88:(.text+0x501): undefined reference to `glad_glDeleteShader'
  31. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::use() const':
  32. /home/nikee/dev/snow/snow/src/core/Shader.cpp:94:(.text+0x679): undefined reference to `glad_glUseProgram'
  33. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setBool(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) const':
  34. /home/nikee/dev/snow/snow/src/core/Shader.cpp:99:(.text+0x6a7): undefined reference to `glad_glUniform1i'
  35. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:99:(.text+0x6b2): undefined reference to `glad_glGetUniformLocation'
  36. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int) const':
  37. /home/nikee/dev/snow/snow/src/core/Shader.cpp:104:(.text+0x6ff): undefined reference to `glad_glUniform1i'
  38. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:104:(.text+0x706): undefined reference to `glad_glGetUniformLocation'
  39. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setFloat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float) const':
  40. /home/nikee/dev/snow/snow/src/core/Shader.cpp:109:(.text+0x757): undefined reference to `glad_glUniform1f'
  41. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:109:(.text+0x75e): undefined reference to `glad_glGetUniformLocation'
  42. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setVec2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, glm::vec<2, float, (glm::qualifier)0> const&) const':
  43. /home/nikee/dev/snow/snow/src/core/Shader.cpp:114:(.text+0x7b2): undefined reference to `glad_glUniform2fv'
  44. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:114:(.text+0x7cd): undefined reference to `glad_glGetUniformLocation'
  45. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setVec2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, float) const':
  46. /home/nikee/dev/snow/snow/src/core/Shader.cpp:118:(.text+0x826): undefined reference to `glad_glUniform2f'
  47. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:118:(.text+0x82d): undefined reference to `glad_glGetUniformLocation'
  48. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setVec3(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, glm::vec<3, float, (glm::qualifier)0> const&) const':
  49. /home/nikee/dev/snow/snow/src/core/Shader.cpp:123:(.text+0x88a): undefined reference to `glad_glUniform3fv'
  50. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:123:(.text+0x8a5): undefined reference to `glad_glGetUniformLocation'
  51. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setVec3(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, float, float) const':
  52. /home/nikee/dev/snow/snow/src/core/Shader.cpp:127:(.text+0x903): undefined reference to `glad_glUniform3f'
  53. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:127:(.text+0x90a): undefined reference to `glad_glGetUniformLocation'
  54. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setVec4(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, glm::vec<4, float, (glm::qualifier)0> const&) const':
  55. /home/nikee/dev/snow/snow/src/core/Shader.cpp:132:(.text+0x96e): undefined reference to `glad_glUniform4fv'
  56. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:132:(.text+0x989): undefined reference to `glad_glGetUniformLocation'
  57. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setVec4(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, float, float, float) const':
  58. /home/nikee/dev/snow/snow/src/core/Shader.cpp:136:(.text+0x9ec): undefined reference to `glad_glUniform4f'
  59. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:136:(.text+0x9f3): undefined reference to `glad_glGetUniformLocation'
  60. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setMat2(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, glm::mat<2, 2, float, (glm::qualifier)0> const&) const':
  61. /home/nikee/dev/snow/snow/src/core/Shader.cpp:141:(.text+0xa60): undefined reference to `glad_glUniformMatrix2fv'
  62. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:141:(.text+0xa88): undefined reference to `glad_glGetUniformLocation'
  63. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setMat3(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, glm::mat<3, 3, float, (glm::qualifier)0> const&) const':
  64. /home/nikee/dev/snow/snow/src/core/Shader.cpp:146:(.text+0xae2): undefined reference to `glad_glUniformMatrix3fv'
  65. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:146:(.text+0xb0a): undefined reference to `glad_glGetUniformLocation'
  66. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setMat4(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, glm::mat<4, 4, float, (glm::qualifier)0> const&) const':
  67. /home/nikee/dev/snow/snow/src/core/Shader.cpp:151:(.text+0xb64): undefined reference to `glad_glUniformMatrix4fv'
  68. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:151:(.text+0xb8c): undefined reference to `glad_glGetUniformLocation'
  69. /usr/bin/ld: ../snow/libsnow.a(Shader.cpp.o): in function `Shader::setMat42QuatCast(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, glm::qua<float, (glm::qualifier)0> const&) const':
  70. /home/nikee/dev/snow/snow/src/core/Shader.cpp:156:(.text+0xbf8): undefined reference to `glad_glUniformMatrix4fv'
  71. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Shader.cpp:156:(.text+0xc36): undefined reference to `glad_glGetUniformLocation'
  72. /usr/bin/ld: ../snow/libsnow.a(Window.cpp.o): in function `framebuffer_size_callback(GLFWwindow*, int, int)':
  73. /home/nikee/dev/snow/snow/src/core/Window.cpp:5:(.text+0x15): undefined reference to `glad_glViewport'
  74. /usr/bin/ld: ../snow/libsnow.a(Window.cpp.o): in function `Window::Window(char const*, glm::vec<2, float, (glm::qualifier)0>)':
  75. /home/nikee/dev/snow/snow/src/core/Window.cpp:33:(.text+0x13a): undefined reference to `gladLoadGLLoader'
  76. /usr/bin/ld: ../snow/libsnow.a(Camera.cpp.o): in function `Camera::update(glm::vec<2, float, (glm::qualifier)0>) const':
  77. /home/nikee/dev/snow/snow/src/core/Camera.cpp:18:(.text+0x106): undefined reference to `glad_glMatrixMode'
  78. /usr/bin/ld: /home/nikee/dev/snow/snow/src/core/Camera.cpp:19:(.text+0x114): undefined reference to `glad_glLoadMatrixf'
  79. /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
  80. collect2: error: ld returned 1 exit status
  81. make[3]: *** [sandbox/CMakeFiles/sandbox.dir/build.make:132: sandbox/sandbox] Error 1
  82. make[2]: *** [CMakeFiles/Makefile2:145: sandbox/CMakeFiles/sandbox.dir/all] Error 2
  83. make[1]: *** [CMakeFiles/Makefile2:152: sandbox/CMakeFiles/sandbox.dir/rule] Error 2
  84. make: *** [Makefile:137: sandbox] Error 2
Add Comment
Please, Sign In to add comment