googerteller icon indicating copy to clipboard operation
googerteller copied to clipboard

Miss pcaudiolib/audio.h dependency

Open mnakhaei opened this issue 1 year ago • 3 comments

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

mnakhaei avatar Aug 28 '22 07:08 mnakhaei

Hi - this is addressed in the README.

berthubert avatar Aug 28 '22 20:08 berthubert

@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 avatar May 07 '24 08:05 dmitryd

@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.

jonas-w avatar May 07 '24 23:05 jonas-w