Project

General

Profile

The link interface of target Wt::Wt contains HPDF::HPDF

Added by Rakesh Vidyadharan 8 months ago

Hello,

I set up a simple CMake file to build a project. I have installed the latest Release 4.10.0 on Mac OS X. I have libharu installed via homebrew. When installing Wt, I see the following message indicating Haru has been found.

Found HPDF: /opt/homebrew/opt/libharu/lib/libhpdf.dylib (found version "2.4.3")

However, when running cmake on my project, I get the error as in the subject line. I looked at the haru installation, and it does not add any cmake files under lib/cmake. I also tried manually building and installing haru from github, and that also does not install any cmake support files.

How do I work around the missing HPDF::HPDF alias for libharu?

Thanks
Rakesh


Replies (2)

RE: The link interface of target Wt::Wt contains HPDF::HPDF - Added by Matthias Van Ceulebroeck 7 months ago

Hi Rakesh,

I believe that Haru/HPDF changed some names in their CMake in the latest version(s). We recently made an effort to upgrade the CMake file that looks for Haru, but this caused issues on Windows, so those efforts were shelved for a while.

I would advise to build with Haru 2.3.0. There is currently a floating point bug in 2.4.3 that can mess up when you print charts to PDF.
I will be adding a warning to the CMake when a HPDF version is found that contains that bug.

Normally, using the older version should enable you to correctly link to the HPDF::HPDF target.

If not, please let me know!

Best,
Matthias

RE: The link interface of target Wt::Wt contains HPDF::HPDF - Added by Rakesh Vidyadharan 7 months ago

Hi Matthias,

I installed Haru 2.3.0 and reinstalled Wt after pointing it to 2.3.0. I still get the missing alias error. I am working around it for now by manually specifying the Wt includes and libraries.

Rakesh

    (1-2/2)