Skip to content

hardcopy missing

Volker Enderlein edited this page Dec 25, 2019 · 4 revisions

You are here: HomeDocumentationMac information pageCoin3D/Mac FAQPotential Errors and Warnings → hardcopy missing

I get an error about <HardCopy/xxx.h> not found. What's this?

The include paths for the HardCopy classes for vectorized printing are

#include <HardCopy/XXX>

instead of

#include <Inventor/annex/HardCopy/XXX>

This is intentional: It's the path that TGS Inventor uses, and we want Coin and Inventor to be as compatible as possible.

You options are:

  • Add "-I/Library/Frameworks/Inventor.framework/Headers/annex" to your compiler flags. (This is how we do it on Windows and GNU/Linux.)
  • Create a symbolic link /usr/local/include/HardCopy, which points to /Library/Frameworks/Inventor.framework/Headers/annex/HardCopy.
  • If you write the code yourself: It is perfectly possible to write <Inventor/annex/HardCopy/XXX>, which will make your code more portable between Coin on different platforms, but not portable between Coin and TGS. (TGS doesn't support Mac OS X at all, so if you want Mac OS X support, that's probably your best option.)
Clone this wiki locally