{"action":"created","issue":{"url":"https://api.github.com/repos/pothosware/homebrew-pothos/issues/12","repository_url":"https://api.github.com/repos/pothosware/homebrew-pothos","labels_url":"https://api.github.com/repos/pothosware/homebrew-pothos/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/pothosware/homebrew-pothos/issues/12/comments","events_url":"https://api.github.com/repos/pothosware/homebrew-pothos/issues/12/events","html_url":"https://github.com/pothosware/homebrew-pothos/issues/12","id":240650339,"number":12,"title":"soapyhackrf build fails when using non-default homebrew prefix","user":{"login":"russm","id":240941,"avatar_url":"https://avatars0.githubusercontent.com/u/240941?v=3","gravatar_id":"","url":"https://api.github.com/users/russm","html_url":"https://github.com/russm","followers_url":"https://api.github.com/users/russm/followers","following_url":"https://api.github.com/users/russm/following{/other_user}","gists_url":"https://api.github.com/users/russm/gists{/gist_id}","starred_url":"https://api.github.com/users/russm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russm/subscriptions","organizations_url":"https://api.github.com/users/russm/orgs","repos_url":"https://api.github.com/users/russm/repos","events_url":"https://api.github.com/users/russm/events{/privacy}","received_events_url":"https://api.github.com/users/russm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-07-05T13:27:22Z","updated_at":"2017-07-12T17:08:12Z","closed_at":"2017-07-12T17:08:12Z","body":"With homebrew installed at /opt/homebrew, install fails like so:\r\n\r\n```\r\nrastapopoulos:~ russm$ sudo -i -u hostadmin brew install --keep-tmp soapyhackrf\r\nPassword:\r\n==> Installing soapyhackrf from pothosware/pothos\r\n==> Downloading https://github.com/pothosware/SoapyHackRF/archive/soapy-hackrf-0.3.1.tar.gz\r\nAlready downloaded: /Users/hostadmin/Library/Caches/Homebrew/soapyhackrf-0.3.1.tar.gz\r\n==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/soapyha\r\nLast 15 lines from /Users/hostadmin/Library/Logs/Homebrew/soapyhackrf/01.cmake:\r\n-- The CXX compiler identification is AppleClang 8.1.0.8020042\r\n-- Check for working CXX compiler: /opt/homebrew/Library/Homebrew/shims/super/clang++\r\n-- Check for working CXX compiler: /opt/homebrew/Library/Homebrew/shims/super/clang++ -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version \"0.29.2\") \r\n-- Could NOT find LIBHACKRF (missing:  LIBHACKRF_INCLUDE_DIR) \r\nCMake Error at CMakeLists.txt:17 (message):\r\n  HackRF development files not found...\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"/tmp/soapyhackrf-20170705-24501-605yom/SoapyHackRF-soapy-hackrf-0.3.1/build/CMakeFiles/CMakeOutput.log\".\r\n==> Kept temporary files\r\nTemporary files retained at /tmp/soapyhackrf-20170705-24501-605yom\r\n\r\nIf reporting this issue please do so at (not Homebrew/brew or Homebrew/core):\r\nhttps://github.com/pothosware/homebrew-pothos/issues\r\n\r\nrastapopoulos:~ russm$ \r\n```\r\n\r\nCMakeOutput.log is attached (but doesn't appear useful)\r\n\r\n[CMakeOutput.log.txt](https://github.com/pothosware/homebrew-pothos/files/1124727/CMakeOutput.log.txt)\r\n\r\nAs far as I can see, the error is coming out of FindLIBHACKRF.cmake which should be doing the right thing - it seems to be asking pkg-config how to build against libhackrf, and pkg-config knows:\r\n\r\n```\r\nrastapopoulos:~ russm$ pkg-config --cflags libhackrf\r\n-I/opt/homebrew/Cellar/hackrf/2017.02.1/include/ -I/opt/homebrew/Cellar/libusb/1.0.21/include/libusb-1.0\r\nrastapopoulos:~ russm$ pkg-config --libs libhackrf\r\n-L/opt/homebrew/Cellar/hackrf/2017.02.1/lib -lhackrf\r\nrastapopoulos:~ russm$ \r\n```\r\n\r\nbut I guess it's not actually using pkg-config and working (in the default layout) because homebrew defaults to just dumping everything in /usr/local ?\r\n\r\nI tried building with `LIBHACKRF_INCLUDE_DIR` and `LIBHACKRF_LIBRARIES` explicitly set in the environment but that made no difference. (Does `brew install` sanitize the environment?)"},"comment":{"url":"https://api.github.com/repos/pothosware/homebrew-pothos/issues/comments/314834658","html_url":"https://github.com/pothosware/homebrew-pothos/issues/12#issuecomment-314834658","issue_url":"https://api.github.com/repos/pothosware/homebrew-pothos/issues/12","id":314834658,"user":{"login":"guruofquality","id":184117,"avatar_url":"https://avatars1.githubusercontent.com/u/184117?v=3","gravatar_id":"","url":"https://api.github.com/users/guruofquality","html_url":"https://github.com/guruofquality","followers_url":"https://api.github.com/users/guruofquality/followers","following_url":"https://api.github.com/users/guruofquality/following{/other_user}","gists_url":"https://api.github.com/users/guruofquality/gists{/gist_id}","starred_url":"https://api.github.com/users/guruofquality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guruofquality/subscriptions","organizations_url":"https://api.github.com/users/guruofquality/orgs","repos_url":"https://api.github.com/users/guruofquality/repos","events_url":"https://api.github.com/users/guruofquality/events{/privacy}","received_events_url":"https://api.github.com/users/guruofquality/received_events","type":"User","site_admin":false},"created_at":"2017-07-12T17:08:12Z","updated_at":"2017-07-12T17:08:12Z","body":"Looks like this is basically resolved, obviously we need a new tag, but HEAD build should be fine for either hackrf pc file. Thanks!"}}
{"actor":{"display_login":"guruofquality"}}