Ubuntu glXGetProcAddress在构建wex时未声明

Ubuntu glXGetProcAddress在构建wex时未声明,ubuntu,gcc,makefile,cmake,gtk,Ubuntu,Gcc,Makefile,Cmake,Gtk,我试图在Ubuntu 20.04.1上从源代码构建。 由于官方的构建文档已经过时,我正在遵循。 我已经建造和安装了。 因此,我使用CMake构建wex: mkdir build && cd build make .. -DCMAKE_BUILD_TYPE=Release && make -j4 但它失败了,因为glasy.cpp中没有声明glXGetProcAddress: wex/src/gleasy.cpp: In member function ‘void

我试图在Ubuntu 20.04.1上从源代码构建。 由于官方的构建文档已经过时,我正在遵循。 我已经建造和安装了。 因此,我使用CMake构建wex:

mkdir build && cd build
make .. -DCMAKE_BUILD_TYPE=Release && make -j4
但它失败了,因为glasy.cpp中没有声明glXGetProcAddress:

wex/src/gleasy.cpp: In member function ‘void wxGLEasyCanvas::Text(const wxGLPoint3D&, const wxString&, const wxColour&, const wxBrush&, const wxFont*)’:
wex/src/gleasy.cpp:290:47: error: ‘glXGetProcAddress’ was not declared in this scope
290 |         glWindowPos2f = (PFNGLWINDOWPOS2FPROC)glXGetProcAddress((const GLubyte*)"glWindowPos2f");
我是否缺少编译器标志或库