Unable to build on macOS

Issue #156 new
Giova created an issue

Hello, I’ve tried to build the project on macOS 10.14.6, I’ve installed all the necessary libraries and headers with brew, but unfortunately I can’t get it to build with tools/build-art. I’ve tried many different options.

The first time I simply ran it without options ($ ./build-art) and this is the output. It fails telling me:

/usr/local/Cellar/exiv2/0.27.3/include/exiv2/ssh.hpp:27:10: fatal error: 
      'libssh/libssh.h' file not found
#include <libssh/libssh.h>
         ^~~~~~~~~~~~~~~~~

The second time I’ve tried running build-art again but this time adding include paths to the compiler as libssh is not linked to the system by brew as it’s already distributed with macOS itself.

CXXFLAGS=-isystem\ /usr/local/Cellar/libssh/0.9.5/include\ -isystem\ /usr/local/include LDFLAGS=-v ./build-art

This time I managed to build it completely (although with lots of warnings, check the ouput here) but unfortunately I can’t get it to link as it keeps telling me ld: library not found for -ltiff. Libtiff is actually installed, and it’s also identified before beginning the building process so I don’t really know how to overcome the problem.

I tried to overcome the problem by building adding these options:

CMAKE_CXX_LINK_EXECUTABLE=/usr/bin/ld CXXFLAGS=-isystem\ /usr/local/Cellar/libssh/0.9.5/include\ -isystem\ /usr/local/include LDFLAGS=-L\ /usr/local/Cellar/libtiff/4.2.0/lib\ -rpath\ /usr/local/Cellar/libtiff/4.2.0/lib\ /usr/local/Cellar/libtiff/4.2.0/lib/libtiff.dylib\ -ltiff CMAKE_C_COMPILER=clang CMAKE_CXX_COMPILER=clang++ ./build-art

But it still fails (here is the output), but this time telling me there are Undefined symbols for architecture x86_64.

Am I doing something wrong? I checked on the website linked in the project homepage but I really can’t find any newer version after 1.5 on the GitHub binary repository.

Comments (1)

  1. agriggio repo owner

    Hi,

    I’m sorry for the troubles, but unfortunately I have no access to OS X, so I am not able to help… 😞

  2. Log in to comment