Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindPortAudio make CMake fail with homebrew-installed portaudio on macOS with CMake 3.18.1 #353

Open
traversaro opened this issue Aug 22, 2020 · 1 comment

Comments

@traversaro
Copy link
Member

In robotology/idyntree#725 I bumped the YCM used by iDynTree's CI jobs from 0.11.0 to 0.11.1 (as Eigen's Bitbucket repo is finally down) and on macOs I now encounter this error when YARP calls find_package(PortAudio QUIET) (it is not only that PortAudio is not found, but CMake exists directly):

CMake Error at /usr/local/Cellar/cmake/3.18.1/share/cmake/Modules/SelectLibraryConfigurations.cmake:71 (set):
-- Configuring incomplete, errors occurred!
See also "/Users/runner/work/idyntree/idyntree/ycm/build/yarp/build/CMakeFiles/CMakeOutput.log".
See also "/Users/runner/work/idyntree/idyntree/ycm/build/yarp/build/CMakeFiles/CMakeError.log".
  Syntax error in cmake code at

    /usr/local/Cellar/cmake/3.18.1/share/cmake/Modules/SelectLibraryConfigurations.cmake:71

  when parsing string

    ${PortAudio_-FRAMEWORK COREAUDIO_LIBRARY}

  Invalid character (' ') in a variable name: 'PortAudio_-FRAMEWORK'
Call Stack (most recent call first):
  /Users/runner/work/idyntree/idyntree/install/deps/share/YCM/modules/StandardFindModule.cmake:153 (select_library_configurations)
  /Users/runner/work/idyntree/idyntree/install/deps/share/YCM/find-modules/FindPortAudio.cmake:31 (standard_find_module)
  cmake/YarpFindDependencies.cmake:365 (find_package)
  CMakeLists.txt:57 (include)

As with YCM 0.11.0 5 days before the failure everything was working fine with CMake 3.18.1 and the portaudio version in homebrew did not changed for a long time, I guess there is something that changed either from YCM 0.11.0 to 0.11.1, or in the GitHub Actions macOS image.

A workaround to this problem is to uninstall portaudio from the system. On the iDynTree's CI, portaudio was installed as it is a dependency of octave.

@traversaro
Copy link
Member Author

A workaround to this problem is to uninstall portaudio from the system. On the iDynTree's CI, portaudio was installed as it is a dependency of octave.

A workaround for this was implemented in robotology/idyntree#725 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant