Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

cmake - Building ART photo editing software on macOS

I've recently discovered this open source photo management software forked from Rawtherapee and really wanted to try a newer version than the old one that can be downloaded from the project's homepage.

So I cloned the repository on my macOS 14.14.6 running MacBook and tried to build it a few times:

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.

The third time 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've also tried to ask the developer but he unfortunately doesn't use macOS. Here is the bug report if anyone wants to suggest anything to the developer.

question from:https://stackoverflow.com/questions/65651380/building-art-photo-editing-software-on-macos

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...