gpt4 book ai didi

android - 无法建立libmupdf.so

转载 作者:行者123 更新时间:2023-11-29 18:11:55 25 4
gpt4 key购买 nike

几周以来,我一直在尝试使用Mupdf,但无法建立.so文件。
我现在只是在cygwin上尝试“ make”,这是我之前没有尝试过的,浪费了我的时间。

要为Mupdf构建so文件,我正在做的是,在导入所需的所有主要文件后,在cygwin终端上编写一个简单的命令,cmd为:make -f Makefile。

现在,我的所有文件都在构建和链接,其中两个文件除外。我得到的错误是:

链接构建/调试/ mupdf
build / debug / x11_main.o:在函数winopen':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:127: undefined reference to
_XOpenDisplay'中
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:131:对_XInternAtom'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:132: undefined reference to
_XInternAtom的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:133:对_XInternAtom'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:134: undefined reference to
_XInternAtom的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:135:未定义对_XInternAtom'
build/debug/x11_main.o:/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:136: more undefined references to
_XInternAtom的引用”
build / debug / x11_main.o:在函数winopen':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:142: undefined reference to
_XCreateFontCursor'中
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:143:对_XCreateFontCursor'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:144: undefined reference to
_XCreateFontCursor的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:154:对_XAllocColor'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:155: undefined reference to
_XAllocColor的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:157:对_XCreateWindow'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:167: undefined reference to
_XSetWindowColormap的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:168:未定义对_XSelectInput'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:174: undefined reference to
_XCreateGC的引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:176:对_XDefineCursor'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:178: undefined reference to
_XAllocWMHints的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:182:对_XCreateBitmapFromData'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:186: undefined reference to
_XCreateBitmapFromData的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:194:对_XSetWMHints'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:196: undefined reference to
_XFree的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:199:对_XAllocClassHint'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:204: undefined reference to
_XSetClassHint的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:205:对_XFree'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:208: undefined reference to
_XSetWMProtocols的未定义引用
build / debug / x11_main.o:在函数wincursor':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:227: undefined reference to
_XDefineCursor'中
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:229:对_XDefineCursor'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:231: undefined reference to
_XDefineCursor的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:232:未定义对_XFlush'
build/debug/x11_main.o: In function
wintitle'的引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:237:对_XStoreName'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:239: undefined reference to
_Xutf8SetWMProperties的未定义引用
build / debug / x11_main.o:在函数winresize':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:260: undefined reference to
_XConfigureWindow'中
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:272:对_XMapWindow'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:273: undefined reference to
_XFlush'的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:277:对_XNextEvent'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:287: undefined reference to
_XSetForeground的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:288:对_XFillRectangle'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:289: undefined reference to
_XFlush'的未定义引用
build / debug / x11_main.o:在函数winfullscreen':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:314: undefined reference to
_XSendEvent'中
build / debug / x11_main.o:在函数fillrect':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:322: undefined reference to
_XFillRectangle'中
build / debug / x11_main.o:在函数winblitsearch':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:331: undefined reference to
_XSetForeground'中
build / debug / x11_main.o:在函数winblit':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:348: undefined reference to
_XSetForeground'中
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:354:对_XSetForeground'
build/debug/x11_main.o: In function
windrawstringxor'的未定义引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:432:对_XGetGCValues'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:435: undefined reference to
_XChangeGC的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:437:对_XSetForeground'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:439: undefined reference to
_XDrawString'的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:440:对_XFlush'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:442: undefined reference to
_XGetGCValues的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:444:未定义对_XChangeGC'
build/debug/x11_main.o: In function
windrawstring'的引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:449:对_XSetForeground'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:450: undefined reference to
_XDrawString'的未定义引用
build / debug / x11_main.o:在函数windocopy':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:478: undefined reference to
_XSetSelectionOwner'中
build / debug / x11_main.o:在函数onselreq':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:506: undefined reference to
_XChangeProperty'中
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:513:对_XChangeProperty'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:520: undefined reference to
_XChangeProperty的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:530:未定义对_XSendEvent'
build/debug/x11_main.o: In function
main的引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:683:对_XNextEvent'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:704: undefined reference to
_XLookupString'的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:681:对_XPending'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:800: undefined reference to
_XPending'的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:842:对_XDestroyWindow'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:844: undefined reference to
_XFreePixmap的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:846:对_XFreeCursor'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:847: undefined reference to
_XFreeCursor的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:848:对_XFreeCursor'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:850: undefined reference to
_XFreeGC'的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_main.c:852:未定义对_XCloseDisplay'
build/debug/x11_image.o: In function
createximage'的引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:108:对_XShmQueryExtension'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:113: undefined reference to
_XShmCreateImage的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:139:未定义对_XShmAttach'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:148: undefined reference to
_XSync的引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:157:对_XCreateImage'
build/debug/x11_image.o: In function
make_colormap'的未定义引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:194:未定义对_XCreateColormap'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:198: undefined reference to
_XStoreColors的引用
build / debug / x11_image.o:在功能next_pool_image':
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:307: undefined reference to
_XSync'中
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:309:未定义对_XFlush'
build/debug/x11_image.o: In function
ximage_error_handler'的引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:322:对_XGetErrorText'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:328: undefined reference to
_XSetErrorHandler'的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:329:未定义对_XSetErrorHandler'
build/debug/x11_image.o: In function
ximage_init'的引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:351:对_XVisualIDFromVisual'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:352: undefined reference to
_XGetVisualInfo的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:355:对_XFree'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:359: undefined reference to
_XFree的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:362:对_XListPixmapFormats'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:369: undefined reference to
_XFree的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:382:对_XQueryExtension'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:383: undefined reference to
_XShmQueryExtension'的未定义引用
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:387:未定义对_XSetErrorHandler'
build/debug/x11_image.o: In function
ximage_blit'的引用:
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:452:未定义对_XShmPutImage'
/cygdrive/d/Users/MOBDEV3/workspace1/Latest_Mupdf/jni/apps/x11_image.c:458: undefined reference to
_XPutImage的引用
collect2:ld返回1退出状态
Makefile:146:目标`build / debug / mupdf'的配方失败
make:* [build / debug / mupdf]错误1

问题出在我所见的“ X11 Lib”中,但无法做到。
任何帮助表示赞赏...

最佳答案

尝试使用带有参数的make命令,例如

使NOX11 =是

关于android - 无法建立libmupdf.so,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10222649/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com