问题描述
我正在尝试编译Tesseract,以便可以在具有Power PC架构的IBMi 7.3(AS400,iSeries,System / i)上运行它。几十年来,我没有使用makefile进行任何C编译,因此我发现并遵循了instruction(谢谢),并以编译Leptonica(1.80)为前提。解决问题后,我设法完成了./configure
的工作,似乎还可以。然后,我尝试了make
,但没有尝试,但我在某处阅读了尝试gmake
的内容,但效果不错,但会产生错误:
CC webpanimiostub.lo
CC writefile.lo
CC zlibmem.lo
CC zlibmemstub.lo
cclD liblept.la
ar: 0707-126 adaptmap.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 affine.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 affinecompose.o is not valid with the current object file mode.
所以我想知道我是否应该担心这些消息(其中有100多个)?
毕竟,它说:
ar: 0707-126 zlibmemstub.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
gmake[2]: *** [Makefile:545: liblept.la] Error 179
gmake[2]: Leaving directory '/home/mydir/leptonica-1.80.0/src'
gmake[1]: *** [Makefile:522: all-recursive] Error 1
gmake[1]: Leaving directory '/home/mydir/leptonica-1.80.0'
gmake: *** [Makefile:406: all] Error 2
src / Makefile的第544行和545行说:
liblept.la: $(liblept_la_OBJECTS) $(liblept_la_DEPENDENCIES) $(EXTRA_liblept_la_DEPENDENCIES)
$(AM_V_cclD)$(liblept_la_LINK) -rpath $(libdir) $(liblept_la_OBJECTS) $(liblept_la_LIBADD) $(LIBS)
我徒劳地拖网寻找任何线索,所以任何帮助都值得赞赏,马克。
解决方法
在AIX的https://github.com/openssl/openssl/issues/5659#issuecomment-375022992和Compiling pcre 8.32 on AIX 6.1 64 bit看来,您可能需要指定OBJECT_MODE=64
和AR="ar -X64"
。