I am trying to compile a program using cmake, on Ubuntu 20.04.
When I do make, I get the following error code:
Code: Select all
/home/remi/Bureau/test_cmake/VTL/Sources/Frontend/VocalTractPicture.h:94:5: error: ‘wxGLAttributes’ has not been declared
94 | wxGLAttributes openGlArgs, wxWindow *updateEventReceiver);
I installed wxWidets and the necessary dependencies with apt-get. Shall I do something special other than installing openGL for the connexion with openGL? Or specify particular options in my CMakeLists.txt?
Here is how I link wxWidgets in CMakeLists.txt:
Code: Select all
find_package(wxWidgets REQUIRED COMPONENTS net core base)
include(${wxWidgets_USE_FILE})
add_executable(
project
# some files
)
target_link_libraries(project
${wxWidgets_LIBRARIES}
)
Rémi