Librum-Reader/Librum

macOS arm64 installation issue

technophilic03 opened this issue · 3 comments

Running file /path/Librum/libs/mupdf/build/shared-release/libmupdfcpp.so shows that the library is compiled for x86_64 but not arm64, which explains the error I got below:

Before getting this error, I updated the submodule according to #153 because of another error.

[ 44%] Linking CXX shared library ../../libapplication.dylib
ld: warning: ignoring file '/path/Librum/libs/mupdf/build/shared-release/libmupdfcpp.so': found architecture 'x86_64', required architecture 'arm64'
Undefined symbols for architecture arm64:
  "mupdf::FzDocument::FzDocument(char const*)", referenced from:
      application::services::BookService::setUp(std::__1::unique_ptr<application::IBookGetter, std::__1::default_delete<application::IBookGetter>>) in book_service.cpp.o
      application::core::MetadataExtractor::setup(QString const&) in metadata_extractor.cpp.o
  "mupdf::FzDocument::~FzDocument()", referenced from:
      application::services::BookService::setUp(std::__1::unique_ptr<application::IBookGetter, std::__1::default_delete<application::IBookGetter>>) in book_service.cpp.o
      application::services::BookService::~BookService() in book_service.cpp.o
      application::utility::ExternalBookGetter::ExternalBookGetter(QString const&) in external_book_getter.cpp.o
      application::core::MetadataExtractor::~MetadataExtractor() in external_book_getter.cpp.o
      application::core::MetadataExtractor::setup(QString const&) in metadata_extractor.cpp.o
      application::core::MetadataExtractor::~MetadataExtractor() in metadata_extractor.cpp.o
  "mupdf::FzLocation::internal()", referenced from:
      application::core::TOCModel::getTOCItemFromOutline(fz_outline*) in toc_model.cpp.o
  "mupdf::FzLocation::FzLocation(fz_location)", referenced from:
      application::core::TOCModel::getTOCItemFromOutline(fz_outline*) in toc_model.cpp.o
  "mupdf::FzStextPage::fz_copy_selection(mupdf::FzPoint&, mupdf::FzPoint&, int)", referenced from:
      application::core::utils::BookSearcher::isCaseSensitive(mupdf::FzStextPage&, mupdf::FzQuad const&, QString const&) const in book_searcher.cpp.o
      application::core::utils::TextSelector::getTextFromSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
  "mupdf::FzStextPage::search_stext_page(char const*, int*, int)", referenced from:
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
  "mupdf::FzStextPage::end()", referenced from:
      application::core::PageGenerator::setupSymbolBounds() in page_generator.cpp.o
  "mupdf::FzStextPage::begin()", referenced from:
      application::core::PageGenerator::setupSymbolBounds() in page_generator.cpp.o
  "mupdf::FzStextPage::FzStextPage(mupdf::FzDocument const&, int, mupdf::FzStextOptions&)", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
      application::core::PageGenerator::setupTextPage(int) in page_generator.cpp.o
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
  "mupdf::FzStextPage::~FzStextPage()", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
      application::core::PageGenerator::setupTextPage(int) in page_generator.cpp.o
      std::__1::unique_ptr<mupdf::FzStextPage, std::__1::default_delete<mupdf::FzStextPage>>::~unique_ptr[abi:ue170006]() in page_generator.cpp.o
      application::core::PageGenerator::~PageGenerator() in metadata_extractor.cpp.o
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
  "mupdf::FzColorspace::FzColorspace(mupdf::FzColorspace::Fixed)", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::FzColorspace::~FzColorspace()", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::fz_make_rect(float, float, float, float)", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzDisplayList::FzDisplayList(mupdf::FzRect const&)", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
  "mupdf::FzDisplayList::FzDisplayList()", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
  "mupdf::FzDisplayList::~FzDisplayList()", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
      application::core::PageGenerator::~PageGenerator() in metadata_extractor.cpp.o
  "mupdf::FzDisplayList::operator=(mupdf::FzDisplayList const&)", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
  "mupdf::FzSeparations::FzSeparations(fz_separations*)", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::FzSeparations::~FzSeparations()", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::FzLinkIterator::operator*()", referenced from:
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
  "mupdf::FzLinkIterator::operator!=(mupdf::FzLinkIterator const&)", referenced from:
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
  "mupdf::FzLinkIterator::operator++()", referenced from:
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
  "mupdf::FzStextOptions::FzStextOptions()", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
      application::core::PageGenerator::setupTextPage(int) in page_generator.cpp.o
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
  "mupdf::fz_new_draw_device(mupdf::FzMatrix const&, mupdf::FzPixmap const&)", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzStextPageIterator::operator!=(mupdf::FzStextPageIterator const&)", referenced from:
      application::core::PageGenerator::setupSymbolBounds() in page_generator.cpp.o
      application::core::PageGenerator::setupSymbolBounds() in page_generator.cpp.o
  "mupdf::FzStextPageIterator::operator++()", referenced from:
      application::core::PageGenerator::setupSymbolBounds() in page_generator.cpp.o
  "mupdf::FzStextPageIterator::operator->()", referenced from:
      application::core::PageGenerator::setupSymbolBounds() in page_generator.cpp.o
  "mupdf::ll_fz_snap_selection(fz_stext_page*, fz_point*, fz_point*, int)", referenced from:
      application::core::utils::TextSelector::getPositionsForWordSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForLineSelection(mupdf::FzPoint) in text_selector.cpp.o
  "mupdf::ll_fz_is_external_link(char const*)", referenced from:
      application::services::BookService::followLink(char const*) in book_service.cpp.o
  "mupdf::ll_fz_highlight_selection(fz_stext_page*, fz_point, fz_point, fz_quad*, int)", referenced from:
      application::core::utils::TextSelector::generateSelectionRects(QList<mupdf::FzQuad>&, mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
  "mupdf::FzLink::end()", referenced from:
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
  "mupdf::FzLink::rect()", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
      application::core::PageGenerator::pointIsAboveLink(mupdf::FzPoint) in page_generator.cpp.o
      application::core::PageGenerator::getLinkAtPoint(mupdf::FzPoint) in page_generator.cpp.o
  "mupdf::FzLink::begin()", referenced from:
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
  "mupdf::FzLink::FzLink(fz_link*)", referenced from:
      application::core::PageGenerator::getLinkAtPoint(mupdf::FzPoint) in page_generator.cpp.o
  "mupdf::FzLink::FzLink(mupdf::FzLink const&)", referenced from:
      application::core::PageGenerator::getLinkAtPoint(mupdf::FzPoint) in page_generator.cpp.o
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      ...
  "mupdf::FzLink::~FzLink()", referenced from:
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      ...
  "mupdf::FzLink::operator=(mupdf::FzLink const&)", referenced from:
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      void QtPrivate::QGenericArrayOps<mupdf::FzLink>::emplace<mupdf::FzLink>(long long, mupdf::FzLink&&) in page_generator.cpp.o
      void QtPrivate::q_relocate_overlap_n_left_move<mupdf::FzLink*, long long>(mupdf::FzLink*, long long, mupdf::FzLink*) in page_generator.cpp.o
      void QtPrivate::q_relocate_overlap_n_left_move<std::__1::reverse_iterator<mupdf::FzLink*>, long long>(std::__1::reverse_iterator<mupdf::FzLink*>, long long, std::__1::reverse_iterator<mupdf::FzLink*>) in page_generator.cpp.o
  "mupdf::FzPage::FzPage(mupdf::FzPage const&)", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
  "mupdf::FzPage::~FzPage()", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
      std::__1::unique_ptr<mupdf::FzPage, std::__1::default_delete<mupdf::FzPage>>::~unique_ptr[abi:ue170006]() in page_generator.cpp.o
      application::core::PageGenerator::~PageGenerator() in metadata_extractor.cpp.o
  "mupdf::FzQuad::FzQuad(fz_quad)", referenced from:
      application::core::utils::TextSelector::generateSelectionRects(QList<mupdf::FzQuad>&, mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
  "mupdf::FzQuad::FzQuad()", referenced from:
      QtPrivate::QMetaTypeForType<mupdf::FzQuad>::getDefaultCtr()::'lambda'(QtPrivate::QMetaTypeInterface const*, void*)::__invoke(QtPrivate::QMetaTypeInterface const*, void*) in mocs_compilation.cpp.o
      application::core::utils::BookSearcher::BookSearcher(mupdf::FzDocument*) in book_searcher.cpp.o
      application::core::utils::BookSearcher::BookSearcher(mupdf::FzDocument*) in book_searcher.cpp.o
  "mupdf::FzRect::fz_transform_rect(mupdf::FzMatrix const&)", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::FzRect::FzRect(fz_rect)", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
      application::core::PageGenerator::pointIsAboveText(mupdf::FzPoint) in page_generator.cpp.o
      application::core::PageGenerator::pointIsAboveLink(mupdf::FzPoint) in page_generator.cpp.o
      application::core::PageGenerator::getLinkAtPoint(mupdf::FzPoint) in page_generator.cpp.o
  "mupdf::FzRect::FzRect(mupdf::FzRect::Fixed)", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzIrect::FzIrect(mupdf::FzRect const&)", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::FzPoint::fz_is_point_inside_rect(mupdf::FzRect const&)", referenced from:
      application::core::PageGenerator::pointIsAboveText(mupdf::FzPoint) in page_generator.cpp.o
      application::core::PageGenerator::pointIsAboveLink(mupdf::FzPoint) in page_generator.cpp.o
      application::core::PageGenerator::getLinkAtPoint(mupdf::FzPoint) in page_generator.cpp.o
  "mupdf::FzPoint::internal()", referenced from:
      application::core::utils::TextSelector::generateSelectionRects(QList<mupdf::FzQuad>&, mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::generateSelectionRects(QList<mupdf::FzQuad>&, mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForWordSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForWordSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForLineSelection(mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForLineSelection(mupdf::FzPoint) in text_selector.cpp.o
  "mupdf::FzPoint::FzPoint(fz_point)", referenced from:
      application::core::utils::TextSelector::generateSelectionRects(QList<mupdf::FzQuad>&, mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::generateSelectionRects(QList<mupdf::FzQuad>&, mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForWordSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForWordSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForWordSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForWordSelection(mupdf::FzPoint, mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForLineSelection(mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForLineSelection(mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForLineSelection(mupdf::FzPoint) in text_selector.cpp.o
      application::core::utils::TextSelector::getPositionsForLineSelection(mupdf::FzPoint) in text_selector.cpp.o
      ...
  "mupdf::FzPoint::FzPoint(float, float)", referenced from:
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::isWholeWord(mupdf::FzStextPage const&, mupdf::FzQuad const&) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::isWholeWord(mupdf::FzStextPage const&, mupdf::FzQuad const&) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::isCaseSensitive(mupdf::FzStextPage&, mupdf::FzQuad const&, QString const&) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::isCaseSensitive(mupdf::FzStextPage&, mupdf::FzQuad const&, QString const&) const in book_searcher.cpp.o
  "mupdf::FzCookie::FzCookie()", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzDevice::~FzDevice()", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzMatrix::FzMatrix()", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzPixmap::h()", referenced from:
      application::core::MetadataExtractor::getCover() in metadata_extractor.cpp.o
  "mupdf::FzPixmap::w()", referenced from:
      application::core::MetadataExtractor::getCover() in metadata_extractor.cpp.o
  "mupdf::FzPixmap::x()", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzPixmap::y()", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzPixmap::stride()", referenced from:
      application::core::MetadataExtractor::getCover() in metadata_extractor.cpp.o
  "mupdf::FzPixmap::samples()", referenced from:
      application::core::MetadataExtractor::getCover() in metadata_extractor.cpp.o
  "mupdf::FzPixmap::FzPixmap(mupdf::FzColorspace const&, mupdf::FzIrect const&, mupdf::FzSeparations const&, int)", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::FzPixmap::~FzPixmap()", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
      application::core::MetadataExtractor::getCover() in metadata_extractor.cpp.o
      application::core::MetadataExtractor::getCover() in metadata_extractor.cpp.o
  "mupdf::FzOutline::~FzOutline()", referenced from:
      application::services::BookService::getTableOfContents() in book_service.cpp.o
      application::services::BookService::getTableOfContents() in book_service.cpp.o
  "mupdf::FzDocument::fz_load_page(int) const", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
  "mupdf::FzDocument::fz_count_pages() const", referenced from:
      application::core::MetadataExtractor::getBookMetaData() in metadata_extractor.cpp.o
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
  "mupdf::FzDocument::fz_load_outline() const", referenced from:
      application::services::BookService::getTableOfContents() in book_service.cpp.o
  "mupdf::FzDocument::fz_resolve_link(char const*, float*, float*) const", referenced from:
      application::services::BookService::followLink(char const*) in book_service.cpp.o
      application::core::TOCModel::getTOCItemFromOutline(fz_outline*) in toc_model.cpp.o
  "mupdf::FzDocument::fz_lookup_metadata2(char const*) const", referenced from:
      application::core::MetadataExtractor::getDocumentInfo(char const*) in metadata_extractor.cpp.o
  "mupdf::FzDocument::fz_page_number_from_location(mupdf::FzLocation const&) const", referenced from:
      application::services::BookService::followLink(char const*) in book_service.cpp.o
      application::core::TOCModel::getTOCItemFromOutline(fz_outline*) in toc_model.cpp.o
  "mupdf::FzStextPage::fz_snap_selection(mupdf::FzPoint&, mupdf::FzPoint&, int) const", referenced from:
      application::core::utils::BookSearcher::extractSearchHitsFromBook(std::__1::vector<application::core::utils::SearchHit, std::__1::allocator<application::core::utils::SearchHit>>&, char const*, application::core::utils::SearchOptions) const in book_searcher.cpp.o
      application::core::utils::BookSearcher::isWholeWord(mupdf::FzStextPage const&, mupdf::FzQuad const&) const in book_searcher.cpp.o
  "mupdf::FzDisplayList::fz_new_list_device() const", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
  "mupdf::FzDisplayList::fz_run_display_list(mupdf::FzDevice const&, mupdf::FzMatrix const&, mupdf::FzRect const&, mupdf::FzCookie&) const", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzLink::fz_set_link_rect(mupdf::FzRect const&) const", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzPage::fz_run_page(mupdf::FzDevice const&, mupdf::FzMatrix const&, mupdf::FzCookie&) const", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
  "mupdf::FzPage::fz_bound_page() const", referenced from:
      application::core::PageGenerator::PageGenerator(mupdf::FzDocument*, int) in page_generator.cpp.o
  "mupdf::FzPage::fz_load_links() const", referenced from:
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
      application::core::PageGenerator::setupLinks() in page_generator.cpp.o
  "mupdf::FzPage::fz_bound_page_box(fz_box_type) const", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
      application::core::PageGenerator::getWidth() const in page_generator.cpp.o
      application::core::PageGenerator::getHeight() const in page_generator.cpp.o
  "mupdf::FzDevice::fz_close_device() const", referenced from:
      application::core::PageGenerator::setupDisplayList(mupdf::FzRect const&) in page_generator.cpp.o
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
  "mupdf::FzPixmap::fz_clear_pixmap() const", referenced from:
      application::core::PageGenerator::getEmptyPixmap(mupdf::FzMatrix const&) const in page_generator.cpp.o
  "mupdf::FzPixmap::fz_invert_pixmap() const", referenced from:
      application::core::PageGenerator::renderPage(float) in page_generator.cpp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [src/application/CMakeFiles/application.dir/build.make:459: libapplication.dylib] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:447: src/application/CMakeFiles/application.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

Originally posted by @technophilic03 in #153 (comment)

What's your clang version? I saw in MuPDF setup.py that it doesn't work on clang 17.x and 18.x

    elif macos() and platform.machine() == 'arm64':
        #print(
        #       f'MacOS/arm64: forcing use of libclang 16.0.6 because 17.0.6'
        #       f' and 18.1.1 are known to fail with:'
        #       f' `clang.cindex.TranslationUnitLoadError: Error parsing translation unit.`'
        #       )
        ret.append('libclang==16.0.6')