Cannot compile Kicad (branches: master, 8.0, 7.0) due to the gal library

106 views
Skip to first unread message

Sven Wehrend

unread,
Apr 26, 2024, 2:44:32 PM4/26/24
to KiCad Developers
Hello, I am new to the Kicad project but would like to contribute to give back to the community. But right now I have build issues with the Kicad soureces, I've tried master, 8.0 and 7.0... Every time it hungs up when compiling the gal library - it looks like it doesnt find opengl but it is installed and also passes on the cmake configure. Build environment is a debian bullseye.

Many thanks,
Sven Wehrend

'''
Application: KiCad x86_64 on x86_64

Version: 8.0.0, release build

Libraries:
wxWidgets 3.2.4
FreeType 2.11.1
HarfBuzz 8.3.0
FontConfig 2.13.1
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.2 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.17

Platform: Ubuntu Core 22, 64 bit, Little endian, wxGTK, X11, KDE, x11

Build Info:
Date: Mar 24 2024 13:47:43
wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.1
Curl: 7.81.0
ngspice: 36
Compiler: GCC 11.2.0 with C++ ABI 1016

Build settings:
KICAD_USE_EGL=ON
'''
Additional build info is:

sven@debian:~/development/software/kicad/build/release$ cmake  -DCMAKE_BUILD_TYPE=RelWithDebInfo  ../../                     
CMake Deprecation Warning at CMakeLists.txt:27 (cmake_policy):
 The OLD behavior for policy CMP0116 will be removed from a future version
 of CMake.

 The cmake-policies(7) manual explains that the OLD behaviors of all
 policies are deprecated and that a policy should be set to OLD only under
 specific short-term circumstances.  Projects should be ported to the NEW
 behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:31 (cmake_policy):
 The OLD behavior for policy CMP0113 will be removed from a future version
 of CMake.

 The cmake-policies(7) manual explains that the OLD behaviors of all
 policies are deprecated and that a policy should be set to OLD only under
 specific short-term circumstances.  Projects should be ported to the NEW
 behavior and not rely on setting a policy to OLD.


-- KiCad install dir: </usr/local>
-- Enabling warning -Wsuggest-override
-- Enabling warning -Wduplicated-branches
-- Enabling warning -Wduplicated-cond
-- Enabling error for -Wvla
-- Enabling warning -Wimplicit-fallthrough
-- Enabling error for -Wreturn-type
-- Enabling warning -Wshadow
-- Enabling warning -Wsign-compare
-- Enabling warning -Wmissing-field-initializers
-- Enabling warning -Wempty-body
-- Enabling warning -Wreorder
-- Enabling warning -Wmismatched-tags
-- Disabling warning -Wpsabi
-- Configuring KiCad for the wxGLCanvas EGL backend
-- Found OpenGL EGL library: /usr/lib/x86_64-linux-gnu/libEGL.so
-- Check for installed ZLIB -- found
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.71.0")
-- Found the following HarfBuzz libraries:
--  HarfBuzz (required): /usr/lib/x86_64-linux-gnu/libharfbuzz.so
-- Found OpenCASCADE Standard Edition version: 7.5.1
--  ++ OpenCASCADE Standard Edition include directory: /usr/include/opencascade
--  ++ OpenCASCADE Standard Edition shared libraries directory: /usr/lib/x86_64-linux-gnu
-- Check for installed Python Interpreter -- found
-- Python module install path: lib/python3.9/site-packages
CMake Deprecation Warning at thirdparty/pybind11/CMakeLists.txt:8 (cmake_minimum_required):
 Compatibility with CMake < 3.5 will be removed from a future version of
 CMake.

 Update the VERSION argument <min> value or use a ...<max> suffix to tell
 CMake that the project does not need compatibility with older versions.


