Posts

Showing posts from November, 2023

Various tricks

To compile an OpenCPN plugin from github, first clone it, and perform the Debian/Ubuntu canonical way to install build depencies: $ sudo apt install devscripts equivs $ sudo mk-build-deps -i -r ci/control $ sudo apt-get --allow-unauthenticated install -f Then, to get rid of the wxwidgets conundrum, make the following change: diff --git a/cmake/PluginConfigure.cmake b/cmake/PluginConfigure.cmake @@ -198,13 +198,13 @@ endif() if(NOT WIN32 AND NOT APPLE AND NOT QT_ANDROID) find_package(GTK2) - if(GTK2_FOUND AND NOT "$ENV{BUILD_GTK3}" STREQUAL "TRUE") - set(wxWidgets_CONFIG_OPTIONS ${wxWidgets_CONFIG_OPTIONS} --toolkit=gtk2) - include_directories(${GTK2_INCLUDE_DIRS}) - set(GTK_LIBRARIES ${GTK2_LIBRARIES}) - set(PKG_BUILT_WITH_GTK "gtk2") - message(STATUS "${CMLOC}Building against GTK2...") - else(GTK2_FOUND AND NOT "$ENV{BUILD_GTK3}" STREQUAL "TRUE") + #if(GTK2_FOUND AND NOT "$ENV{BUILD_GTK3}" STREQUAL "TRUE")