Source: stlink Version: 1.5.1+ds-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
stlink fails to cross build from source, because the upstream build system decided that cross compiling shouldn't build the gui and the packaging errors out about that. Cross building the gui just works once you enable it. Checking for cross building is not a sane thing to do. Maybe upstream wants a separate flag for inhibiting the gui. In the mean time, please consider applying the attached patch. Helmut
--- stlink-1.5.1+ds.orig/CMakeLists.txt +++ stlink-1.5.1+ds/CMakeLists.txt @@ -39,7 +39,7 @@ # Dependencies ### find_package(LibUSB REQUIRED) -if (NOT APPLE AND NOT WIN32 AND NOT CMAKE_CROSSCOMPILING) +if (NOT APPLE AND NOT WIN32) find_package(PkgConfig) pkg_check_modules(gtk gtk+-3.0) endif ()