-- pybind11 v2.9.2  
-- Found wxPython Phoenix 4.2.1/gtk3 (wxWidgets 3.2.2.1)
-- Found wxWidgets: -pthread;;;-lwx_gtk3u_gl-3.3;-lwx_gtk3u_aui-3.3;-lwx_gtk3u_html-3.3;-lwx_gtk3u_core-3.3;-lwx_baseu_net-3.3;-lwx_baseu-3.3;-lwx_gtk3u_propgrid-3.3;-lwx_baseu_xml-3.3;-lwx_gtk3u_stc-3.3;-lwx_gtk3u_richtext-3.3 (found suitable version "3.3.0", minimum required is
"3.2.2.1")
-- Module support is disabled.
-- Version: 9.0.0
-- Build type: RelWithDebInfo
-- CXX_STANDARD: 17
-- Required features: cxx_variadic_templates
CMake Deprecation Warning at thirdparty/nanodbc/CMakeLists.txt:1 (cmake_minimum_required):
 Compatibility with CMake < 3.5 will be removed from a future version of
 CMake.

 Update the VERSION argument <min> value or use a ...<max> suffix to tell
 CMake that the project does not need compatibility with older versions.


-- nanodbc version: 2.14.0
-- nanodbc compile: C++14
-- nanodbc feature: ODBC Version Override - OFF
-- nanodbc feature: Disable async features - OFF
-- nanodbc feature: Enable Unicode - ON
-- nanodbc feature: Enable Boost - ON
-- nanodbc feature: Enable SQL_NO_DATA bug workaround - OFF
-- nanodbc build: ODBC on Unix - unixODBC
-- ODBC compile flags: -I/usr/include -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8
-- ODBC link flags:  
CMake Deprecation Warning at thirdparty/3dxware_sdk/CMakeLists.txt:2 (cmake_policy):
 Compatibility with CMake < 3.5 will be removed from a future version of
 CMake.

 Update the VERSION argument <min> value or use a ...<max> suffix to tell
 CMake that the project does not need compatibility with older versions.


-- Including 3Dconnexion SpaceMouse navigation support in pcbcommon
-- S3DSG version: 2.0.0
-- Including 3Dconnexion SpaceMouse navigation support in 3d-viewer
-- Including 3Dconnexion SpaceMouse navigation support in eeschema
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: unit_test_framework filesystem system
-- Found wxWidgets: -pthread;;;-lwx_gtk3u_gl-3.3;-lwx_gtk3u_aui-3.3;-lwx_gtk3u_html-3.3;-lwx_gtk3u_core-3.3;-lwx_baseu_net-3.3;-lwx_baseu-3.3;-lwx_baseu_xml-3.3;-lwx_gtk3u_stc-3.3 (found suitable version "3.3.0", minimum required is "3.0.0")
-- Configuring done (1.0s)
-- Generating done (0.2s)
-- Build files have been written to: /home/sven/development/software/kicad
sven@debian:~/development/software/kicad/build/release$


Jon Evans

unread,
Apr 26, 2024, 2:52:52 PM4/26/24
to dev...@kicad.org
Your CMake output does not show any errors. It ends successfully.
What error do you get when you try to build?
> --
> You received this message because you are subscribed to the Google Groups "KiCad Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to devlist+u...@kicad.org.
> To view this discussion on the web visit https://groups.google.com/a/kicad.org/d/msgid/devlist/c26f5e5b-f22e-4c90-af61-fc6f6ceeefbfn%40kicad.org.

Sven Wehrend

unread,
Apr 26, 2024, 3:26:00 PM4/26/24
to KiCad Developers, j...@craftyjon.com

I get the following error log:

[  7%] Built target pcm_settings
[  7%] Building CXX object common/gal/CMakeFiles/gal.dir/__/draw_panel_gal.cpp.o
In file included from /home/sven/development/software/kicad/include/gal/opengl/shader.h:32,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/kiglew.h:53:14: error: #error "KICAD_USE_EGL must be defined since wxWidgets has been compiled with the EGL canvas"
  53 |             #error "KICAD_USE_EGL must be defined since wxWidgets has been compiled with the EGL canvas"
     |              ^~~~~
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/shader.h:46:28: error: 'GL_VERTEX_SHADER' was not declared in this scope
  46 |     SHADER_TYPE_VERTEX   = GL_VERTEX_SHADER,    ///< Vertex shader
     |                            ^~~~~~~~~~~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:46:28: note: the macro 'GL_VERTEX_SHADER' had not yet been defined
