Skip to content

Miss pcaudiolib/audio.h dependency #25

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

Open
mnakhaei opened this issue Aug 28, 2022 · 3 comments
Open

Miss pcaudiolib/audio.h dependency #25

mnakhaei opened this issue Aug 28, 2022 · 3 comments

Comments

@mnakhaei
Copy link

Hi.
I faced with this error while make source code.

googerteller/teller.cc:7:10: fatal error: pcaudiolib/audio.h: No such file or directory
   7 | #include <pcaudiolib/audio.h>
     |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/teller.dir/build.make:76: CMakeFiles/teller.dir/teller.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/teller.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
@berthubert
Copy link
Owner

Hi - this is addressed in the README.

@dmitryd
Copy link

dmitryd commented May 7, 2024

@berthubert Unfortunately it does not help to install it. Check:

$ cmake . && make
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- The C compiler identification is AppleClang 15.0.0.15000100
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/***/googerteller
[ 14%] Generating configs.hh
[ 14%] Built target Work
[ 28%] Building CXX object CMakeFiles/teller.dir/teller.cc.o
/Users/***/googerteller/teller.cc:7:10: fatal error: 'pcaudiolib/audio.h' file not found
#include <pcaudiolib/audio.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/teller.dir/build.make:76: CMakeFiles/teller.dir/teller.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:113: CMakeFiles/teller.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
$ env | grep INCL
INCLUDE=/opt/local/include:/usr/include
$ find /opt/local/include/ -name audio.h
/opt/local/include/pcaudiolib/audio.h

It is installed and it is in the INCLUDE environment variable but not found. Any suggestions?

@dmitryd dmitryd mentioned this issue May 7, 2024
@jonas-w
Copy link

jonas-w commented May 7, 2024

@dmitryd
if you used ./configure --prefix=/opt/local before compiling pcaudiolib, you need to export these variables to compile googerteller:

export CPLUS_INCLUDE_PATH=/opt/local/include/
export LIBRARY_PATH=/opt/local/lib/

Then it should compile.

I tested it out, and googerteller works.

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

4 participants