在mac-ld上编译zathura pdf插件出错



我正试图在运行Yosemite的Mac OS X上安装zathura-pdf-poppler-0.2.5。当我尝试制作时,我会得到以下错误:

LD pdf.so体系结构x86_64的未定义符号:"_zathura_document_get_data",引用自:_pdf_page_links_get-in-links.o_pdf_page_init在page.o中"_zathura_document_get_password",引用自:_pdf_document_open in document.o"_zathura_document_get_path",引用自:_pdf_document_open in document.o"_zathura_document_information_entry_list_new",引用自:_meta.o中的pdf_document_get_information"_zathura_document_information_entry_new",引用自:_meta.o中的pdf_document_get_information"_zathura_document_set_data",引用自:_pdf_document_open in document.o_文档.o中的pdf_document_free"_zathura_document_set_number_of_pages",引用自:_pdf_document_open in document.o"_zathura_index_element_new",引用自:_pdf_document_index_generate in index.o_index.o中的build_index"_zathura_link_free",引用自:_pdf_page_links_get-in-links.o"_zathura_link_new",引用自:_utils.o中的poppler_link_to_zathura_link"_zathura_page_get_document",引用自:_pdf_page_links_get-in-links.o_pdf_page_init在page.o中"_zathura_page_get_height",引用自:_pdf_page_links_get-in-links.o_搜索中的pdf_page_search_text。o"_zathura_page_get_index",引用自:_pdf_page_init在page.o中"_zathura_page_set_data",引用自:_pdf_page_init在page.o中"_zathura_page_set_height",引用自:_pdf_page_init在page.o中"_zathura_page_set_width",引用自:_pdf_page_init在page.o中"_zathura_plugin_add_mimetype",引用自:_plugin.o中的zathura_plugin_register"_zathura_plugin_set_name",引用自:_plugin.o中的zathura_plugin_register"_zathura_plugin_set_register_functions_function",引用自:_plugin.o中的zathura_plugin_registerld:找不到体系结构x86_64的符号clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)make:***[pdf.so]错误1

我在$PKG_CONFIG_path中设置了以下路径:

/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig:/usr/local/Cellar/zlib/1.2.8/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10

有人知道如何解决这个问题吗。

非常感谢

我不知道发生这种情况的确切原因,但我已经从MacPort对makefiles和config.mk应用了补丁。您可以以明文形式下载它们,并使用patch Makefile < make.diffpatch config.mk < config.diff来应用补丁。

修补程序文件

为了让zathura显示pdf文件,我不得不在make install之后将/usr/lib/zathura/pdf.dylib更改为/usr/lib/zathura/pdf.so

最新更新