I'm trying to build gnu radio with control port, but cmake won't find my Ice installation. I have Ice-3.4 installed through apt on Ubuntu 13.10. Digging in to the FindIce.cmake I made the following changes:
diff --git a/cmake/Modules/FindICE.cmake b/cmake/Modules/FindICE.cmake index 087ee9b..705c019 100644 --- a/cmake/Modules/FindICE.cmake +++ b/cmake/Modules/FindICE.cmake @@ -4,7 +4,7 @@ FIND_PACKAGE(PkgConfig) PKG_CHECK_MODULES(PC_ICE Ice-3.4 QUIET) -if(NOT ICE_FOUND) +if(NOT PC_ICE_FOUND) # Maybe we don't have a .pc file for Ice. Check for Config.h. If # that exists, get the version string and parse it for the proper # version. @@ -21,11 +21,11 @@ if(NOT ICE_FOUND) set(ICE_FOUND TRUE) endif(ICE_FOUND) endif(ICE_CONFIG_INCLUDE_DIR) -endif(NOT ICE_FOUND) +endif(NOT PC_ICE_FOUND) -if(NOT ICE_FOUND) +if(NOT PC_ICE_FOUND) message(STATUS " package 'Ice-3.4' not found") -endif(NOT ICE_FOUND) +endif(NOT PC_ICE_FOUND) # Recheck if we found the right version of ICE and proceed if true. This at least squelches the 'package Ice-3.4 not found' message, which is an improvement. (I test this with cmake -P <path-to-module>. I'm still not able to get cmake to configure GNU Radio to build control-port, and this is already extending my cmake-fu. I've only managed to get this configured properly through PyBOMBS. Any suggestions on fixing this module to properly detect a distro installed Ice? Nathan _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio