CoreAudio, AudioToolbox, AudioUnit etc. headers not found - c++

I'm trying to build Ardour on OS X. I ran ./waf configure successfully, but trying to compile using ./waf results in numerous file-not-found when trying to #include files:
../libs/appleutility/CoreAudio/PublicUtility/CAStreamBasicDescription.h:51:11: fatal error:
'CoreAudio/CoreAudioTypes.h' file not found
#include <CoreAudio/CoreAudioTypes.h>
../libs/appleutility/CoreAudio/PublicUtility/CAAUParameter.h:50:10: fatal error:
'AudioToolbox/AudioUnitUtilities.h' file not found
#include <AudioToolbox/AudioUnitUtilities.h>
../libs/appleutility/CoreAudio/PublicUtility/AUParamInfo.h:49:10: fatal error:
'AudioUnit/AudioUnit.h' file not found
#include <AudioUnit/AudioUnit.h>
I asked about this on the #ardour-osx IRC channel some 40 hours ago but haven't received a response yet.
How to resolve this problem?
The CoreAudio headers seem to be located in
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/`
so I added
-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks`
to the build script (wscript) but the results are the same.

Those headers are available as a download from Apple. This is explained in the Xcode 4.3 what's new documentation.
Choose this menu:
Xcode > Open Developer Tool > More Developer Tools...
and download "Audio Tools for Xcode".

Related

fatal error: boost/version.hpp: no such file or directory on Wndows

Error on Git Bash
Hi, me and my tutor are working on a ML software that requires C++ and boost library (version >= 1.68.0). I have boost 1.78.0 installed in C:. When I try to run the software under the correct directory (C:\Admin\Desktop\smartspec\scenario-generation) with the given code g++ -std=c++17 entitygen.cpp -o entitygen or make entityGenCompile I get the error on the screenshot. The file does exist, the path exist, there is everything to make it function but it just doesn't and it's quite frustrating. We didn't find anything helpful on the net, I'm using Windows 7 by the way.
Thanks :)

fatal error: winsock: No such file or directory

I have been trying to compile multiple C and C++ scripts on a kali VM and 99% of the time I get an error like this:
test.cpp:39:10: fatal error: winsock: No such file or directory
#include <winsock>
It will do the same for Iostream too, I cannot find anything that has helped me fix this and I need to be able to comple and run these programs.
You need to download and install the sdk platform

ui_xprotolabinterface.h: No such file or directory

I'm trying to build the Xscope interface for the Gabotronics xprotolab digital oscilloscope chip. I found the latest user interface tool on github and I cloned it. I followed these instructions to build the GUI on my Linux machine which is running Ubuntu 14.04.
Everything was going well until I typed make and I got the following error -
fatal error: ui_xprotolabinterface.h: No such file or directory
#include "ui_xprotolabinterface.h"
So I began to search for ui_xprotolabinterface.h and I couldn't find it anywhere! I removed the #include "ui_xprotolabinterface.h" line from the xprotolabinterface.cpp file (where these errors were originating from) and I get even more errors without it.
I checked the github source to see if there was an updated version of the code, but this is the most updated version...
Any solutions to this problem?

fatal error: 'libpq++' file not found

I would love to use libpq++ library in my C++ project but I am unable to get it working.
So far, I have installed libpqxx-dev libpqxx-4.0 packages on my Ubuntu 14.04 and provided -llibpq++ to clang++.
However, no matter what I do, I still get following error:
src/serverdata.h:4:10: fatal error: 'libpq++' file not found
It seems that I didn't install libpq++ properly but I don't really see any problem.
Any help would be highly appreciated.
Seems to me, your src/serverdata.h has 4th line like:
#include "libpq++"
If so, change it to something like:
#include <pqxx/basic_connection.hxx>
PS. Files in dev packet are listed here

Compiling phantom.js to LLVM IR

I downloaded the phantomjs source off of their github. I am trying to compile phantomjs into LLVM bytecode. However, when I run
> clang -S -emit-llvm main.cpp
It keeps saying:
In file included from main.cpp:31:
./utils.h:34:10: fatal error: 'QtGlobal' file not found
#include <QtGlobal>
^
1 error generated.
I'm on Ubuntu 14.04. Do I need to install Qt or something?
BTW, I'm not sure if StackOverflow is the best place to ask this, but I couldn't think of any other SE site that would be better.