In file included from /usr/include/GL/gl.h:2050,
                from /usr/include/wx-3.3/wx/unix/glegl.h:13,
                from /usr/include/wx-3.3/wx/gtk/glcanvas.h:16,
                from /usr/include/wx-3.3/wx/glcanvas.h:310,
                from /home/sven/development/software/kicad/include/gal/hidpi_gl_canvas.h:30,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:41,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/usr/include/GL/glext.h:600: note: it was later defined here
 600 | #define GL_VERTEX_SHADER                  0x8B31
     |  
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/shader.h:47:28: error: 'GL_FRAGMENT_SHADER' was not declared in this scope
  47 |     SHADER_TYPE_FRAGMENT = GL_FRAGMENT_SHADER,  ///< Fragment shader
     |                            ^~~~~~~~~~~~~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:47:28: note: the macro 'GL_FRAGMENT_SHADER' had not yet been defined
In file included from /usr/include/GL/gl.h:2050,
                from /usr/include/wx-3.3/wx/unix/glegl.h:13,
                from /usr/include/wx-3.3/wx/gtk/glcanvas.h:16,
                from /usr/include/wx-3.3/wx/glcanvas.h:310,
                from /home/sven/development/software/kicad/include/gal/hidpi_gl_canvas.h:30,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:41,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/usr/include/GL/glext.h:599: note: it was later defined here
 599 | #define GL_FRAGMENT_SHADER                0x8B30
     |  
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/shader.h:48:28: error: 'GL_GEOMETRY_SHADER' was not declared in this scope
  48 |     SHADER_TYPE_GEOMETRY = GL_GEOMETRY_SHADER   ///< Geometry shader
     |                            ^~~~~~~~~~~~~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:48:28: note: the macro 'GL_GEOMETRY_SHADER' had not yet been defined
In file included from /usr/include/GL/gl.h:2050,
                from /usr/include/wx-3.3/wx/unix/glegl.h:13,
                from /usr/include/wx-3.3/wx/gtk/glcanvas.h:16,
                from /usr/include/wx-3.3/wx/glcanvas.h:310,
                from /home/sven/development/software/kicad/include/gal/hidpi_gl_canvas.h:30,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:41,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/usr/include/GL/glext.h:1399: note: it was later defined here
1399 | #define GL_GEOMETRY_SHADER                0x8DD9
     |  
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/shader.h:158:35: error: 'GLuint' has not been declared
 158 |     void ConfigureGeometryShader( GLuint maxVertices, GLuint geometryInputType,
     |                                   ^~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:158:55: error: 'GLuint' has not been declared
 158 |     void ConfigureGeometryShader( GLuint maxVertices, GLuint geometryInputType,
     |                                                       ^~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:159:35: error: 'GLuint' has not been declared
 159 |                                   GLuint geometryOutputType );
     |                                   ^~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:211:23: error: 'GLuint' has not been declared
 211 |     void programInfo( GLuint aProgram );
     |                       ^~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:218:22: error: 'GLuint' has not been declared
 218 |     void shaderInfo( GLuint aShader );
     |                      ^~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:220:16: error: 'GLuint' was not declared in this scope; did you mean 'uint'?
 220 |     std::deque<GLuint>  shaderNumbers;      ///< Shader number list
     |                ^~~~~~
     |                uint
/home/sven/development/software/kicad/include/gal/opengl/shader.h:220:22: error: template argument 1 is invalid
 220 |     std::deque<GLuint>  shaderNumbers;      ///< Shader number list
     |                      ^
/home/sven/development/software/kicad/include/gal/opengl/shader.h:220:22: error: template argument 2 is invalid
/home/sven/development/software/kicad/include/gal/opengl/shader.h:221:5: error: 'GLuint' does not name a type; did you mean 'uint'?
 221 |     GLuint              programNumber;      ///< Shader program number
     |     ^~~~~~
     |     uint
/home/sven/development/software/kicad/include/gal/opengl/shader.h:225:5: error: 'GLuint' does not name a type; did you mean 'uint'?
 225 |     GLuint              maximumVertices;    ///< The maximum of vertices to be generated
     |     ^~~~~~
     |     uint
/home/sven/development/software/kicad/include/gal/opengl/shader.h:228:5: error: 'GLuint' does not name a type; did you mean 'uint'?
 228 |     GLuint              geomInputType;
     |     ^~~~~~
     |     uint
/home/sven/development/software/kicad/include/gal/opengl/shader.h:231:5: error: 'GLuint' does not name a type; did you mean 'uint'?
 231 |     GLuint              geomOutputType;
     |     ^~~~~~
     |     uint
/home/sven/development/software/kicad/include/gal/opengl/shader.h:232:16: error: 'GLint' was not declared in this scope; did you mean 'GSList'?
 232 |     std::deque<GLint>   parameterLocation;  ///< Location of the parameter
     |                ^~~~~
     |                GSList
/home/sven/development/software/kicad/include/gal/opengl/shader.h:232:21: error: template argument 1 is invalid
 232 |     std::deque<GLint>   parameterLocation;  ///< Location of the parameter
     |                     ^
/home/sven/development/software/kicad/include/gal/opengl/shader.h:232:21: error: template argument 2 is invalid
/home/sven/development/software/kicad/include/gal/opengl/shader.h: In member function 'void KIGFX::SHADER::Use()':
/home/sven/development/software/kicad/include/gal/opengl/shader.h:128:23: error: 'programNumber' was not declared in this scope
 128 |         glUseProgram( programNumber );
     |                       ^~~~~~~~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h:128:9: error: 'glUseProgram' was not declared in this scope
 128 |         glUseProgram( programNumber );
     |         ^~~~~~~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/shader.h: In member function 'void KIGFX::SHADER::Deactivate()':
/home/sven/development/software/kicad/include/gal/opengl/shader.h:137:9: error: 'glUseProgram' was not declared in this scope
 137 |         glUseProgram( 0 );
     |         ^~~~~~~~~~~~
In file included from /home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:37,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:36,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h: At global scope:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:62:5: error: 'GLfloat' does not name a type; did you mean 'float'?
  62 |     GLfloat x, y, z;        // Coordinates
     |     ^~~~~~~
     |     float
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:63:5: error: 'GLubyte' does not name a type
  63 |     GLubyte r, g, b, a;     // Color
     |     ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:64:5: error: 'GLfloat' does not name a type; did you mean 'float'?
  64 |     GLfloat shader[4];      // Shader type & params
     |     ^~~~~~~
     |     float
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:68:62: error: 'GLfloat' was not declared in this scope; did you mean 'float'?
  68 | static constexpr size_t VERTEX_STRIDE = VERTEX_SIZE / sizeof(GLfloat);
     |                                                              ^~~~~~~
     |                                                              float
In file included from /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h:23,
                from /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:38,
                from /usr/include/x86_64-linux-gnu/bits/fcntl.h:61,
                from /usr/include/fcntl.h:35,
                from /usr/include/wx-3.3/wx/filefn.h:34,
                from /usr/include/wx-3.3/wx/utils.h:19,
                from /usr/include/wx-3.3/wx/cursor.h:66,
                from /usr/include/wx-3.3/wx/event.h:21,
                from /usr/include/wx-3.3/wx/window.h:18,
                from /usr/include/wx-3.3/wx/nonownedwnd.h:13,
                from /usr/include/wx-3.3/wx/toplevel.h:19,
                from /usr/include/wx-3.3/wx/dialog.h:13,
                from /usr/include/wx-3.3/wx/msgdlg.h:17,
                from /usr/include/wx-3.3/wx/richmsgdlg.h:17,
                from /home/sven/development/software/kicad/include/confirm.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:27:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:70:58: error: 'struct KIGFX::VERTEX' has no member named 'x'
  70 | static constexpr size_t COORD_OFFSET  = offsetof(VERTEX, x);
     |                                                          ^
In file included from /home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:37,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:36,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:71:56: error: 'x' is not a member of 'KIGFX::VERTEX'
  71 | static constexpr size_t COORD_SIZE    = sizeof(VERTEX::x) + sizeof(VERTEX::y) + sizeof(VERTEX::z);
     |                                                        ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:71:76: error: 'y' is not a member of 'KIGFX::VERTEX'
  71 | static constexpr size_t COORD_SIZE    = sizeof(VERTEX::x) + sizeof(VERTEX::y) + sizeof(VERTEX::z);
     |                                                                            ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:71:96: error: 'z' is not a member of 'KIGFX::VERTEX'
  71 | static constexpr size_t COORD_SIZE    = sizeof(VERTEX::x) + sizeof(VERTEX::y) + sizeof(VERTEX::z);
     |                                                                                                ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:72:61: error: 'GLfloat' was not declared in this scope; did you mean 'float'?
  72 | static constexpr size_t COORD_STRIDE  = COORD_SIZE / sizeof(GLfloat);
     |                                                             ^~~~~~~
     |                                                             float
In file included from /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h:23,
                from /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:38,
                from /usr/include/x86_64-linux-gnu/bits/fcntl.h:61,
                from /usr/include/fcntl.h:35,
                from /usr/include/wx-3.3/wx/filefn.h:34,
                from /usr/include/wx-3.3/wx/utils.h:19,
                from /usr/include/wx-3.3/wx/cursor.h:66,
                from /usr/include/wx-3.3/wx/event.h:21,
                from /usr/include/wx-3.3/wx/window.h:18,
                from /usr/include/wx-3.3/wx/nonownedwnd.h:13,
                from /usr/include/wx-3.3/wx/toplevel.h:19,
                from /usr/include/wx-3.3/wx/dialog.h:13,
                from /usr/include/wx-3.3/wx/msgdlg.h:17,
                from /usr/include/wx-3.3/wx/richmsgdlg.h:17,
                from /home/sven/development/software/kicad/include/confirm.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:27:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:74:58: error: 'struct KIGFX::VERTEX' has no member named 'r'
  74 | static constexpr size_t COLOR_OFFSET  = offsetof(VERTEX, r);
     |                                                          ^
In file included from /home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:37,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:36,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:75:56: error: 'r' is not a member of 'KIGFX::VERTEX'
  75 | static constexpr size_t COLOR_SIZE    = sizeof(VERTEX::r) + sizeof(VERTEX::g) + sizeof(VERTEX::b) + sizeof(VERTEX::a);
     |                                                        ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:75:76: error: 'g' is not a member of 'KIGFX::VERTEX'
  75 | static constexpr size_t COLOR_SIZE    = sizeof(VERTEX::r) + sizeof(VERTEX::g) + sizeof(VERTEX::b) + sizeof(VERTEX::a);
     |                                                                            ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:75:96: error: 'b' is not a member of 'KIGFX::VERTEX'
  75 | static constexpr size_t COLOR_SIZE    = sizeof(VERTEX::r) + sizeof(VERTEX::g) + sizeof(VERTEX::b) + sizeof(VERTEX::a);
     |                                                                                                ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:75:116: error: 'a' is not a member of 'KIGFX::VERTEX'
  75 | static constexpr size_t COLOR_SIZE    = sizeof(VERTEX::r) + sizeof(VERTEX::g) + sizeof(VERTEX::b) + sizeof(VERTEX::a);
     |                                                                                                                    ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:76:61: error: 'GLubyte' was not declared in this scope
  76 | static constexpr size_t COLOR_STRIDE  = COLOR_SIZE / sizeof(GLubyte);
     |                                                             ^~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h:23,
                from /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h:38,
                from /usr/include/x86_64-linux-gnu/bits/fcntl.h:61,
                from /usr/include/fcntl.h:35,
                from /usr/include/wx-3.3/wx/filefn.h:34,
                from /usr/include/wx-3.3/wx/utils.h:19,
                from /usr/include/wx-3.3/wx/cursor.h:66,
                from /usr/include/wx-3.3/wx/event.h:21,
                from /usr/include/wx-3.3/wx/window.h:18,
                from /usr/include/wx-3.3/wx/nonownedwnd.h:13,
                from /usr/include/wx-3.3/wx/toplevel.h:19,
                from /usr/include/wx-3.3/wx/dialog.h:13,
                from /usr/include/wx-3.3/wx/msgdlg.h:17,
                from /usr/include/wx-3.3/wx/richmsgdlg.h:17,
                from /home/sven/development/software/kicad/include/confirm.h:35,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:27:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:79:58: error: 'struct KIGFX::VERTEX' has no member named 'shader'
  79 | static constexpr size_t SHADER_OFFSET = offsetof(VERTEX, shader);
     |                                                          ^~~~~~
In file included from /home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:37,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:36,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:80:56: error: 'shader' is not a member of 'KIGFX::VERTEX'
  80 | static constexpr size_t SHADER_SIZE   = sizeof(VERTEX::shader);
     |                                                        ^~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:81:62: error: 'GLfloat' was not declared in this scope; did you mean 'float'?
  81 | static constexpr size_t SHADER_STRIDE = SHADER_SIZE / sizeof(GLfloat);
     |                                                              ^~~~~~~
     |                                                              float
/home/sven/development/software/kicad/include/gal/opengl/vertex_common.h:83:48: error: 'GLuint' was not declared in this scope; did you mean 'uint'?
  83 | static constexpr size_t INDEX_SIZE    = sizeof(GLuint);
     |                                                ^~~~~~
     |                                                uint
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:36,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:105:18: error: 'GLfloat' has not been declared
 105 |     bool Vertex( GLfloat aX, GLfloat aY, GLfloat aZ );
     |                  ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:105:30: error: 'GLfloat' has not been declared
 105 |     bool Vertex( GLfloat aX, GLfloat aY, GLfloat aZ );
     |                              ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:105:42: error: 'GLfloat' has not been declared
 105 |     bool Vertex( GLfloat aX, GLfloat aY, GLfloat aZ );
     |                                          ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:116:39: error: 'GLfloat' has not been declared
 116 |     bool Vertex( const VECTOR2D& aXY, GLfloat aZ )
     |                                       ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:158:24: error: 'GLfloat' has not been declared
 158 |     inline void Color( GLfloat aRed, GLfloat aGreen, GLfloat aBlue, GLfloat aAlpha )
     |                        ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:158:38: error: 'GLfloat' has not been declared
 158 |     inline void Color( GLfloat aRed, GLfloat aGreen, GLfloat aBlue, GLfloat aAlpha )
     |                                      ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:158:54: error: 'GLfloat' has not been declared
 158 |     inline void Color( GLfloat aRed, GLfloat aGreen, GLfloat aBlue, GLfloat aAlpha )
     |                                                      ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:158:69: error: 'GLfloat' has not been declared
 158 |     inline void Color( GLfloat aRed, GLfloat aGreen, GLfloat aBlue, GLfloat aAlpha )
     |                                                                     ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:179:25: error: 'GLfloat' has not been declared
 179 |     inline void Shader( GLfloat aShaderType, GLfloat aParam1 = 0.0f, GLfloat aParam2 = 0.0f,
     |                         ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:179:46: error: 'GLfloat' has not been declared
 179 |     inline void Shader( GLfloat aShaderType, GLfloat aParam1 = 0.0f, GLfloat aParam2 = 0.0f,
     |                                              ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:179:70: error: 'GLfloat' has not been declared
 179 |     inline void Shader( GLfloat aShaderType, GLfloat aParam1 = 0.0f, GLfloat aParam2 = 0.0f,
     |                                                                      ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:180:25: error: 'GLfloat' has not been declared
 180 |                         GLfloat aParam3 = 0.0f )
     |                         ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:198:28: error: 'GLfloat' has not been declared
 198 |     inline void Translate( GLfloat aX, GLfloat aY, GLfloat aZ )
     |                            ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:198:40: error: 'GLfloat' has not been declared
 198 |     inline void Translate( GLfloat aX, GLfloat aY, GLfloat aZ )
     |                                        ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:198:52: error: 'GLfloat' has not been declared
 198 |     inline void Translate( GLfloat aX, GLfloat aY, GLfloat aZ )
     |                                                    ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:214:25: error: 'GLfloat' has not been declared
 214 |     inline void Rotate( GLfloat aAngle, GLfloat aX, GLfloat aY, GLfloat aZ )
     |                         ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:214:41: error: 'GLfloat' has not been declared
 214 |     inline void Rotate( GLfloat aAngle, GLfloat aX, GLfloat aY, GLfloat aZ )
     |                                         ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:214:53: error: 'GLfloat' has not been declared
 214 |     inline void Rotate( GLfloat aAngle, GLfloat aX, GLfloat aY, GLfloat aZ )
     |                                                     ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:214:65: error: 'GLfloat' has not been declared
 214 |     inline void Rotate( GLfloat aAngle, GLfloat aX, GLfloat aY, GLfloat aZ )
     |                                                                 ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:229:24: error: 'GLfloat' has not been declared
 229 |     inline void Scale( GLfloat aX, GLfloat aY, GLfloat aZ )
     |                        ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:229:36: error: 'GLfloat' has not been declared
 229 |     inline void Scale( GLfloat aX, GLfloat aY, GLfloat aZ )
     |                                    ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:229:48: error: 'GLfloat' has not been declared
 229 |     inline void Scale( GLfloat aX, GLfloat aY, GLfloat aZ )
     |                                                ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:301:53: error: 'GLfloat' has not been declared
 301 |     void ChangeItemDepth( const VERTEX_ITEM& aItem, GLfloat aDepth ) const;
     |                                                     ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:360:38: error: 'GLfloat' has not been declared
 360 |     void putVertex( VERTEX& aTarget, GLfloat aX, GLfloat aY, GLfloat aZ ) const;
     |                                      ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:360:50: error: 'GLfloat' has not been declared
 360 |     void putVertex( VERTEX& aTarget, GLfloat aX, GLfloat aY, GLfloat aZ ) const;
     |                                                  ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:360:62: error: 'GLfloat' has not been declared
 360 |     void putVertex( VERTEX& aTarget, GLfloat aX, GLfloat aY, GLfloat aZ ) const;
     |                                                              ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:375:5: error: 'GLubyte' does not name a type
 375 |     GLubyte                 m_color[COLOR_STRIDE];
     |     ^~~~~~~
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:377:5: error: 'GLfloat' does not name a type; did you mean 'float'?
 377 |     GLfloat                 m_shader[SHADER_STRIDE];
     |     ^~~~~~~
     |     float
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h: In member function 'bool KIGFX::VERTEX_MANAGER::Vertex(const KIGFX::VERTEX&)':
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:92:32: error: 'const struct KIGFX::VERTEX' has no member named 'x'
  92 |         return Vertex( aVertex.x, aVertex.y, aVertex.z );
     |                                ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:92:43: error: 'const struct KIGFX::VERTEX' has no member named 'y'
  92 |         return Vertex( aVertex.x, aVertex.y, aVertex.z );
     |                                           ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:92:54: error: 'const struct KIGFX::VERTEX' has no member named 'z'
  92 |         return Vertex( aVertex.x, aVertex.y, aVertex.z );
     |                                                      ^
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h: In member function 'void KIGFX::VERTEX_MANAGER::Color(const KIGFX::COLOR4D&)':
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:142:9: error: 'm_color' was not declared in this scope; did you mean 'Color'?
 142 |         m_color[0] = aColor.r * 255.0;
     |         ^~~~~~~
     |         Color
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h: In member function 'void KIGFX::VERTEX_MANAGER::Color(int, int, int, int)':
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:160:9: error: 'm_color' was not declared in this scope; did you mean 'Color'?
 160 |         m_color[0] = aRed   * 255.0;
     |         ^~~~~~~
     |         Color
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h: In member function 'void KIGFX::VERTEX_MANAGER::Shader(int, int, int, int)':
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:182:9: error: 'm_shader' was not declared in this scope; did you mean 'Shader'?
 182 |         m_shader[0] = aShaderType;
     |         ^~~~~~~~
     |         Shader
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h: In member function 'void KIGFX::VERTEX_MANAGER::Rotate(int, int, int, int)':
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:216:81: error: no matching function for call to 'rotate(glm::mat4&, int&, glm::vec3)'
 216 |         m_transform = glm::rotate( m_transform, aAngle, glm::vec3( aX, aY, aZ ) );
     |                                                                                 ^
In file included from /usr/include/glm/ext/matrix_transform.hpp:144,
                from /usr/include/glm/gtc/matrix_transform.hpp:30,
                from /home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:35,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:36,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/usr/include/glm/ext/matrix_transform.inl:18:37: note: candidate: 'template<class T, glm::qualifier Q> glm::mat<4, 4, T, Q> glm::rotate(const glm::mat<4, 4, T, Q>&, T, const glm::vec<3, T, Q>&)'
  18 |  GLM_FUNC_QUALIFIER mat<4, 4, T, Q> rotate(mat<4, 4, T, Q> const& m, T angle, vec<3, T, Q> const& v)
     |                                     ^~~~~~
/usr/include/glm/ext/matrix_transform.inl:18:37: note:   template argument deduction/substitution failed:
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:36,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/vertex_manager.h:216:81: note:   deduced conflicting types for parameter 'T' ('float' and 'int')
 216 |         m_transform = glm::rotate( m_transform, aAngle, glm::vec3( aX, aY, aZ ) );
     |                                                                                 ^
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:39,
                from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:40,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h: At global scope:
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h:49:34: error: 'GLuint' has not been declared
  49 |         virtual void DrawBuffer( GLuint aBuffer ) = 0;
     |                                  ^~~~~~
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h:66:26: error: 'GLuint' has not been declared
  66 |         void DrawBuffer( GLuint aBuffer ) override;
     |                          ^~~~~~
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h:86:26: error: 'GLuint' has not been declared
  86 |         void DrawBuffer( GLuint ) override;
     |                          ^~~~~~
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h:110:26: error: 'GLuint' has not been declared
 110 |         void DrawBuffer( GLuint buffer ) override;
     |                          ^~~~~~
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h:130:9: error: 'GLint' does not name a type; did you mean 'GSList'?
 130 |         GLint pass_1_metrics;
     |         ^~~~~
     |         GSList
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h:133:9: error: 'GLint' does not name a type; did you mean 'GSList'?
 133 |         GLint pass_2_metrics;
     |         ^~~~~
     |         GSList
/home/sven/development/software/kicad/common/./gal/opengl/antialiasing.h:136:9: error: 'GLint' does not name a type; did you mean 'GSList'?
 136 |         GLint pass_3_metrics;
     |         ^~~~~
     |         GSList
In file included from /home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:40,
                from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:89:5: error: 'GLenum' does not name a type; did you mean 'enum'?
  89 |     GLenum   GetBufferTexture( unsigned int aBufferHandle );
     |     ^~~~~~
     |     enum
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:118:9: error: 'GLuint' does not name a type; did you mean 'uint'?
 118 |         GLuint textureTarget;                ///< Main texture handle
     |         ^~~~~~
     |         uint
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:119:9: error: 'GLuint' does not name a type; did you mean 'uint'?
 119 |         GLuint attachmentPoint;              ///< Point to which an image from texture is attached
     |         ^~~~~~
     |         uint
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:124:5: error: 'GLuint' does not name a type; did you mean 'uint'?
 124 |     GLuint          m_mainFbo;                ///< Main FBO handle (storing all target textures)
     |     ^~~~~~
     |     uint
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:125:5: error: 'GLuint' does not name a type; did you mean 'uint'?
 125 |     GLuint          m_depthBuffer;            ///< Depth buffer handle
     |     ^~~~~~
     |     uint
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:132:5: error: 'GLuint' does not name a type; did you mean 'uint'?
 132 |     GLuint          m_curFbo;
     |     ^~~~~~
     |     uint
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h: In member function 'virtual unsigned int KIGFX::OPENGL_COMPOSITOR::GetBuffer() const':
/home/sven/development/software/kicad/include/gal/opengl/opengl_compositor.h:67:13: error: 'm_curFbo' was not declared in this scope
  67 |         if( m_curFbo == DIRECT_RENDERING )
     |             ^~~~~~~~
In file included from /home/sven/development/software/kicad/common/draw_panel_gal.cpp:42:
/home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h: At global scope:
/home/sven/development/software/kicad/include/gal/opengl/opengl_gal.h:382:5: error: 'GLUtesselator' does not name a type
 382 |     GLUtesselator*                        m_tesselator;
     |     ^~~~~~~~~~~~~
make[2]: *** [common/gal/CMakeFiles/gal.dir/build.make:170: common/gal/CMakeFiles/gal.dir/__/draw_panel_gal.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3232: common/gal/CMakeFiles/gal.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
sven@debian:~/development/software/kicad/build/release$

Jon Evans

unread,
Apr 26, 2024, 3:36:19 PM4/26/24
to Sven Wehrend, KiCad Developers
What happens when you pass KICAD_USE_EGL=ON to cmake?
Reply all
Reply to author
Forward
0 new messages